legion
MCP-native LLM councils for debates, juries, blind panels, refinement, and custom deliberation.
Documentation & Preview
{ "mcpServers": { "mcp-legion-e0ed419cebf30b092cbb": { "command": "npx", "args": [ "-y", "--package", "legion-mcp@0.8.0", "legion-mcp" ], "env": { "MCP_TRANSPORT": "${ENV_MCP_TRANSPORT}", "DEFAULT_BASE_URL": "${ENV_DEFAULT_BASE_URL}", "DEFAULT_API_KEY": "${ENV_DEFAULT_API_KEY}", "ALLOW_NO_MODELS": "${ENV_ALLOW_NO_MODELS}", "OPENAI_API_KEY": "${ENV_OPENAI_API_KEY}", "MAX_ROUNDS": "${ENV_MAX_ROUNDS}", "TOKEN_BUDGET": "${ENV_TOKEN_BUDGET}", "DYNAMIC_ROLES": "${ENV_DYNAMIC_ROLES}", "LOG_LEVEL": "${ENV_LOG_LEVEL}", "ASYNC_TOOLS": "${ENV_ASYNC_TOOLS}", "TRUST_PROXY_AUTH": "${ENV_TRUST_PROXY_AUTH}" } } }, "setup": { "fields": [ { "id": "ENV_MCP_TRANSPORT", "label": "MCP_TRANSPORT", "description": "Run the installed package over MCP stdio (the binary defaults to HTTP).", "required": true, "secret": false, "default": "" }, { "id": "ENV_DEFAULT_BASE_URL", "label": "DEFAULT_BASE_URL", "description": "Default OpenAI Responses-compatible API root for model files that omit baseUrl.", "required": false, "secret": false, "default": "" }, { "id": "ENV_DEFAULT_API_KEY", "label": "DEFAULT_API_KEY", "description": "Default provider or gateway key for model files that omit apiKey.", "required": false, "secret": true, "default": "" }, { "id": "ENV_ALLOW_NO_MODELS", "label": "ALLOW_NO_MODELS", "description": "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.", "required": true, "secret": false, "default": "" }, { "id": "ENV_OPENAI_API_KEY", "label": "OPENAI_API_KEY", "description": "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.", "required": false, "secret": true, "default": "" }, { "id": "ENV_MAX_ROUNDS", "label": "MAX_ROUNDS", "description": "Maximum discussion rounds accepted by a council run.", "required": false, "secret": false, "default": "5" }, { "id": "ENV_TOKEN_BUDGET", "label": "TOKEN_BUDGET", "description": "Optional soft cumulative token budget for a council run.", "required": false, "secret": false, "default": "" }, { "id": "ENV_DYNAMIC_ROLES", "label": "DYNAMIC_ROLES", "description": "Allow callers to define ad-hoc council roles inline.", "required": false, "secret": false, "default": "true" }, { "id": "ENV_LOG_LEVEL", "label": "LOG_LEVEL", "description": "Logging verbosity. Logs are written to stderr for stdio safety.", "required": false, "secret": false, "default": "info" }, { "id": "ENV_ASYNC_TOOLS", "label": "ASYNC_TOOLS", "description": "Run councils in the background: council tools return a job handle and poll/cancel tools are exposed. Jobs live in process memory only.", "required": false, "secret": false, "default": "false" }, { "id": "ENV_TRUST_PROXY_AUTH", "label": "TRUST_PROXY_AUTH", "description": "Bind async jobs to the caller named by X-MS-CLIENT-PRINCIPAL-* headers. Only safe behind an ingress that strips client-supplied copies.", "required": false, "secret": false, "default": "false" } ], "requirements": [ "安装 Node.js / npm" ] }, "provenance": { "registryServer": "io.github.faulkj/legion", "registryVersion": "0.8.0", "registryUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.faulkj%2Flegion/versions/0.8.0", "repository": null, "sourceCommit": null, "namespaceRepositoryOwnerMatched": false, "officialRegistryNamespaceVerified": true, "package": { "registry": "npm", "identifier": "legion-mcp", "version": "0.8.0", "integrity": "sha512-HvINYK9V6Wq7ugi32ZRj+Cs8GrMe76wN3dHEQm9zTrj3PyT7kfxYpGwX9tpNveNrSOiu9ld15liib17CnB6xLQ==", "registryNameMatched": "io.github.faulkj/legion", "checkedAt": "2026-11-04T17:19:28.879Z" }, "scope": "Install configuration verified; dependency implementation and remote behavior have not been audited" } }