W

Warapp MCP

by chrischall · io.github.chrischall/warapp-mcp

Read-only game advisor for war.app (Warzone) that pulls a player's games through the official GameFeed API, letting Claude inspect game state, players and settings, rank map bonuses and chokepoints, analyze the board for income and threats, and plan shortest routes between territories. It never submits orders and marks all returned player, map and chat text as untrusted third-party content.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-chrischall-warapp-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@chrischall/warapp-mcp"
      ],
      "env": {
        "WARAPP_EMAIL": "<VALUE>",
        "WARAPP_API_TOKEN": "<YOUR_VALUE>",
        "WARAPP_WS_PORT": "<VALUE>",
        "WARAPP_ENV_FILE": "~/.config/warapp-mcp/.env",
        "WARAPP_TRANSPORT": "<VALUE>",
        "WARAPP_SESSION_FILE": "<VALUE>",
        "WARAPP_PLAYER_RECORD": "<VALUE>",
        "WARAPP_PLAYER_PROFILE": "<VALUE>",
        "WARAPP_CHAT_AUTOMATION": "<VALUE>",
        "WARAPP_CHAT_BLOCKS_TURN": "<VALUE>",
        "WARAPP_DECISION_LOG": "<VALUE>"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-chrischall-warapp-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@chrischall/warapp-mcp"
      ],
      "env": {
        "WARAPP_EMAIL": "<VALUE>",
        "WARAPP_API_TOKEN": "<YOUR_VALUE>",
        "WARAPP_WS_PORT": "<VALUE>",
        "WARAPP_ENV_FILE": "~/.config/warapp-mcp/.env",
        "WARAPP_TRANSPORT": "<VALUE>",
        "WARAPP_SESSION_FILE": "<VALUE>",
        "WARAPP_PLAYER_RECORD": "<VALUE>",
        "WARAPP_PLAYER_PROFILE": "<VALUE>",
        "WARAPP_CHAT_AUTOMATION": "<VALUE>",
        "WARAPP_CHAT_BLOCKS_TURN": "<VALUE>",
        "WARAPP_DECISION_LOG": "<VALUE>"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-chrischall-warapp-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@chrischall/warapp-mcp"
      ],
      "env": {
        "WARAPP_EMAIL": "<VALUE>",
        "WARAPP_API_TOKEN": "<YOUR_VALUE>",
        "WARAPP_WS_PORT": "<VALUE>",
        "WARAPP_ENV_FILE": "~/.config/warapp-mcp/.env",
        "WARAPP_TRANSPORT": "<VALUE>",
        "WARAPP_SESSION_FILE": "<VALUE>",
        "WARAPP_PLAYER_RECORD": "<VALUE>",
        "WARAPP_PLAYER_PROFILE": "<VALUE>",
        "WARAPP_CHAT_AUTOMATION": "<VALUE>",
        "WARAPP_CHAT_BLOCKS_TURN": "<VALUE>",
        "WARAPP_DECISION_LOG": "<VALUE>"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-chrischall-warapp-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@chrischall/warapp-mcp"
      ],
      "env": {
        "WARAPP_EMAIL": "<VALUE>",
        "WARAPP_API_TOKEN": "<YOUR_VALUE>",
        "WARAPP_WS_PORT": "<VALUE>",
        "WARAPP_ENV_FILE": "~/.config/warapp-mcp/.env",
        "WARAPP_TRANSPORT": "<VALUE>",
        "WARAPP_SESSION_FILE": "<VALUE>",
        "WARAPP_PLAYER_RECORD": "<VALUE>",
        "WARAPP_PLAYER_PROFILE": "<VALUE>",
        "WARAPP_CHAT_AUTOMATION": "<VALUE>",
        "WARAPP_CHAT_BLOCKS_TURN": "<VALUE>",
        "WARAPP_DECISION_LOG": "<VALUE>"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-chrischall-warapp-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@chrischall/warapp-mcp"
      ],
      "env": {
        "WARAPP_EMAIL": "<VALUE>",
        "WARAPP_API_TOKEN": "<YOUR_VALUE>",
        "WARAPP_WS_PORT": "<VALUE>",
        "WARAPP_ENV_FILE": "~/.config/warapp-mcp/.env",
        "WARAPP_TRANSPORT": "<VALUE>",
        "WARAPP_SESSION_FILE": "<VALUE>",
        "WARAPP_PLAYER_RECORD": "<VALUE>",
        "WARAPP_PLAYER_PROFILE": "<VALUE>",
        "WARAPP_CHAT_AUTOMATION": "<VALUE>",
        "WARAPP_CHAT_BLOCKS_TURN": "<VALUE>",
        "WARAPP_DECISION_LOG": "<VALUE>"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-chrischall-warapp-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@chrischall/warapp-mcp"
      ],
      "env": {
        "WARAPP_EMAIL": "<VALUE>",
        "WARAPP_API_TOKEN": "<YOUR_VALUE>",
        "WARAPP_WS_PORT": "<VALUE>",
        "WARAPP_ENV_FILE": "~/.config/warapp-mcp/.env",
        "WARAPP_TRANSPORT": "<VALUE>",
        "WARAPP_SESSION_FILE": "<VALUE>",
        "WARAPP_PLAYER_RECORD": "<VALUE>",
        "WARAPP_PLAYER_PROFILE": "<VALUE>",
        "WARAPP_CHAT_AUTOMATION": "<VALUE>",
        "WARAPP_CHAT_BLOCKS_TURN": "<VALUE>",
        "WARAPP_DECISION_LOG": "<VALUE>"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
WARAPP_EMAIL Yes The email address you sign in to war.app with.
WARAPP_API_TOKEN secret Yes Your API token from https://war.app/API/GetAPIToken.
WARAPP_WS_PORT No fetchproxy bridge concentrator port for the live-game tools. Defaults to the fleet-shared 37149.
WARAPP_ENV_FILE No A dotenv file to read WARAPP_EMAIL and WARAPP_API_TOKEN from. Values already in the environment win. Default: ~/.config/warapp-mcp/.env
WARAPP_TRANSPORT No How the live-game tools reach war.app: auto (default, direct when a session is linked else the browser bridge), direct, or fetchproxy.
WARAPP_SESSION_FILE No Where the linked direct-transport session is stored (default <data dir>/session.json). Local-only, file mode 0600.
WARAPP_PLAYER_RECORD No The name-free cross-game record of how other players kept truces (salted hashes, no names). On by default; set off to turn it off.
WARAPP_PLAYER_PROFILE No Opponent profiling: counts of what each opponent did on the turns your boards showed (gameplay only, no names or chat), kept per game, and folded name-free (salted-hash keys) into counts across finished games. On by default; set off to turn it off.
WARAPP_CHAT_AUTOMATION No Whether an agent may send chat replies the owner did not ask for. Off by default (chat is read, labelled and advised on; the owner sends every reply); set on to let the advice offer the exact send, which still needs confirming.
WARAPP_CHAT_BLOCKS_TURN No Whether unread chat that may change the turn (a truce message from a partner, a threat from a neighbour, a surrender awaiting acceptance, a teammate asking about this turn) stops a turn submission until it is read. Off by default (the submit preview only warns); set on to refuse until the messages are marked seen or the submit says chat_reviewed.
WARAPP_DECISION_LOG No A per-game log of each turn's view, the plan, the orders sent and, once the game ends, the true figures (player ids and numbers, no names or chat), for offline review and replay. On by default; set off to turn it off, or full to keep every turn uncompacted.

Similar servers