Skip to main content
Glama
tsarihan

model-council-mcp-codex

by tsarihan

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GROK_CLINoSet to 'true' to add subscription-backed Grok members via local grok CLIfalse
CODEX_CLINoSet to 'true' to add subscription-backed ChatGPT member via local codex exec CLIfalse
MAX_FILESNoMax number of attached files32
CLAUDE_CLINoSet to 'true' to add subscription-backed Claude members via the local claude CLIfalse
MAX_TOKENSNoMax output tokens per completion32768
JUDGE_MODELNoJudge model ID or 'auto'auto
MAX_FILE_KBNoPer-file cap in KB512
XAI_API_KEYNoEnables X.AI Grok models
MAX_TOTAL_KBNoTotal across all attached files in KB1536
VLLM_SERVERSNoComma-separated list of name:host:port for vLLM servers
GROK_CLI_PATHNoPath to the grok binarygrok
RESPONSE_MODENoResponse mode: individual, categorized, deconflicted, pooled, dialecticcategorized
CODEX_CLI_PATHNoPath to the codex binarycodex
COUNCIL_MODELSNoComma-separated model IDs
MAX_CONTEXT_KBNoInline context string cap in KB1024
OLLAMA_ADDRESSNoBase URL of your Ollama serverhttp://localhost:11434
OPENAI_API_KEYNoEnables OpenAI models
SGLANG_SERVERSNoComma-separated list of name:host:port for SGLang servers
TRTLLM_SERVERSNoComma-separated list of name:host:port for TRT-LLM servers
CLAUDE_CLI_PATHNoPath to the claude binaryclaude
GROK_CLI_MODELSNoModel names for the Grok CLI membergrok-4.5
MAX_QUESTION_KBNoQuestion string cap in KB256
CODEX_CLI_MODELSNoModel names for the Codex memberdefault
ANTHROPIC_API_KEYNoEnables Anthropic Claude models
CLAUDE_CLI_MODELSNoModel aliases for the Claude CLI memberopus,sonnet
CLOUD_CONCURRENCYNoMax simultaneous requests to cloud members3
LOCAL_CONCURRENCYNoMax simultaneous requests to local models; 0 = unlimited1
COMPLETION_RETRIESNoAttempts per completion before giving up3
DECONFLICT_VERBOSENoIf 'true', deconflicted results include per-round detail by defaultfalse
REQUEST_TIMEOUT_MSNoPer-completion wall-clock timeout in ms for text-only calls300000
MODEL_COUNCIL_STATENoPath to persistent state file (overrides ~/.config/model-council/state.json)
MAX_DECONFLICT_ROUNDSNoMax deconfliction iterations3
REPO_REQUEST_TIMEOUT_MSNoPer-completion timeout in ms when full_repo_access is set600000
CLAUDE_CLI_OLLAMA_MODELSNoComma-separated Ollama model names to run through the claude CLI harness
CLAUDE_CLI_OLLAMA_ADDRESSNoOllama address for the harness member, if different from OLLAMA_ADDRESS
GROK_CLI_UNSAFE_ACCEPT_RCENoSet to 'true' to re-enable Grok CLI members (unsafe, testing only)false

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_modelsA

List all AI models available across every configured provider (Ollama, OpenAI, Anthropic, X.AI Grok (API key), vLLM, TRT-LLM, SGLang, plus subscription-CLI providers: Claude, ChatGPT/Codex, Grok). Use the returned model IDs when calling configure_council.

configure_councilA

Update the council configuration: select which models form the council, choose a judge model, set the response mode (individual / categorized / deconflicted / pooled / dialectic), and set the maximum deconfliction rounds. Each field supplied is persisted and survives restarts/reloads, same as setup_council's tier choices; a field left unset is untouched.

ask_councilA

Send a question to the model council and get a structured response. Mode: individual (each model answers separately), categorized (judge groups responses into agreement/complementary/conflicting), deconflicted (iterative loop — judge orchestrates re-questioning until conflicts resolve, returns a deconfliction score 0–100%), pooled (Delphi-style — members reconsider against a neutral, deduplicated, attribution-free pool of answers; no winner is forced, so genuine divergence is preserved), or dialectic (thesis/antithesis/synthesis — members defend their pick and critique the rest, the judge compiles a pros/cons dossier per option, then members re-select a ranked top-3). Attach images to ask a vision question — only auto-detected vision-capable members are queried; the rest are skipped and reported in visionRouting. For a repo review, pass git_ref (e.g. "uncommitted", "main..HEAD") instead of hand-listing files — the server runs git diff locally and attaches it as context. For a full repo-wide review (not just a diff), full_repo_access (default false, WARNING: read access to the whole repo — see its param description) grants claude-cli/codex-cli members read-only browse/read access.

ask_council_asyncA

Start a council run in the background and return a job_id immediately, so a long deconfliction/dialectic run (or a slow local model) does not block. Same inputs as ask_council (mode, context, files, etc.). Poll get_council_result with the job_id to fetch the answer when ready. Jobs are in-memory and do not survive a server reload.

get_council_resultA

Fetch a background council run started with ask_council_async. Pass job_id to get its status (running | done | error) and, when done, the full result. Omit job_id (or set list=true) to list recent jobs.

get_council_configA

Return the current council configuration: member models, judge model, response mode, and max deconfliction rounds.

council_statusA

Report the detected environment and current setup: local Ollama models, whether Ollama cloud is reachable on this plan, whether Claude and Codex are logged in, whether Grok CLI is installed but fail-closed, the current council members, resolved subscription tiers, per-provider concurrency, and a quota warning. Use this as the welcome/status readout — it works in every client and install method.

setup_councilA

Set subscription tiers, then re-detect and auto-populate the council with everything usable. Tiers gate cloud availability and per-provider concurrency: chatgpt (free|plus|pro5x|pro20x), claude (free|pro|max5x|max20x), grok (free|supergrok|premiumplus|heavy), ollama (free|pro|max). Choices persist across reloads. Note: registering a NEW subscription provider or changing concurrency takes full effect after a reload.

set_council_timeoutsA

Set the per-completion wall-clock timeouts (ms) for council calls, persisted across reloads and overriding the REQUEST_TIMEOUT_MS / REPO_REQUEST_TIMEOUT_MS env defaults. run_timeout_ms applies to text-only ask_council calls; repo_timeout_ms applies when full_repo_access is set (repo-reading completions run longer). Omit either to leave it unchanged. Raise these when a member answer is cut mid-generation (the result then carries a timeoutNotice). Returns the now-effective values. A reload is NOT required — takes effect on the next ask_council.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tsarihan/model-council-mcp-codex'

If you have feedback or need assistance with the MCP directory API, please join our Discord server