Skip to content

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.

  • 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
Terminal window
npm install -g planning-game-mcp

This makes the planning-game-mcp command available globally. You can verify with:

Terminal window
planning-game-mcp --version

Run directly without installing:

Terminal window
npx planning-game-mcp init

This downloads the latest version on the fly. Good for one-time setup or trying it out.

Terminal window
planning-game-mcp init

The wizard walks you through 7 steps:

Validates that Node.js 18+ and Git are available on your system.

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>.

Point to your serviceAccountKey.json file. The wizard validates the JSON structure and extracts the project_id automatically.

The wizard auto-detects the database URL from your project ID. It then tests connectivity by querying /projects in your Realtime Database.

The wizard fetches the user list from Firebase and displays all registered developers and stakeholders. It then:

  1. Asks for your name and email
  2. Tries to auto-match you against the user list
  3. If no match, lets you enter your dev_XXX / stk_XXX IDs manually

Generates a pg.config.yml file with all your settings and offers to register the MCP server in Claude Code (~/.claude.json) automatically.

Downloads project guidelines from Firebase so your AI agent has the latest coding standards, ADRs, and workflow rules from day one.

After the wizard completes, verify everything works:

Terminal window
# Check the binary
planning-game-mcp --version
# If registered in Claude Code, restart Claude and run:
# get_mcp_status() — should return your Firebase project ID and instance name

The wizard creates these files in your working directory:

FilePurpose
pg.config.ymlMain configuration (instance, Firebase, user, MCP settings)
mcp.user.jsonBackward-compatible user identity file

If you skipped auto-registration or use a different AI client, register manually:

Terminal window
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-mcp