Skip to content
VS Code

slg mcp for VS Code

io.github.athlan20/slg-mcp

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

client:VS Code transport:stdio runtime:npm

Install slg mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "slg-token",
      "description": "SLG_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "slg-server",
      "description": "SLG_SERVER",
      "password": true
    },
    {
      "type": "promptString",
      "id": "slg-agent-model",
      "description": "SLG_AGENT_MODEL",
      "password": true
    }
  ],
  "servers": {
    "slg-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "slg-mcp"
      ],
      "env": {
        "SLG_TOKEN": "${input:slg-token}",
        "SLG_SERVER": "${input:slg-server}",
        "SLG_AGENT_MODEL": "${input:slg-agent-model}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

slg mcp in other clients