agent-worker-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PYTHONPATH | Yes | Path to the installed agent-worker-mcp package, e.g. ${HOME}/.local/share/agent-worker-mcp. | |
| RUNTIME_IDLE | No | Number of seconds after which an idle CLI process closes; its session resumes on the next job. | |
| WORKERS_FILE | Yes | Path to the repository-specific workers.yaml file. | |
| WORKER_OWNER | No | Identifier of the main session that owns worker sessions; may be empty. | |
| WORKERS_DISABLED | No | Runtime to disable as a worker, e.g. claude. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Give work to the agent CLIs (workers) that workers.yaml names.
How to give work:
0. Call catalog once to see each worker's models and effort levels and the routing table: which runtime, model,
and effort suits each kind of work, with a fallback. Name a model by its family (sonnet, opus, sol, neon)
to get its newest version; latest shows the full id each family opens. Tell the user about each of warnings.
Reuse a session when you can: a follow-up task on the same subject or files, with the same model and effort, goes to that worker session with
assign(worker, text, session=...), so the worker keeps what it already read and you do not pay to load that context again. The job runs after the jobs before it in that session.Open a new session with
assign(worker, text), andmodelandeffortfrom the routing table when the worker's defaults do not fit, only for unrelated work or another model or effort: a long session sends its whole history with every turn. When your client runsassignas a task (Claude Code does), you go on at once and the finished job comes back to this session by itself. Do not poll for it.Use
steer(session, text)only to change the running job at once, andinterrupt(session)only to stop it. Calllistfirst to find the session and its running job.In a client without tasks, such as
claude -p,assignblocks until the job ends. Usecreatewithtext, thenwaitin a loop, for a long job there.
What to remember:
A session keeps the model and effort it opened with. To change either, open a new session with
assignanddeletethe old one;assignrefusesmodelorefforttogether withsession.If a job fails or falls short, raise the effort one step in a new session before you move to the fallback.
You move to the fallback yourself; the server never does. When
assignorcreateis refused, or a job fails because the runtime is out of quota or the model is unavailable (read itserror), open a new session on a worker of the route's fallback runtime, with its model and the highest effort that model offers up to the one you chose. The same family may run on another runtime on a separate quota:sonnetandopusalso run inantigravity.You see and control your own worker sessions and the shared ones, which have no owner (
list);list(all=true)also shows the sessions of other main sessions, which you may read but not control.A job marked
uncertainmay have reached the worker: readstatusbefore you give it again.A worker that this main session turned off (
WORKERS_DISABLED) is missing fromcatalog; choose another.When a session's work is done:
deleteit if its context will not help again (it cannot be undone), orarchiveit if you may come back to it (it leaveslist, keeps its context, andunarchivebrings it back). Do one of the two before you end your work. An idle session costs no process: the server closes idle CLIs and resumes the session on its next job.prune(older_than)deletes your sessions, archived ones too, that ran no job for that many hours, such as those a finished main session left.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": true
} |
| resources | {
"subscribe": false,
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| createB | Open a session on a worker. With
|
| sendA | Start a job in a session and return its id at once. Refused with |
| queueB | Add a job that runs after the jobs before it. It starts now when the session is idle. |
| steerB | Add an instruction to the running job. When the runtime cannot steer, or no job runs, the text is queued. |
| interruptA | Stop the running job of a session. Queued jobs stay queued. |
| statusC | The state of a job, or of a session and its jobs. |
| waitB | Wait until a job ends, at most |
| resultC | The final answer of a finished job. |
| listB | Your worker sessions, with the running job and the number of queued jobs of each. |
| forkB | Copy a session's conversation into a new session on the same worker. |
| catalogB | The workers you may use, each with its default model and effort, the models and effort levels a new session
may choose, the full id that each family name opens ( |
| archiveB | Hide a session from |
| unarchiveC | Bring an archived session back. |
| deleteA | Delete a session at the vendor and in the store, and remove its worktree. It cannot be undone. |
| pruneA | Delete your worker sessions, and the shared ones, that ran no job for |
| assignA | Give a task to a worker and return the finished job (done, uncertain, or failed). Without |
| watchA | Watch a job in the background and return it when it ends (done, uncertain, or failed). Call it right after |
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 17 tools
Most tools target a distinct resource+action (create session, fork session, interrupt job, result of job), and the descriptions do real work separating near-pairs like `send` (start now, refuse when busy) vs `queue` (run after prior jobs) vs `assign` (blocking convenience wrapper). The remaining soft spots are `wait` vs `watch` (both return a job when it ends, differing only in blocking vs background delivery) and the trio of job-starting verbs, which an agent could plausibly misselect at first glance.
Every name is a single lowercase word with no case mixing, giving a predictable, readable surface. There is a mild verb/noun split — actions (`send`, `steer`, `fork`, `prune`) alongside state/object nouns (`status`, `result`, `list`, `catalog`) — but the convention is stable enough that no name is surprising.
At 17 tools this sits at the upper edge of comfortable, but each one maps to a real lifecycle operation (session CRUD, job control, discovery, cleanup). Nothing looks like a redundant alias, though a few pairs (wait/watch, archive/unarchive) inflate the count beyond the strictly minimal set.
The surface covers session lifecycle (create/fork/archive/unarchive/delete/prune), job lifecycle (send/queue/steer/interrupt/status/result/wait/watch), and discovery via `catalog`, so there are no dead ends for the core workflow. Gaps are minor but real: there is no way to remove or inspect individual queued jobs (interrupt leaves them queued), and no operation to read a running job's partial output beyond steering it.