Context7
Up-to-date docs for AI agents
제작자가 쓴 설명(영어 원문)
MCP-native LLM councils for debates, juries, blind panels, refinement, and custom deliberation.
이 세 가지는 절대 하나의 점수로 합치지 않아요. 의견, 측정, 인기는 서로 다른 것이니까요.
이 서버는 아직 쉬운 말로 된 요약을 쓰지 못했어요. 아래는 레지스트리에서 읽어 온 사실이에요.
쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.
MCP_TRANSPORT, DEFAULT_BASE_URL, DEFAULT_API_KEY, ALLOW_NO_MODELS, OPENAI_API_KEY, MAX_ROUNDS, TOKEN_BUDGET, DYNAMIC_ROLES, LOG_LEVEL, ASYNC_TOOLS, TRUST_PROXY_AUTH비밀로 표시된 값은 내 계정의 열쇠예요. 절대 다른 사람과 공유하거나 채팅에 붙여 넣지 마세요.
필요한 것
어떤 앱을 쓰세요?
위에서 앱을 고르세요. 기억해 두었다가 다음부터는 버튼에 “…에 설치”라고 표시해요.
Claude Desktop → Settings → Developer → Edit Config를 열고 claude_desktop_config.json에 이 내용을 붙여 넣으세요
{
"mcpServers": {
"legion": {
"command": "npx",
"args": [
"-y",
"legion-mcp"
],
"env": {
"MCP_TRANSPORT": "your-value",
"DEFAULT_BASE_URL": "your-value",
"DEFAULT_API_KEY": "your-value",
"ALLOW_NO_MODELS": "your-value",
"OPENAI_API_KEY": "your-value",
"MAX_ROUNDS": "your-value",
"TOKEN_BUDGET": "your-value",
"DYNAMIC_ROLES": "your-value",
"LOG_LEVEL": "your-value",
"ASYNC_TOOLS": "your-value",
"TRUST_PROXY_AUTH": "your-value"
}
}
}
}터미널에서 이 명령어를 실행하세요
claude mcp add legion --env MCP_TRANSPORT=your-value --env DEFAULT_BASE_URL=your-value --env DEFAULT_API_KEY=your-value --env ALLOW_NO_MODELS=your-value --env OPENAI_API_KEY=your-value --env MAX_ROUNDS=your-value --env TOKEN_BUDGET=your-value --env DYNAMIC_ROLES=your-value --env LOG_LEVEL=your-value --env ASYNC_TOOLS=your-value --env TRUST_PROXY_AUTH=your-value -- npx -y legion-mcp실행하기 전에 빈 값을 채워 주세요.
프로젝트의 .cursor/mcp.json 또는 ~/.cursor/mcp.json에 붙여 넣으세요
{
"mcpServers": {
"legion": {
"command": "npx",
"args": [
"-y",
"legion-mcp"
],
"env": {
"MCP_TRANSPORT": "your-value",
"DEFAULT_BASE_URL": "your-value",
"DEFAULT_API_KEY": "your-value",
"ALLOW_NO_MODELS": "your-value",
"OPENAI_API_KEY": "your-value",
"MAX_ROUNDS": "your-value",
"TOKEN_BUDGET": "your-value",
"DYNAMIC_ROLES": "your-value",
"LOG_LEVEL": "your-value",
"ASYNC_TOOLS": "your-value",
"TRUST_PROXY_AUTH": "your-value"
}
}
}
}브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.
프로젝트의 .vscode/mcp.json에 붙여 넣으세요
{
"servers": {
"legion": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"legion-mcp"
],
"env": {
"MCP_TRANSPORT": "your-value",
"DEFAULT_BASE_URL": "your-value",
"DEFAULT_API_KEY": "your-value",
"ALLOW_NO_MODELS": "your-value",
"OPENAI_API_KEY": "your-value",
"MAX_ROUNDS": "your-value",
"TOKEN_BUDGET": "your-value",
"DYNAMIC_ROLES": "your-value",
"LOG_LEVEL": "your-value",
"ASYNC_TOOLS": "your-value",
"TRUST_PROXY_AUTH": "your-value"
}
}
}
}브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.
이 서버는 내 컴퓨터에서 실행되는데, ChatGPT는 인터넷에 있는 서버에만 연결할 수 있어요. 다른 앱을 고르세요.
선택한 앱은 이 기기의 쿠키에만 저장돼요. 계정은 필요 없어요.
DEFAULT_BASE_URL envMAX_ROUNDS envTOKEN_BUDGET envDYNAMIC_ROLES envLOG_LEVEL envASYNC_TOOLS envTRUST_PROXY_AUTH env이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.
내 컴퓨터에서 실행돼요. 설치하면 AI 앱에 도구 목록이 나타나요.
누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 7일 점검
레지스트리 이름이 GitHub 계정 faulkj 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요
아직 GitHub에서 이 저장소를 읽어 오지 않았어요
아직 GitHub에서 이 저장소를 읽어 오지 않았어요
내 컴퓨터에서 실행되는 서버라 인터넷 엔드포인트가 없어요
내 컴퓨터에서 실행되며, 대신 로컬 설정을 사용해요
내 컴퓨터에서 실행돼요. 도구 목록은 인터넷 엔드포인트가 있는 서버에서만 읽을 수 있어요
레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.
해당하는 기본 점검 1개 중 1개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.
입력해야 할 값: MCP_TRANSPORT, DEFAULT_API_KEY, ALLOW_NO_MODELS, OPENAI_API_KEY
내 컴퓨터에서 실행돼요. AI 앱이 필요할 때 실행하고, 데이터는 제작자의 서버를 거치지 않아요(서버 자체가 온라인 서비스를 호출하는 경우는 제외).
GitHub 저장소는 마지막으로 – 변경됐고, 최신 버전(0.8.0)은 31일 전 레지스트리에 올라왔어요.
Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. 내 컴퓨터에 Node.js도 있어야 해요.
같은 카테고리에는: Context7, Codebase Memory, Exa
같은 카테고리에서 다른 제작자가 만든 서버예요. 스타 순으로 정렬했어요.
카드 보는 법:★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.
"I am Legion, for we are many."
An MCP-native model council. Legion exposes LLMs as individual tools and orchestrates them into debates, juries, blind panels, private refinement gauntlets, workshops, and custom multi-model deliberations.
Every model is reached through the OpenAI Responses API wire format. Use OpenAI or Azure directly, route other providers through a compatible gateway (such as a LiteLLM proxy), and configure the entire council through hot-reloadable files.
flowchart LR
AI[Calling AI] -->|claude / gpt / gemini …| Legion Legion -->|Responses API| GPT[OpenAI / Azure — direct] Legion -->|Responses API| GW[Gateway e.g. LiteLLM] GW --> Claude & Gemini & Llama
Claude → claude). Each accepts a prompt plus optional context, role, system, temperature, and maxTokens.structuredContent, not the answer text. Logging goes to stderr (safe for stdio).quorum tool covers the ad-hoc multi-model case, and each preset in config/presets/ is exposed as its own enforced, pre-staffed council tool.store: false. Nothing is persisted, so there is no database and no conversation state to manage.From npm — no clone, no build:
npx legion-mcp
From a clone:
npm install
copy .env.example .env # then edit .env
All configuration lives in a config/ directory. The bundled defaults are always the base layer; a config/ folder in the current working directory is overlaid on top of them, per file:
models/, roles/, presets/, tools/): a local file overrides the bundled file of the same name; a local-only file is added; every bundled file you don't touch stays. So dropping in one config/presets/refine.json overrides just that preset — the other bundled presets remain.prompts.json, errors.json, schema.json): merged per key — bundled < local. A partial local file overrides only the keys it sets.The overlay can override or add, but not delete a bundled entry. To choose which bundled presets register as tools, use PRESETS (see below).
Installing from npm? You must supply your own model files. The bundled
config ships only key-free
*.example.jsonmodel files, which the scanner
deliberately ignores — so the bundle contributes zero real models. With no
real model file the server fails fast at startup (`No model files found
in ...
). Drop oneconfig/models/ .json` next to where you run the
server (see below) — the rest falls back to the bundled defaults.
The layout below is identical either way.
Config is read fresh when a server instance is built, never baked in at build time — but *when* that happens depends on the transport:
| Transport | Config is re-read | Effect of editing a config file |
|---|---|---|
http | per request | Live on the next call, no restart. |
stdio | once per connection | Takes effect when the client reconnects. |
HTTP builds a fresh server per request, so a dropped-in model, role, preset, or text override is picked up by the very next call. Stdio pins one server for the life of the connection, so the same edit lands when the client restarts Legion — which for most desktop MCP clients means reloading the server, not rebooting the machine.
Where this README says something is "live on the next call", read it as the HTTP behavior; over stdio it's the next connection.
config/models/*.jsonAt least one model file is required — the server fails fast without one. Each JSON file becomes a tool, named after the slugified file name (config/models/fable.json → tool fable):
{
"model": "claude-fable-5", "description": "Claude Fable — fast, creative, general purpose.", "baseUrl": "https://api.example.com", "apiKey": "[PopNx MCP ตัดค่าที่หน้าตาเหมือนกุญแจออก]" }
model (required) — the deployed model id the endpoint routes to.description — helps the calling AI pick the right model.system — optional baseline system instructions baked into every call to this model.baseUrl / apiKey — optional; omitted values fall back to DEFAULT_BASE_URL / DEFAULT_API_KEY. apiKey may reference an environment variable with the env: prefix — "apiKey": "env:GPT_KEY" reads GPT_KEY from the environment (unset/empty is a fatal startup error), so a key can stay out of the file entirely.omitParams — optional list of request params to drop for this model, e.g. ["temperature"]. The server stays provider-agnostic: it never assumes which models reject which params — you declare each model's quirks here. Useful for reasoning models and some deployments that reject temperature.reasoning — optional "minimal" | "low" | "medium" | "high", sent as reasoning.effort. Reasoning models can spend an entire maxTokens thinking and emit nothing; "low" may help leave room for an answer. The endpoint must support this parameter; it does not bypass content filtering.maxTokens — optional hard output ceiling for this model. Every request sends min(requested, ceiling), whatever the caller or preset role asked for. For models that think harder the more room they get and come back empty.Hot-drop: the directory is re-scanned per request — add or edit a model file and it's live on the next call, no restart.
Secrets & git: model files can contain API keys, so config/models/*.json is git-ignored. Copy a *.example.json (tracked, key-free, ignored by the scanner) to get started:
copy config\models\gpt.example.json config\models\gpt.json # then add your key
config/roles/*.mdOptional hot-droppable instruction files. Each .md file becomes a named role (slugified from filename). Drop a file, it's live on the next call. This repo ships skeptic.md, builder.md, judge.md, and short.md (a terse "answer immediately, no deliberation" role useful for constrained-output turns) as ready-to-use starters — edit or delete them freely (they hold no secrets).
Available selectors in tools become roleName, e.g. passing role: "skeptic" or using "model:skeptic" in quorum.models.
config/presets/*.jsonOptional hot-droppable council recipes, one JSON file per preset (named after the slugified file name, like models). Each preset becomes its own tool — drop config/presets/code_review.json and a code_review tool appears on the next request. Each preset has a description, a roles list, and optional authoritative mode / synthesizer defaults. Each role defines its behavior inline — a role's description *is* its instructions (the behavior contract); a role with no description falls back to a matching config/roles/ .md file:
{
"description": [ "Free-for-all: pit several contestants against each other, then crown a winner.", "", "Staff contestant with as many models as you like; one judge decides." ], "mode": "parallel", "synthesizer": "judge", "roles": [ { "role": "contestant", "description": "Argue why your answer beats the others.", "min": 2, "max": null }, { "role": "judge", "description": "Crown a single winner and justify it.", "min": 1, "max": 1 } ] }
The calling AI invokes the preset tool directly (e.g. code_review) and still writes the models selectors, assigning any model to any preset role. Presets are enforced: every selector must use a preset role and every role must be staffed within its cardinality, else the result is an error saying what to fix.
Keys:
| Key | Type | Default | Description | |||
|---|---|---|---|---|---|---|
description | `string \ | string[]` | required | MCP description for the preset tool. | ||
roles | PresetRole[] | required | Roles accepted by the preset. | |||
mode | `"sequential" \ | "parallel" \ | "private" \ | "independent"` | "sequential" | Controls which prior turns each round speaker sees. |
defaultRounds | positive integer | 1 | Rounds used when the call omits rounds. | |||
synthesizer | string | none | Role that produces synthesis turns. A single-seat role is neutral and sits out the rounds; a multi-seat role (max > 1 or null) plays, and its first live seat synthesizes. | |||
synthesizeEvery | `"end" \ | non-negative integer` | "end" | Runs synthesis at the end or every Nth round. | ||
eliminator | string | none | Neutral role that issues eliminations. Required with eliminateEvery. | |||
framer | string | none | Neutral role that opens and redirects the discussion. | |||
reframeEvery | `"end" \ | non-negative integer` | "end" | Reframes only at opening or every Nth round after opening. | ||
closingStatements | boolean | false | Runs a closing phase before final synthesis. | |||
eliminateEvery | non-negative integer \ | "spread" | 0 | Lets the eliminator remove one speaker every Nth round, or spread the cuts evenly. Preset-only. | ||
eliminationsOptional | boolean | false | Lets the eliminator decline an elimination. Preset-only. | |||
enterEvery | non-negative integer | 0 | Starts one speaker per team, then adds one benched speaker every Nth round. Preset-only. | |||
vote | string | none | Ballot instructions; enables anonymous voting. | |||
voteEvery | `"end" \ | non-negative integer` | "end" | Votes at the end or every Nth round. | ||
voteVisibility | `"aggregate" \ | "ballots"` | "aggregate" | Includes only totals or also anonymized ballot choices in the transcript. | ||
allowSelfVote | boolean | true | Includes each voter's own seat in its candidate menu. | |||
voteByTeam | boolean | false | Presents one choice per @team and aggregates votes by team. |
Role object keys:
| Key | Type | Default | Description |
|---|---|---|---|
role | string | required | Role name used in model:role selectors. |
| description | string \| string[] | matching role file | Inline instructions; arrays are joined with newlines. Otherwise
앞부분만 보여 드려요. 나머지는 저장소에서 읽어 보세요