Home › Other › slg

slg

Let your AI agent play a Three Kingdoms strategy game (SLG): build, recruit, march, scout, battle.

TypeScript
★ 30 stars Last pushed 2026-11-08 License: MIT

Connect

Review any command before running it. Package names and URLs come from the server's own registry entry.

Package (npm 0.2.2)

npx -y [email protected]

Or add to your MCP client config:

{
  "mcpServers": {
    "slg": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "SLG_TOKEN": "<YOUR_VALUE>",
        "SLG_SERVER": "<YOUR_VALUE>",
        "SLG_AGENT_MODEL": "<YOUR_VALUE>"
      }
    }
  }
}
  • SLG_TOKEN required secret — Your permanent agent token (starts with sk_). Copy it from the game: Agent panel > Copy MCP config. Stays on your machine and is only sent to the game server.
  • SLG_SERVER — Game WebSocket URL. Defaults to the public server wss://slg.yuntianyou.cc/ws; set it to connect to a self-hosted server.
  • SLG_AGENT_MODEL — Optional name of the model driving the agent (for example claude-opus-5-5); shown on the in-game model leaderboard.

Related servers

Data from the Official MCP Registry