Install MCP Server
The Planning Game MCP server is available as a standalone npm package. You can connect any AI agent (Claude Code, Codex, etc.) to your Planning Game instance without cloning the repository.
Prerequisites
Section titled “Prerequisites”- Node.js 20+ (LTS recommended)
- A Firebase project with Realtime Database enabled
- A serviceAccountKey.json file from that Firebase project
- Firebase Console > Project Settings > Service Accounts > Generate New Private Key
Method 1: Global Install
Section titled “Method 1: Global Install”npm install -g planning-game-mcpThis makes the planning-game-mcp command available globally. You can verify with:
planning-game-mcp --versionMethod 2: npx (No Install)
Section titled “Method 2: npx (No Install)”Run directly without installing:
npx planning-game-mcp initThis downloads the latest version on the fly. Good for one-time setup or trying it out.
Run the Setup Wizard
Section titled “Run the Setup Wizard”planning-game-mcp initThe wizard walks you through 7 steps:
Step 1 — Prerequisites Check
Section titled “Step 1 — Prerequisites Check”Validates that Node.js 18+ and Git are available on your system.
Step 2 — Instance Name
Section titled “Step 2 — Instance Name”Choose a name for this MCP instance (e.g., team-alpha, personal). Only letters, numbers, hyphens and underscores. This name becomes the MCP server identifier: planning-game-<name>.
Step 3 — Firebase Credentials
Section titled “Step 3 — Firebase Credentials”Point to your serviceAccountKey.json file. The wizard validates the JSON structure and extracts the project_id automatically.
Step 4 — Firebase Database
Section titled “Step 4 — Firebase Database”The wizard auto-detects the database URL from your project ID. It then tests connectivity by querying /projects in your Realtime Database.
Step 5 — User Identity
Section titled “Step 5 — User Identity”The wizard fetches the user list from Firebase and displays all registered developers and stakeholders. It then:
- Asks for your name and email
- Tries to auto-match you against the user list
- If no match, lets you enter your
dev_XXX/stk_XXXIDs manually
Step 6 — Save Configuration
Section titled “Step 6 — Save Configuration”Generates a pg.config.yml file with all your settings and offers to register the MCP server in Claude Code (~/.claude.json) automatically.
Step 7 — Sync Guidelines
Section titled “Step 7 — Sync Guidelines”Downloads project guidelines from Firebase so your AI agent has the latest coding standards, ADRs, and workflow rules from day one.
Verify Installation
Section titled “Verify Installation”After the wizard completes, verify everything works:
# Check the binaryplanning-game-mcp --version
# If registered in Claude Code, restart Claude and run:# get_mcp_status() — should return your Firebase project ID and instance nameGenerated Files
Section titled “Generated Files”The wizard creates these files in your working directory:
| File | Purpose |
|---|---|
pg.config.yml | Main configuration (instance, Firebase, user, MCP settings) |
mcp.user.json | Backward-compatible user identity file |
Manual Registration (Alternative)
Section titled “Manual Registration (Alternative)”If you skipped auto-registration or use a different AI client, register manually:
claude mcp add planning-game-myteam \ -e MCP_INSTANCE_DIR=/path/to/instance-dir \ -e GOOGLE_APPLICATION_CREDENTIALS=/path/to/serviceAccountKey.json \ -s user \ -- planning-game-mcpWhat’s Next?
Section titled “What’s Next?”- Set up multiple instances for different Firebase projects
- Explore the MCP Tools reference for the full list of available operations
- Read the XP Workflow guide to understand how tasks flow through the system