agent-supervisor-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GIT_BIN | No | Path to the Git executable. | git |
| CODEX_BIN | No | Path to the Codex CLI executable. On Windows, bare names are expanded via PATHEXT and .cmd shims are automatically bypassed; if pointing to a .js/.cjs/.mjs file, it is started with node. Set this explicitly if the MCP client's PATH does not include codex (common for GUI-launched apps). | codex |
| CODEX_HOME | No | Read-only. Used to read Codex's native goals_1.sqlite. | ~/.codex |
| SUPERVISOR_HOME | No | State root directory. The sqlite database, event streams, and worktrees are stored under it. | ~/.codex-supervisor |
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
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| preflight_workerA | Prove the environment before spending a worker. probe_commands starts a short probe worker under the same workspace, sandbox and guard and returns its id: read it with get_worker include preflight, then pass it as preflight_id to create_worker with the same arguments. acceptance alone runs those commands in cwd now and returns their results. |
| create_workerA | Start a worker on one verifiable piece of work in its own git worktree and branch. It never commits or pushes. task is the whole brief: background, spec, write set, verify command, output format. followup_of continues a finished worker from its branch with its settings. runner: codex (default) or claude. |
| resume_workerA | Continue the same worker session with a new instruction, in its worktree; the thread keeps its history. Use it to fix what review found before landing. rebase_onto first moves the worktree onto a newer commit and refuses on conflict. A worktree removed by cleanup is restored from the worker's branch. |
| cancel_workerB | Stop a running worker or its acceptance run. Its worktree and what it changed so far stay. |
| poll_workersA | The main thread's read. Without cursor: a compact table of every worker and a next_cursor. With that cursor: only what happened since, as transitions (finished, failed, needs attention) with the next step; quiet when nothing did. A poll with a cursor also recovers a dead first run once and removes safe worktrees (listed under cleaned). Call it from a loop. |
| wait_workersA | Block until the given workers settle (process exited and acceptance run), then return one row each. A call waits 60 seconds at most and says so in timed_out; call again with the same ids. allow_long_wait lifts the cap only when the client's own tool timeout is known to be longer. |
| get_workerA | One worker, in the parts you ask for. No include: a one-paragraph summary; one part: that part; several: an object keyed by part. result: its report, the supervisor's acceptance verdict and the commands it really ran. status: live state. events: the raw stream. goal: objective and token use. preflight: a probe's verdict. evidence, context: what was recorded and given. prompt: the task text. A report is a claim; acceptance and get_worker_diff are the evidence. |
| get_worker_diffA | The worker's actual changes against its base, committed or not. Without file: the list of files with line counts and hunk counts. With file: that file's patch, paged by hunk (cursor from the previous page). Read this before landing; it is what the worker did, whatever it reported. |
| ask_workerA | Ask the worker why it did something without touching its work: its thread is forked into a read-only session with no network and no MCP tools, and the fork answers. Follow-up questions continue that fork; fresh starts a new one from the worker's current thread, end deletes it. |
| land_workerA | Cherry-pick the worker's commits onto the branch checked out where it was dispatched. commit_message first commits its uncommitted edits, which is how a sandboxed worker's work gets committed. Refused when acceptance failed or has not run, the target is dirty, or the diff leaves owned_paths; a conflict leaves the target as it was. Read get_worker_diff first. |
| verify_pushB | Fetch a remote branch and check the landed commit is reachable from it. It only verifies: it never pushes or deploys. Landing is local; this is the proof the work left the machine. |
| cleanupA | Cleanup is automatic during poll_workers: landed or unchanged work goes at once, unlanded work after a hold period, with uncommitted edits committed to the worker's branch first; branches and evidence stay. Use this to see why a worktree is still there (plan), remove SAFE ones now (apply, with plan_id and item_ids), or read what was removed (history). |
| find_worksA | Every worker of one session, or a substring search over titles, goals, prompts and last messages, newest first. Use it before dispatching to see whether the work was already done, and after a restart to pick a batch up again. |
| describe_sessionA | Record what a session is for and the rules its workers share: a title and note, an objective, acceptance commands added to every worker of the session, and an approval state. waiting_user stops dispatch, resume and landing in the session until it is approved again. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 14 tools
The read tools (poll_workers, wait_workers, get_worker) could be confused at a glance, but the descriptions sharply separate them: poll is a non-blocking main-thread read, wait blocks, and get_worker returns specific parts. preflight_worker and create_worker are intentionally coupled via preflight_id, and while that dependency takes reading, it is documented. Every other tool targets a clearly distinct action (cancel, resume, land, verify, ask, diff, cleanup, find, describe).
Nearly all tools follow a snake_case verb_noun pattern (create_worker, resume_worker, cancel_worker, get_worker_diff, land_worker, describe_session, find_works). Minor deviations: 'cleanup' has no verb, and 'verify_push' names a transport action rather than the resource. These are readable but slightly inconsistent with the rest.
Fourteen tools is well within the ideal range for a worker-orchestration server covering dispatch, lifecycle, inspection, verification, and cleanup. Each tool maps to a distinct phase of the worker workflow and none appears redundant.
Coverage spans the full lifecycle: preflight, create, resume, cancel, poll/wait, inspect (get, diff, ask), land, verify_push, cleanup, search, and session metadata/approval. Minor gaps remain — there is no explicit revert of a landed commit and no top-level session listing or deletion, though agents can work around these.