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_TRANSPORTEnv var· requiredRun the installed package over MCP stdio (the binary defaults to HTTP).ALLOW_NO_MODELSEnv var· requiredBoot 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_KEYEnv var· optional· secretDefault provider or gateway key for model files that omit apiKey.OPENAI_API_KEYEnv var· optional· secretOptional. 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_URLEnv var· optionalDefault OpenAI Responses-compatible API root for model files that omit baseUrl.MAX_ROUNDSEnv var· optionalMaximum discussion rounds accepted by a council run.Default:5
Show 5 moreShow fewer
TOKEN_BUDGETEnv var· optionalOptional soft cumulative token budget for a council run.DYNAMIC_ROLESEnv var· optionalAllow callers to define ad-hoc council roles inline.Default:trueLOG_LEVELEnv var· optionalLogging verbosity. Logs are written to stderr for stdio safety.Default:infoASYNC_TOOLSEnv var· optionalRun councils in the background: council tools return a job handle and poll/cancel tools are exposed. Jobs live in process memory only.Default:falseTRUST_PROXY_AUTHEnv var· optionalBind async jobs to the caller named by X-MS-CLIENT-PRINCIPAL-* headers. Only safe behind an ingress that strips client-supplied copies.Default:false
Links
Listed in the official MCP Registry since Oct 6, 2026. Mirrored daily; last checked Nov 26, 2026.