Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

MCP Tool Reference — Overview

In hierarchical mode, pitboss starts an MCP server on a unix socket and auto-generates an --mcp-config for the lead’s claude subprocess. All tools in this reference are automatically added to the lead’s --allowedTools list — the operator does not list them explicitly.

Workers get a narrower toolset (shared-store tools only; no spawn_worker, no spawn_sublead).

Tool categories

CategoryPageWho can call
Session controlSession controlLead only (root lead)
Coordination & stateCoordination & stateLead + workers
ApprovalsApprovalsLead only

MCP tool name prefix

All pitboss tools are prefixed mcp__pitboss__. In prompts and --allowedTools lists, use the full name:

mcp__pitboss__spawn_worker
mcp__pitboss__kv_get
mcp__pitboss__request_approval

Structured content wrapper

All tool responses are wrapped in a record ({ entry: ... }, { entries: [...] }, { workers: [...] }, etc.). Claude Code’s MCP client requires structuredContent to be a record, not a bare array or null. Unwrap one level when reading results in a lead prompt.

The bridge

Claude Code’s MCP client speaks stdio. The pitboss MCP server listens on a unix socket. Between them is pitboss mcp-bridge <socket> — a stdio-to-socket proxy auto-launched via the lead’s generated --mcp-config. You never invoke it directly.

Error patterns

ErrorMeaningRecovery
budget exceeded: $X spent + $Y reserved + $Z estimated > $B budgetNot enough budget headroom to spawnFinish existing work; surface to operator if needed
worker cap reached: N active (max M)Too many live workersWait for one to finish via wait_for_worker or wait_for_any
run is draining: no new workers acceptedOperator Ctrl-C’d or lead was cancelledFinish gracefully; don’t spawn new work
unknown task_idTypo or referring to an unspawned workerCall list_workers to see what’s registered
SpawnFailedWorker never started (worktree prep failure, branch conflict, non-git directory)Check stderr log
plan approval required: call propose_plan ...require_plan_approval = true and no approved plan yetCall propose_plan and wait for approval

Full canonical reference

AGENTS.md in the source tree is the authoritative machine-readable reference for all tool schemas. The pages in this section derive from it and highlight the most important fields for human readers. If anything here conflicts with the binary’s actual behavior, the binary wins — file a PR against this book.