orca-mcp
OfficialClick on "Install 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-mcpCreate a worktree for task #42 and dispatch an agent to finish it."
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
External MCP server for Orca — control worktrees, agent sessions, and orchestration from any MCP client (Claude Desktop, Cursor, VS Code, Hyperagent, custom agents, …).
Orca today is driven by its CLI. This project is a small, zero-dependency Node.js bridge that:
Speaks MCP over stdio (local desktop hosts) or Streamable HTTP (remote / multi-tenant)
Spawns only the
orcabinary (execFile, no shell)Exposes a supervised dispatch → await → release workflow for multi-agent orchestration
Optionally proxies a local Hindsight MCP next to Orca
Community stopgap for stablyai/orca#13079
(“Expose Orca as an MCP server for session and workspace control”).
When Orca ships a first-partyorca mcp, this bridge remains useful as a remote / multi-tenant edge with OAuth.
Protocol target: MCP 2025-11-25 (stdio NDJSON + Streamable HTTP).
Roadmap: migrate HTTP mode toward 2026-07-28 stateless HTTP when clients catch up.
Tested on
Host | Orca surface | Notes |
macOS | GUI app + CLI | Full worktrees, iOS Simulator, LaunchAgent install |
Linux | CLI-only ( | systemd unit, no GUI; orchestration sender auto-pinned |
Security warning
This server is not a sandbox and not a security boundary.
orca-mcp runs with your OS user privileges. An authenticated caller can:
spawn coding agents and supervised workers on your machine
drive Orca terminals (including raw
terminal sendunder default config)reach the host filesystem and network indirectly through those agents and the Orca CLI
execute anything the bridge OS user (and your
orca/orca-idebinary) can already do
Defaults are permissive on purpose (back-compat for trusted coordinators):
Control | Default |
Capability toolsets ( | all enabled |
| off (warn-only) |
OS / FS / network sandbox | none |
Per-caller authz beyond possessing the token/session | none |
Always-on guardrails are narrow: HTTP binds 127.0.0.1 only, spawn is execFile of the Orca binary only (no shell), unsupervised worktree create --agent --prompt via raw cli is rejected, master-token compare is timing-safe, and the audit log redacts common secrets. That is not equivalent to “safe for untrusted users.”
Shared or untrusted deployments — turn hardening on
# Supervised coordinators only — drop raw admin CLI (terminal send, worktree rm, …):
export ORCA_BRIDGE_TOOLSETS=status,dispatch
export ORCA_BRIDGE_CLI_HARDENING=1
# Read-only observer (health / inventory / check):
node server.mjs --port 8787 --read-onlyAlso: put a long random ORCA_BRIDGE_TOKEN in a mode-600 env file (never in git); prefer OAuth on HTTP so the master token is not stored in remote MCP client settings; use a separate OAuth client per coordinator; never hand the master path-token URL to someone you would not give a shell.
Do not expose this bridge to callers you do not trust. Full threat model, assets, and non-goals: docs/threat-model.md. Vulnerability reporting: SECURITY.md.
Related MCP server: nexusm-mcp-server
Why this exists
MCP clients cannot natively control Orca. Shelling out to the CLI works only when the agent already has a shell on the Orca host. Remote coordinators (cloud agents, Hyperagent, another laptop) need a network-facing MCP endpoint with auth. Local desktop hosts need a stdio subprocess they can launch themselves.
orca-mcp runs next to Orca on the host:
Local host (Claude Desktop / Cursor / VS Code)
│ stdio NDJSON (orca-mcp --stdio)
▼
orca-mcp ──execFile──► orca CLI ──► Orca runtime
Remote MCP client ──HTTPS──► Funnel / proxy ──► 127.0.0.1:8787 (HTTP mode)Features
Two transports, one tool surface
stdio (
orca-mcp --stdio) — local hosts; env-based auth; stdout is JSON-RPC onlyStreamable HTTP (default) — remote coordinators; OAuth + path-token; loopback bind
Single MCP tool
orcawithaction:health— Orca reachability + bridge versiondispatch— create worktree / inject agent + autoworker_donecontractawait— poll orchestration inbox (empty/timeout = re-call, not failure)release— settle worker (safe against coordinator-sender close)guide— coordinator discipline (also inCOORDINATOR.md)check/cli— lower-level inbox + raw CLI (with handoff guards)
Capability toolsets (
status/dispatch/admin) — opt-in restriction via env/flag; default = all enabledOAuth 2.0 + PKCE on HTTP (Dynamic Client Registration) so the master token never sits in the MCP client config
Path-token URLs (
/t/<token>/mcp) for curl / sandboxesPer-OAuth-client sender isolation — multiple coordinators on one bridge without fencing each other
Zero npm dependencies —
node server.mjsand doneMac LaunchAgent + Linux systemd deploy helpers under
deploy/
Current bridge version: 0.2.13 (see VERSION in server.mjs).
Quick start
Local install (stdio)
Desktop MCP hosts (Claude Desktop, Cursor, VS Code, Windsurf, Claude Code) launch the bridge as a subprocess and speak newline-delimited JSON-RPC on stdin/stdout. No browser OAuth — secrets come from the environment (MCP guidance for stdio servers).
Published package: orca-mcp@0.2.13 on npm (pin the version; @latest is fine for throwaways only). Prefer the container image for long-lived or privileged hosts.
Standard config
{
"mcpServers": {
"orca": {
"command": "npx",
"args": ["-y", "orca-mcp@0.2.13", "--stdio"],
"env": {
"ORCA_BRIDGE_TOKEN": "<openssl rand -hex 32>",
"ORCA_CLI_COMMAND": "orca"
}
}
}
}Local checkout (no registry):
{
"mcpServers": {
"orca": {
"command": "node",
"args": ["/absolute/path/to/orca-mcp/server.mjs", "--stdio"],
"env": {
"ORCA_BRIDGE_TOKEN": "<openssl rand -hex 32>"
}
}
}
}Host matrix
Edit the desktop config and restart Claude Desktop:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Use the Standard config JSON above (mcpServers.orca).
# Published package (pin the version):
claude mcp add orca --env ORCA_BRIDGE_TOKEN=… -- npx -y orca-mcp@0.2.13 --stdio
# Local checkout:
claude mcp add orca --env ORCA_BRIDGE_TOKEN=… -- node /absolute/path/to/orca-mcp/server.mjs --stdioCursor Settings → MCP → Add new MCP Server, command type:
Command:
npxArgs:
-y orca-mcp@0.2.13 --stdioEnv:
ORCA_BRIDGE_TOKEN, optionalORCA_CLI_COMMAND
Or merge the Standard config into Cursor’s MCP JSON.
# Published package (VS Code 1.102+ MCP support):
code --add-mcp '{"name":"orca","command":"npx","args":["-y","orca-mcp@0.2.13","--stdio"],"env":{"ORCA_BRIDGE_TOKEN":"<token>"}}'Or add the same object under "mcp": { "servers": { … } } in .vscode/mcp.json / user settings.json (see current VS Code MCP docs for the exact key — it has moved between preview builds).
Cascade → MCP servers → add a stdio server with the Standard config fields (command / args / env), or edit the Windsurf MCP config JSON equivalently.
stdio auth (env only)
Variable | Required | Purpose |
| yes (≥16 chars) | Master token — proves the local host may drive the bridge (same secret HTTP mode uses) |
| no | Override |
| no | Default |
| no | Default agent (default |
| no | Pin orchestration sender handle |
| no | Title for auto-created coordinator tabs |
| no |
|
| no |
|
| no | Not used on the stdio path today (HTTP proxy only) |
stdout is protocol-only. All logs go to stderr in --stdio mode. Do not wrap the process with tools that print banners on stdout.
stdio smoke
export ORCA_BRIDGE_TOKEN="$(openssl rand -hex 32)"
printf '%s\n' \
'{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"smoke","version":"0"}}}' \
'{"jsonrpc":"2.0","method":"notifications/initialized"}' \
'{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}' \
| npx -y orca-mcp@0.2.13 --stdio
# Expect two JSON-RPC response lines on stdout (initialize + tools/list); banners on stderr only.Container (GHCR)
Docker's guidance for privileged MCP servers is container over bare npx. The published image runs as non-root UID 1001, bakes no secrets, and the same entrypoint supports HTTP and stdio.
# pin by semver
docker pull ghcr.io/buildcontext/orca-mcp:0.2.13
# stdio (local MCP host launches the container)
docker run --rm -i \
-e ORCA_BRIDGE_TOKEN \
-e ORCA_CLI_COMMAND=orca \
ghcr.io/buildcontext/orca-mcp:0.2.13 --stdio
# HTTP on loopback (publish via Funnel / reverse proxy yourself)
docker run --rm \
-e ORCA_BRIDGE_TOKEN \
-e ORCA_BRIDGE_PUBLIC_ORIGIN=https://your-host.example.ts.net \
-p 127.0.0.1:8787:8787 \
ghcr.io/buildcontext/orca-mcp:0.2.13After each release the image is also digest-pinned in the GitHub Release notes. Prefer the digest in production:
# example — replace with the digest from the release:
# docker pull ghcr.io/buildcontext/orca-mcp@sha256:<digest>MCP Registry metadata lives in server.json (io.github.buildcontext/orca-mcp).
Remote install (Streamable HTTP)
Prerequisites
Node.js ≥ 18 (22 recommended)
Orca installed and working on the same machine (
orcaororca-ideonPATH)A secret master token (≥ 16 chars)
# From npm (HTTP mode):
export ORCA_BRIDGE_TOKEN="$(openssl rand -hex 32)"
echo "Save this token: $ORCA_BRIDGE_TOKEN"
export ORCA_BRIDGE_PUBLIC_ORIGIN="https://your-host.example.ts.net" # optional; needed for OAuth URLs
npx -y orca-mcp@0.2.13 --port 8787
# Or from a git checkout:
git clone https://github.com/BuildContext/orca-mcp.git
cd orca-mcp
node server.mjs --port 8787The server binds 127.0.0.1 only. Publish it yourself:
# example: Tailscale Funnel
tailscale funnel --bg 8787
tailscale funnel statusRegister in an MCP client
OAuth path (recommended) — URL only, no token in settings:
https://your-host.example.ts.net/mcpThe client discovers OAuth metadata, registers (DCR), opens a browser; you enter the master token once. Issued access tokens live in ~/.orca-bridge-tokens.json.
Direct path token (debug / curl):
https://your-host.example.ts.net/t/<ORCA_BRIDGE_TOKEN>/mcpHyperagent default redirect prefix is allowlisted (https://hyperagent.com/). For other clients set:
export ORCA_BRIDGE_REDIRECT_ALLOW="https://your-client.example/,https://hyperagent.com/"Smoke test
curl -sS -X POST "https://your-host.example.ts.net/t/$ORCA_BRIDGE_TOKEN/mcp" \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"orca","arguments":{"action":"health"}}}'Expect statusProbe.ok: true and a bridge.version.
Supervised orchestration (for coordinators)
Generated from
lib/coordinator-doctrine.mjs. Edit the doctrine module, then runnpm run docs:build.
Raw worktree create --agent --prompt is rejected (forbidden_handoff). Use the action API:
health → dispatch → await(≤45s)×N → worker_done → release(dispatchId, terminalHandle) → read-only
| Meaning |
empty / timeout | Re-call |
question | Reply via |
escalation | Read body; answer / re-task / fail; always ack |
worker_done |
|
Full discipline: tool description, action=guide, and COORDINATOR.md.
Example wave:
// 1. start work
{ "action": "dispatch", "spec": "…", "repo": "path:/path/to/repo", "agent": "omp" }
// 2. poll until worker_done (repeat)
{ "action": "await", "runId": "<from dispatch>", "waitMs": 45000 }
// 3. cleanup
{ "action": "release", "dispatchId": "<…>", "terminalHandle": "<worker handle from dispatch>" }Environment
Variable | Purpose |
| Required (both transports). Master token (≥16 chars) — stdio env auth; HTTP path-token + OAuth “password” |
| HTTP only. Public origin for OAuth URLs (Funnel / proxy host) |
| HTTP only. Comma-separated allowed |
| Override |
| Default agent for |
| Default |
| Pin a live terminal as orchestration sender |
| Title for auto-created coordinator tabs |
|
|
| Comma list of enabled tiers: |
|
|
|
|
|
|
| HTTP only. Optional Hindsight proxy target (default |
| HTTP only. Listen port (default |
| CLI flag equivalent to |
| CLI flag. Select stdio transport instead of Streamable HTTP |
State files (mode 600 where applicable):
~/.orca-bridge-tokens.json— issued OAuth access tokens~/.orca-bridge-sender-pins.json— durable per-client sender pins
Capability toolsets
The multiplexed orca tool is still one MCP name (no renames — agents keep working). Operators can restrict which actions an authenticated caller may invoke.
Tiers
Tier | Actions / surfaces |
|
|
|
|
| Remaining raw |
Mapping lives in one module: lib/toolsets.mjs (ACTION_TIERS + CLI_PREFIX_TIERS).
Config precedence
--read-only(process argv) →{ status }onlyORCA_BRIDGE_TOOLSETS→ exact set (e.g.status,dispatch)Default →
{ status, dispatch, admin }(identical to the historical all-tiers-on behavior)
Compat: ORCA_BRIDGE_CLI_ADMIN=1 adds admin to the enabled set when the env list omitted it. It does not override --read-only.
ORCA_BRIDGE_CLI_HARDENING remains the allowlist enforcer on action=cli (warn-don’t-block when off). The toolset admin bit is what unlocks admin prefixes under hardening — one admin concept, not two competing switches.
Default is permissive (owner decision)
All tiers are ON unless you restrict them. Existing coordinators need zero config changes. Restriction is an explicit operator choice.
When a tier is disabled, the bridge returns a structured error (not a bare string):
{
"ok": false,
"error": "toolset_denied",
"required_tier": "dispatch",
"action": "dispatch",
"enabled_toolsets": ["status"],
"detail": "… Set ORCA_BRIDGE_TOOLSETS to include \"dispatch\" …",
"enable_via": { "env": "ORCA_BRIDGE_TOOLSETS", "example": "status,dispatch", "read_only_flag": "--read-only" }
}action=health always reports the active set under toolsets (when status is enabled — which it is in every supported config).
Recommended hardened deploy (shared / untrusted)
# Supervised coordinators only — no raw admin cli:
export ORCA_BRIDGE_TOOLSETS=status,dispatch
export ORCA_BRIDGE_CLI_HARDENING=1
# Read-only observer (health / inventory / check):
node server.mjs --port 8787 --read-only
# equivalent: ORCA_BRIDGE_TOOLSETS=statusSHOULD set
ORCA_BRIDGE_TOOLSETS(and usuallyORCA_BRIDGE_CLI_HARDENING=1) on any bridge reachable by more than a trusted coordinator. Safe posture is one env var away — it is intentionally not the default so existing installs keep working.
Both Streamable HTTP and --stdio resolve toolsets the same way: createToolsetGate({ env: process.env, argv: process.argv }) at process start.
Deploy
macOS (GUI Orca)
Helpers under deploy/macos/:
export ORCA_BRIDGE_TOKEN=… # or --seed-env-from-pid
export ORCA_BRIDGE_PUBLIC_ORIGIN=https://your-host.ts.net
export ORCA_BRIDGE_DURABLE_CHECKOUT="$(pwd)" # where server.mjs lives
export ORCA_BRIDGE_NODE_BIN="$(command -v node)"
./deploy/macos/install-mac.shInstalls a user LaunchAgent (com.orca-mcp.bridge), runtime dir ~/.orca-bridge/, secrets in ~/.orca-bridge/env (mode 600). Does not kill a process already holding :8787 — cutover is a separate step.
Linux (CLI-only / headless)
Clone this repo to a durable path (not an ephemeral Orca worktree).
Copy
deploy/linux/orca-bridge.service→/etc/systemd/system/, editUser,WorkingDirectory,EnvironmentFile, andExecStartpaths.Put secrets in the env file (mode 600):
ORCA_BRIDGE_TOKEN=…
ORCA_BRIDGE_PUBLIC_ORIGIN=https://your-host.ts.net
ORCA_CLI_COMMAND=orca-ide # if that is your binary name
# recommended on shared hosts:
# ORCA_BRIDGE_TOOLSETS=status,dispatch
# ORCA_BRIDGE_CLI_HARDENING=1systemctl enable --now orca-bridge.serviceLogs:
journalctl -u orca-bridge.service -n 50
Scripts run.sh / watchdog.sh / verify-runtime.sh are optional host helpers; set ORCA_BRIDGE_SERVER to your checkout’s server.mjs.
Security model
Read the blunt Security warning first. Operational facts:
HTTP mode listens on 127.0.0.1 only — never open the port raw to the internet; terminate TLS at Funnel / reverse proxy.
stdio mode is a local subprocess: auth is
ORCA_BRIDGE_TOKENfrom the host env / MCP client config (no OAuth browser flow). stdout carries only JSON-RPC; logs go to stderr.Auth: constant-time token compare (
tokenMatches); OAuth access tokens (HTTP) are revocable (delete~/.orca-bridge-tokens.json+ restart).Process spawn is only the Orca binary — no arbitrary shell through the bridge.
Full CLI surface is powerful (
terminal send, etc.). Default toolsets leave it available for back-compat; restrict withORCA_BRIDGE_TOOLSETS/--read-onlyand optionallyORCA_BRIDGE_CLI_HARDENING=1(see Capability toolsets).Append-only audit log (redacted NDJSON under
ORCA_BRIDGE_AUDIT_DIRor~/.orca-bridge) records tool calls for forensics — it is not an access-control layer.Rotate master token by setting a new
ORCA_BRIDGE_TOKEN, restarting, and re-pairing clients.Threat model:
docs/threat-model.md. Report vulnerabilities privately:SECURITY.md.
Project layout
server.mjs # MCP server: shared handlers + HTTP/stdio transports (zero deps)
server.json # MCP Registry metadata (io.github.buildcontext/orca-mcp)
Dockerfile / .dockerignore # non-root image for GHCR (HTTP + --stdio)
lib/coordinator-doctrine.mjs # canonical coordinator discipline (guide + docs)
lib/toolsets.mjs # capability tiers + gate
lib/cli-policy.mjs # action=cli allowlist policy
lib/security-core.mjs # pure security helpers
lib/audit.mjs # annotations + audit resources
lib/orch-isolation.mjs # multi-coordinator isolation helpers + unit tests
lib/stdio-transport.test.mjs # stdio + HTTP smoke (node --test)
scripts/docs.mjs # npm run docs:build / docs:check
docs/design.md # why the bridge is shaped this way (sender pin, inject, OAuth)
docs/threat-model.md # trust boundaries, threats, mitigations
SECURITY.md # private vulnerability reporting + scope
CONTRIBUTING.md # dev setup, checks, doctrine edit rule
COORDINATOR.md # generated supervised-flow discipline (action=guide)
deploy/macos/ # LaunchAgent installer (HTTP mode)
deploy/linux/ # systemd unit + host scripts (HTTP mode)
.github/workflows/release.yml # npm --provenance + GHCR on v* tagsDesign rationale (sender pinning, inject recovery, envelope quirks, OAuth):
docs/design.md. Threat model: docs/threat-model.md. Contributing: CONTRIBUTING.md.
npm test # node --test lib/**/*.test.mjs
npm run lint # syntax check all .mjs
npm run docs:checkRelation to upstream Orca
This project | Hoped-for first-party ( | |
Transport | stdio (local) + Streamable HTTP + OAuth (remote) | Likely stdio for local agents |
Protocol | MCP 2025-11-25 (roadmap: 2026-07-28 stateless HTTP) | TBD |
Placement | External process next to Orca | Inside Orca / CLI |
Scope today | Supervised orchestration + raw CLI passthrough | Session / workspace tools per #13079 |
If you maintain Orca: this repo is a working reference for tool shapes, headless sender pinning on CLI-only hosts, and multi-client isolation. Link from #13079 welcome.
License
MIT — see LICENSE.
Orca is a product of Stably; this project is an independent community bridge, not affiliated with or endorsed by Stably.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceExposes any stdio-based MCP server to the internet via HTTP/SSE transport, enabling remote agents to access MCP tools over a network.16MIT
- AlicenseAqualityBmaintenanceGeneric MCP server exposing Nexusm core capabilities (memory, conversation, knowledge, feedback, context) to MCP clients via stdio and Streamable HTTP transports.49MIT
- Alicense-qualityBmaintenanceMCP server for the Synapse ecosystem that exposes the Synapse Memory API, Browser Proxy, and SSH Proxy as MCP tools, enabling multi-tenant, stateful interactions via stdio or HTTP/SSE.1701MIT
- Alicense-qualityCmaintenanceOpen WebUI MCP server that exposes ask and list_models tools, letting any MCP client query Open WebUI models through the full tool-calling loop (including server-side tools) via stdio, SSE, or streamable HTTP transports.3MIT
Related MCP Connectors
Personal assistant MCP server with search, execute, packages, jobs, secrets, and integrations.
Remote MCP server for The Colony — a social network for AI agents (posts, DMs, search, marketplace).
MCP server exposing the Backtest360 engine API as tools for AI agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/BuildContext/orca-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server