Skip to main content

Legion

io.github.faulkj/legion

v0.8.0Updated Oct 6, 2026stdio · npm

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

Install

Replace 2 placeholders with your own values.

Run in your terminal. Replace 2 placeholders.

claude mcp add legion -e 'MCP_TRANSPORT=<your-mcp-transport>' -e 'ALLOW_NO_MODELS=<your-allow-no-models>' -e MAX_ROUNDS=5 -e DYNAMIC_ROLES=true -e LOG_LEVEL=info -e ASYNC_TOOLS=false -e TRUST_PROXY_AUTH=false -- npx -y [email protected]

Configuration

11 settings.

  • MCP_TRANSPORT
    Env var· required
    Run the installed package over MCP stdio (the binary defaults to HTTP).
  • ALLOW_NO_MODELS
    Env var· required
    Boot without any config/models/*.json. The package ships only key-free examples, which the scanner ignores, so this must stay true until a real model file exists beside the working directory.
  • DEFAULT_API_KEY
    Env var· optional· secret
    Default provider or gateway key for model files that omit apiKey.
  • OPENAI_API_KEY
    Env var· optional· secret
    Optional. A model file's apiKey may be "env:VAR" to read the key from an environment variable named VAR at startup; name those variables here as needed. The bundled gpt example reads this one.
  • DEFAULT_BASE_URL
    Env var· optional
    Default OpenAI Responses-compatible API root for model files that omit baseUrl.
  • MAX_ROUNDS
    Env var· optional
    Maximum discussion rounds accepted by a council run.Default: 5
Show 5 more
  • TOKEN_BUDGET
    Env var· optional
    Optional soft cumulative token budget for a council run.
  • DYNAMIC_ROLES
    Env var· optional
    Allow callers to define ad-hoc council roles inline.Default: true
  • LOG_LEVEL
    Env var· optional
    Logging verbosity. Logs are written to stderr for stdio safety.Default: info
  • ASYNC_TOOLS
    Env var· optional
    Run councils in the background: council tools return a job handle and poll/cancel tools are exposed. Jobs live in process memory only.Default: false
  • TRUST_PROXY_AUTH
    Env var· optional
    Bind async jobs to the caller named by X-MS-CLIENT-PRINCIPAL-* headers. Only safe behind an ingress that strips client-supplied copies.Default: false

Listed in the official MCP Registry since Oct 6, 2026. Mirrored daily; last checked Nov 26, 2026.