three.ws Coin Clash

v0.1.3
io.github.nirholas/clash-mcp Checked 2 hours ago Published 1 month ago

Play three.ws Coin Clash — read the faction battle board and leaderboard, enlist, and rally.

Values you need

VariableWhat it is
THREE_WS_BASEoptional Base URL of the three.ws API that serves the Coin Clash endpoints. Override only when self-hosting or targeting a preview deployment. Default: https://three.ws
THREE_WS_TIMEOUT_MSoptional Per-request timeout in milliseconds for the live Coin Clash reads and writes. Default: 20000
SOLANA_SECRET_KEYoptional secret Base58 Solana secret key for the enlisting wallet. Required only for the write tools (enlist_faction, rally_faction) — reads work without it. Per-call `secret` arguments override this. The wallet must hold the faction coin it enlists for. Treat like cash.

npm (npx) verified

Requires Node.js 18+

Run in a terminal
claude mcp add clash-mcp -- npx -y @three-ws/clash-mcp@0.1.3
Add to claude_desktop_config.json
{
  "mcpServers": {
    "clash-mcp": {
      "args": [
        "-y",
        "@three-ws/clash-mcp@0.1.3"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "clash-mcp": {
      "args": [
        "-y",
        "@three-ws/clash-mcp@0.1.3"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "clash-mcp": {
      "args": [
        "-y",
        "@three-ws/clash-mcp@0.1.3"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.clash-mcp]
command = "npx"
args = ["-y", "@three-ws/clash-mcp@0.1.3"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: get_clash_state, get_clash_leaderboard, enlist_faction, rally_faction.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json