Legion
by github.com/faulkj · v0.8.0 · updated Oct 6, 2026
MCP-native LLM councils for debates, juries, blind panels, refinement, and custom deliberation.
Run it locally
Install the package and point your AI client at it.
npm
npx -y [email protected]Environment variables
MCP_TRANSPORTrequiredRun the installed package over MCP stdio (the binary defaults to HTTP).
DEFAULT_BASE_URLDefault OpenAI Responses-compatible API root for model files that omit baseUrl.
DEFAULT_API_KEYsecretDefault provider or gateway key for model files that omit apiKey.
ALLOW_NO_MODELSrequiredBoot 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.
OPENAI_API_KEYsecretOptional. 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.
MAX_ROUNDSMaximum discussion rounds accepted by a council run.
TOKEN_BUDGETOptional soft cumulative token budget for a council run.
DYNAMIC_ROLESAllow callers to define ad-hoc council roles inline.
LOG_LEVELLogging verbosity. Logs are written to stderr for stdio safety.
ASYNC_TOOLSRun councils in the background: council tools return a job handle and poll/cancel tools are exposed. Jobs live in process memory only.
TRUST_PROXY_AUTHBind async jobs to the caller named by X-MS-CLIENT-PRINCIPAL-* headers. Only safe behind an ingress that strips client-supplied copies.
More from github.com/faulkj
More MCP servers
Kojiru Mcp
github.com/faulknerwayne73-droid
Kojiru Recourse Layer — agent credit primitives (ACS, stake, draw, anchor) live on Base mainnet
Faxforagents Mcp
github.com/faxforagents
Send and receive faxes from an AI agent: exact quotes, human approvals, delivery evidence, sandbox.
Saywatch Mcp
github.com/faye916yang-ai
Search and read your SayWatch Apple Watch voice recording transcripts. Read-only, local files.
Lore Memory for Windows
github.com/fayzkk889
Cited local coding-agent history for fresh Codex and Claude Desktop chats on Windows.
MCPSense
github.com/fayzkk889
Inspect MCP configurations, tool metadata, and changes from your coding assistant.
Wpf Visual Tree
github.com/faze79
Inspect and drive WPF apps: trees, bindings, screenshots, mouse dragging and touch gestures.