orca-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@orca-mcp start a coding agent to fix the failing tests and let me know when it's done"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
orca-mcp
An MCP server for Orca, the desktop app for fleets of coding agents. It lets any MCP client (Hermes Agent, Claude Code, Codex, your own daemon) start agents in Orca worktrees, see what each of them is doing, wait for them to finish and talk to them.
Orca ships a CLI but no MCP server and no public API. This package wraps the CLI that comes with the app, so it works with today's unmodified Orca, and it makes three things first-class that are awkward through the CLI alone:
Status.
orca_agent_statusreturns, per worker, its state (working,waiting,blocked,done,idle), since when, the tool it runs, what it waits on, its last message, and its terminal, dispatch and task ids, in one call.Completion.
orca_waitblocks inside the server and returns one structured event when a worker finishes or needs a human. With an orchestration Run it waits on the Run'sworker_doneandescalationmail (read with--peek, so it never takes mail from the Run's coordinator); at the same time it watches the state Orca's agent hooks report, so a worker parked on a permission prompt (which never mails) wakes it too. Without a Run it waits on hook state alone.Ownership that survives restarts. Workers this server starts are tagged
orca-mcp:<tag>in their Orca worktree comment (appended to an optional note you pass ascomment), so with a stableORCA_MCP_CLIENTthey are found again throughorca worktree psafter a restart. The tag lives only in that comment: if someone edits it away in Orca, the worker is no longer "mine" (it still shows withscope: "all").
Every tool result starts with a <state>: <summary> line and carries the same
facts as structuredContent.
Requirements
Orca installed and running (tested with 1.4.250).
Node.js 20 or newer.
Related MCP server: codex-router
Install
Published on npm as @krzysztofkobra/orca-mcp (the bare orca-mcp name belongs to
another project); clients start it with npx. It needs Node 20+ and the Orca desktop app.
Hermes Agent (--args must come last)
hermes mcp add orca --env ORCA_MCP_ROOTS=$HOME/dev --command npx --args -y @krzysztofkobra/orca-mcpor in ~/.hermes/config.yaml:
mcp_servers:
orca:
command: "npx"
args: ["-y", "@krzysztofkobra/orca-mcp"]
env:
ORCA_MCP_ROOTS: "/Users/me/dev"Claude Code
claude mcp add orca -e ORCA_MCP_ROOTS="$HOME/dev" -- npx -y @krzysztofkobra/orca-mcpCodex
codex mcp add orca --env ORCA_MCP_ROOTS="$HOME/dev" -- npx -y @krzysztofkobra/orca-mcpor in ~/.codex/config.toml:
[mcp_servers.orca]
command = "npx"
args = ["-y", "@krzysztofkobra/orca-mcp"]
env = { ORCA_MCP_ROOTS = "/Users/me/dev" }From a checkout instead: git clone https://github.com/krzysztofkobra/orca-mcp && cd orca-mcp && pnpm install && pnpm build, then use node /abs/path/to/orca-mcp/dist/server.js as the command.
SKILL.md is an Agent Skills file with the
coordinator loop; copy it into your client's skills folder (for Claude Code:
~/.claude/skills/orca-mcp/SKILL.md).
Configuration
Variable | Default | Meaning |
| the CLI inside the installed Orca app, else | Path of the |
|
| Directories repos and worktrees must lie in, separated by |
| the MCP client's name plus a random per-process suffix | The owner tag written into worktrees this server starts ( |
| unset | Name (or id) of a saved Orca environment ( |
| unset | A profile directory of the coordinator's own, passed to the orca CLI as |
| on |
|
| unset | Also allow scratch directories directly under the per-user temp dir whose name starts with this prefix. The directory must exist, be owned by you and be writable by nobody else. |
The orca CLI runs with an argv array (never a shell), a minimal environment (PATH, HOME and the few variables it needs to find its runtime), a timeout, a 1 MB output cap and a process-group kill. Arguments that look like credentials are refused before anything runs.
Tools
Tool | What it does |
| Is Orca running, its version, orchestration on or off, external coordinator on or off (and why). |
| List repos registered in Orca, register one. |
| Worktrees with their live agents and owner tag; |
| New worktree plus an agent with a prompt (model and effort optional). |
| Orchestration worker on a task or spec in a new worktree; falls back to |
| Per-worker status in one call (see above). |
| Server-side wait for the next worker event (see above). |
| Orchestration Run and Task. |
| Orchestration mail to a worker or Run, or a line typed into its terminal. |
| List or wait for a Run's unread mail (always read with |
| A worker's output, by dispatch or terminal, with cursors. |
| Low-level terminal input and waits. |
| Stop an agent; remove a worktree (destructive). |
| Search past agent conversations. |
Push instead of polling (optional plugin)
plugin/ is a companion Orca plugin (trusted-worker, asks for agent:read and
workspace:read). It forwards Orca's agent.status.changed, workspace.created and
workspace.removed events to every orca-mcp server of your user over a private local socket
(<tmpdir>/orca-mcp-<uid>/<pid>.sock, dir 0700, socket 0600). While it is connected, orca_wait
wakes on those events instead of reading orca worktree ps every 5 s, and orca_agent_status
says via: "push". Without the plugin everything works by polling. Set ORCA_MCP_BRIDGE=0 to
not open the socket at all. On Windows the bridge is off on both sides (named pipes are shared
between users, so another user could squat one) and orca-mcp polls. Loading the plugin is your call: Orca shows what it may do and asks
for approval (orca plugin dev watch ./plugin, see plugin/README.md).
External coordinators
Released Orca coordinates an orchestration Run from a terminal pane, so a process
outside Orca cannot create one (orca_run_create is refused there; orca_worker_start
with a spec still works). Upstream work
(stablyai/orca#15828, PR pending) lets a
process outside any Orca terminal coordinate a Run as a saved, paired runtime environment:
the paired device is the identity, there is no token of its own. It needs an Orca build whose
orca status --json lists the capability orchestration.external-coordinator.v1.
Setup (you do the pairing by hand, once; orca-mcp never pairs and stores nothing):
Make a pairing link on the Orca host:
orca pair --address 127.0.0.1 --json(itspairingUrl) when the coordinator runs on the same computer, ororca pair/ Settings for another machine.orca pairalso opens network access on that Orca.Save it as an environment. On the same computer Orca refuses to save a pairing code into the profile of the runtime it points at, so the coordinator keeps a profile of its own:
ORCA_USER_DATA_PATH=~/.orca-coordinator orca environment add --name this-mac --pairing-code "orca://pair?code=..."(on another machine plainorca environment add ...is enough).Set
ORCA_MCP_ENVIRONMENT=this-macin the server's environment (theenvof your MCP client config, as forORCA_MCP_ROOTS), and on the same computer alsoORCA_MCP_CLIENT_PROFILE=~/.orca-coordinator(orca-mcp passes it to the CLI asORCA_USER_DATA_PATH).
orca_status then says external coordinator on (environment this-mac). What changes:
orca_run_createrunsorca orchestration run-create --objective <t> --external --environment this-mac, and every other orca call of every tool (reads, waits, terminals, worktrees, repos, search and the probes) carries--environment this-mac, so nothing goes to local Orca meanwhile. Create the Run first: in this modeworker-startmakes none.Repo and worktree paths go as
path:<abs>selectors, which Orca resolves on the paired host. With an environment on another machine, pass paths as they are on that host; theORCA_MCP_ROOTScheck still runs here, on the local path.An external coordinator has no workspace of its own, so Orca refuses
--worktree new-top-levelfor it.orca_worker_starttherefore creates the worktree first (orca worktree create ... --environment this-mac, with the owner tag) and starts the worker into it with--worktree id:<id>.After a restart keep the same
ORCA_MCP_ENVIRONMENT; the Run is still bound to that paired device (orca orchestration run-current --environment this-macshows it).A terminal that runs
orca orchestration run-useon the Run takes it over. A pendingorca_waitororca_checkon it then returns statefenced(codeconsumer_fenced) instead of an error, and the Run is no longer waited on.Any process of your user that can read the saved environment acts as the same coordinator; keep it as private as the pairing itself.
The environment name goes only on argv. The child process gets no ORCA_ENVIRONMENT,
ORCA_PAIRING_CODE or ORCA_MCP_ENVIRONMENT from the parent, so no other saved environment is
used by accident. Without ORCA_MCP_ENVIRONMENT, or when that environment's Orca lacks the
capability, every call behaves exactly as before and orca_status says why. When the environment
cannot be reached (not running, misnamed), every tool fails closed with an error naming it and the
reason (code environment_unavailable); it is asked again after 30 s. Once a read succeeds the mode
holds for the server's lifetime, so a session never switches between the paired Orca and the local one.
The flag names live in one adapter (src/capabilities.ts).
Embedding
The handlers are exported, so a host can wrap them or serve them itself:
import { buildTools, createOrcaMcpServer, type ToolResult } from "@krzysztofkobra/orca-mcp";
const server = createOrcaMcpServer({
onToolResult: (name, args, result: ToolResult) => {
// e.g. count workers from result.structuredContent.worker, add markers,
// or return a replacement result.
},
});buildTools(deps) returns { name, description, shape, handler }[] for hosts
that register tools on their own server. deps.run swaps the CLI runner,
deps.env the environment, deps.client the owner tag.
Development
pnpm install
pnpm typecheck
pnpm test
pnpm buildTests run against a fake orca binary and a scripted runner; they never touch
a live Orca.
Related
BuildContext/orca-mcp is another community MCP bridge for Orca, with Streamable HTTP, OAuth and a supervised dispatch flow, for remote or shared coordinators. This one stays stdio-only and focuses on worker status, server-side waits and the external coordinator mode.
License
MIT
Available Tools
19 toolsorca_agent_statusA
Status of coding agents in one call: per worker its state (working, waiting, blocked, done, idle), since when, the tool it runs, what it waits on, its last message, dispatch and task ids. Default scope: workers this client started (found again after a restart through their Orca worktree tag). Name a terminal, dispatch or worktree to look at one; scope all lists every agent (without their messages).
Inputs: scope, dispatch, terminal, worktree.
orca_checkA
With an agent's terminal: wait until that agent is done (as orca_terminal_wait), or peek at its output. With a run (orchestration): wait up to timeoutMs for unread worker messages (worker_done, questions), or with peek list them without waiting. Run mail is only ever read, never taken, so the Run's coordinator still gets it. For one event at a time prefer orca_wait.
Inputs: run, peek, terminal, timeoutMs.
orca_repo_addA
Register an existing git repository (absolute path inside the allowed roots) with Orca.
Inputs: path (required).
orca_reposC
Repositories registered in Orca (name, path).
Inputs: no named parameters.
orca_run_createB
Create an Orca orchestration Run (a namespace and inbox for tasks and workers). Needs orchestration. With a paired Orca environment configured (ORCA_MCP_ENVIRONMENT) the Run is bound to that paired device as an external coordinator, so it needs no terminal pane.
Inputs: objective (required).
orca_searchC
Search past agent conversations and terminal output in Orca.
Inputs: query (required), limit, scope.
orca_sendB
Message a worker: orchestration mail (to: run: | dispatch:) or, without orchestration, type text + Enter into its terminal.
Inputs: body (required), to, run, type, +2 more.
orca_statusA
Orca app and runtime status: is Orca running and reachable, its version, whether orchestration and external coordinators are available.
Inputs: no named parameters.
orca_task_createC
Create an orchestration Task (spec) in a Run. Needs orchestration.
Inputs: spec (required), run, deps, title.
orca_terminal_readA
Read an agent terminal's output (stripped of escapes). Use cursor from the previous read to get only new output; screen=true for the rendered screen.
Inputs: terminal (required), limit, cursor, screen.
orca_terminal_sendB
Type text into an agent terminal (enter=true submits it) or interrupt it. For orchestration workers prefer orca_send.
Inputs: terminal (required), text, enter, interrupt.
orca_terminal_waitB
Block until the agent in a terminal is done with its turn (default: Orca's hook state, returns within seconds of it finishing, or at once when it waits for input), up to timeoutMs (max 600000). On "working" just wait again. for exit or tui-idle waits on the terminal itself.
Inputs: terminal (required), for, timeoutMs.
orca_waitA
Block server-side until a worker finishes or needs a human, then return one structured event (state done, failed, waiting or blocked, plus the worker and its last message). With a run (or a dispatch, or a run this server created) it waits on the Run's worker_done and escalation mail without taking it and, at the same time, on Orca's hook state (a worker parked on a prompt never mails); otherwise on hook state alone for one terminal, one worktree, or every worker this client started. Each event is returned once, so calling orca_wait in a loop walks through them. On state working the timeout passed: wait again.
Inputs: run, dispatch, terminal, worktree, +1 more.
orca_worker_readC
Read a worker's output: by dispatch id (orchestration) or by agent terminal handle.
Inputs: limit, cursor, dispatch, terminal.
orca_worker_startB
Start a coding agent on a task (or a spec) in a new worktree of a repo. Uses Orca orchestration; when that is disabled it falls back to worktree create with the spec as prompt. The worktree is tagged as this client's. Then call orca_wait.
Inputs: name (required), repo (required), run, spec, +5 more.
orca_worker_stopA
Stop a worker (by dispatch id) or close an agent terminal (by handle). Never deletes the worktree.
Inputs: dispatch, terminal.
orca_worktree_createA
Create a new worktree in a repo and start a coding agent in it with the task prompt (optional model and effort). The worktree is tagged as this client's, so orca_agent_status and orca_wait find it after a restart. Returns the agent's terminal handle.
Inputs: name (required), repo (required), prompt (required), agent, +4 more.
orca_worktree_rmB
Remove a worktree (and its local branch when Orca can prove it is merged). Destructive.
Inputs: worktree (required), force.
orca_worktreesA
Worktrees with their live agents (status, agent type and state, branch, owner). Optional repo path filter; mine=true lists only worktrees this client started.
Inputs: mine, repo, limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 19 tools
Several tools overlap heavily: orca_wait, orca_terminal_wait, and orca_check all block on agent completion; orca_terminal_read and orca_worker_read both fetch output; orca_terminal_send and orca_send both inject text; orca_agent_status and orca_worktrees both report worker state. The descriptions do explicitly steer callers ('prefer orca_send', 'for one event at a time prefer orca_wait'), which keeps the set usable, but an agent still has to read carefully to pick the right wait/read variant.
A consistent orca_ prefix is used, but conventions are mixed: some tools are noun_verb (orca_worktree_create, orca_task_create, orca_worker_stop), some are bare nouns or unscoped verbs (orca_worktrees, orca_wait, orca_check, orca_send, orca_status). Entity naming also drifts between agent/worker, repo/repos, and worktree/worktrees, plus a 'rm' abbreviation.
19 tools is at the upper edge for this scope; the workflow concepts (worktree, terminal, agent, orchestration run/task/worker) legitimately need many operations, but the count is inflated by near-duplicate wait/read/send variants that could collapse into a couple of parameterized tools.
Core lifecycle is well covered: worktree create/list/remove, terminal read/send/wait, agent status, run/task/worker orchestration, search, app status, and repo list/add. Gaps are minor—no repo removal, no run close/list, and no task update or listing—which agents can work around.
Related MCP Connectors
- aXDeprecatedio.github.ax-platform
Agent-native collaboration network: orchestrate a team of long-running agents from any MCP client.
Start and manage Reason cloud coding agents, projects and sessions from any MCP client.
Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceAn MCP server for orchestrating a fleet of CLI coding agents in isolated git worktrees. It exposes tools for spawning workers, sending instructions, reviewing diffs, and merging changes, with full terminal visibility.10 npm4MIT
- AlicenseNot gradedqualityFmaintenanceA durable MCP control plane for starting, observing, steering, continuing, cancelling, and handing off long-running coding agents, with bounded MCP calls and persistent worktrees.17 npmMIT
- AlicenseAqualityBmaintenanceEnables orchestrator agents to route coding tasks to native CLI worker agents via MCP, providing tools for agent discovery, task submission, waiting, inspection, and cancellation.53MIT
- AlicenseNot gradedqualityBmaintenanceEnables a coding agent to act as a master that spawns, dispatches tasks to, monitors, and approves heterogeneous worker agents over ACP, exposing the orchestration lifecycle as MCP tools.MIT