Skip to content
VS Code

legion for VS Code

io.github.faulkj/legion

MCP-native LLM councils for debates, juries, blind panels, refinement, and custom deliberation.

client:VS Code transport:stdio runtime:npm

Install legion in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "mcp-transport",
      "description": "MCP_TRANSPORT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "default-base-url",
      "description": "DEFAULT_BASE_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "default-api-key",
      "description": "DEFAULT_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "gpt-api-key",
      "description": "GPT_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "max-rounds",
      "description": "MAX_ROUNDS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "token-budget",
      "description": "TOKEN_BUDGET",
      "password": true
    },
    {
      "type": "promptString",
      "id": "dynamic-roles",
      "description": "DYNAMIC_ROLES",
      "password": true
    },
    {
      "type": "promptString",
      "id": "log-level",
      "description": "LOG_LEVEL",
      "password": true
    }
  ],
  "servers": {
    "legion": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "legion-mcp"
      ],
      "env": {
        "MCP_TRANSPORT": "${input:mcp-transport}",
        "DEFAULT_BASE_URL": "${input:default-base-url}",
        "DEFAULT_API_KEY": "${input:default-api-key}",
        "GPT_API_KEY": "${input:gpt-api-key}",
        "MAX_ROUNDS": "${input:max-rounds}",
        "TOKEN_BUDGET": "${input:token-budget}",
        "DYNAMIC_ROLES": "${input:dynamic-roles}",
        "LOG_LEVEL": "${input:log-level}"
      }
    }
  }
}

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

legion in other clients