agent-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., "@agent-mcp have Codex review my current diff and report issues"
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.
agent-mcp
One MCP server that lets Claude Code, Codex and agy (the Antigravity CLI) start, steer, resume, cancel and review runs on each other, with the model picked per role.
Status: phase 1. Not published to npm or the MCP registry; install it from source.
flowchart LR
caller["Caller: Claude Code, Codex or agy"] -->|MCP over stdio| server["agent-mcp"]
server --> policy["Policy: workspace, environment, role, MCP allowlist, depth, guards"]
policy --> runs["Run manager: queue, timeout, cancel, verdict, run store"]
runs --> codex["codex app-server or exec"]
runs --> agy["agy stream-json"]
runs --> claude["claude stream-json"]What you get
Seven MCP tools:
agents_list,run_start,run_status,run_result,run_send,run_cancelandruns_list(reference).Three kinds of run:
askandrevieware read-only,implementedits a linked git worktree.A verdict on every run, based on the exit status and on what actually changed in the workspace.
A command line for the same runs:
agent-mcp runandagent-mcp runs.Two Agent Skills, delegate and review, and a Claude Code plugin.
Related MCP server: Pair
Requirements
Node 22 or newer, and git.
At least one of the three CLIs, installed and logged in with a subscription. API keys are never passed to a child.
Linux. Other systems are untested; reaping orphaned runs and the herdr probe work on Linux only.
Install from source
npm install && npm run build
npm link
agent-mcp doctornpm link puts agent-mcp on your PATH, which the client registrations
below rely on. With Nix, see docs/install.md.
Then write a config file with at least one role, because there are no default
models: start from examples/config.example.json, replace the placeholder
model names, and see docs/config.md.
Quick start per client
Each --print shows the change and writes nothing. --yes applies it.
Claude Code:
agent-mcp install claude --print
agent-mcp install claude --yes
claude mcp add --scope user agent-mcp -- agent-mcp serveinstall claude only links the skills; the last command registers the
server.
Codex:
agent-mcp install codex --print
agent-mcp install codex --yesagy:
agent-mcp install agy --print
agent-mcp install agy --yesSecurity model
A child starts with an allow-listed environment; API-key variables are always removed.
reviewandaskare capped to read-only, whatever the role or request says.implementneeds a linked git worktree on an unprotected branch with an empty index.Each role lists the MCP servers its child may use. If a backend can't enforce the list, the run is refused.
Delegation depth is limited (default 2).
A run fails its verdict if HEAD or the branch moves, if anything is staged, or if a read-only run changes the workspace.
A result is advice. It approves nothing.
The verdict detects problems after the fact; it is not a sandbox. Read docs/security.md, including what is not protected.
Supported versions
Backend | Tested version |
Codex CLI | 0.172.0 |
agy | 1.5.18 |
Claude Code | 2.1.332 |
On any other version run_start answers backend_unverified until
agent-mcp doctor --probe has passed for that exact version. The probe
spends one model turn.
Vendor terms
agent-mcp is not affiliated with or endorsed by Anthropic, OpenAI or Google. It runs each vendor's unmodified, official CLI on your machine, under the login you made in that CLI. It never reads, stores or forwards credentials, and it does not share, resell or proxy any account. You are responsible for following each vendor's terms. This is not legal advice; checked on 2026-11-30.
Claude Code. Anthropic allows signing in to the unmodified Claude Code binary with your own subscription, and says usage limits assume "ordinary, individual usage". Products built for other people should use API keys (legal and compliance).
Codex. Signing in with ChatGPT is supported; OpenAI recommends API keys for automation (authentication).
agy. Off by default. Google's Antigravity terms say using third-party tools to access the service is a breach that can lead to suspension of your Antigravity and Gemini CLI accounts. Turn it on with
"backends": {"agy": {"enabled": true}}only if you accept that risk.
Before any public release, written confirmation is sought from each vendor.
Documentation
MIT licence.
Available Tools
7 toolsagents_listBRead-onlyIdempotent
List backends, their models, modes and capabilities.
Inputs: backend. Returns: depth, reason, backends, max_depth
run_cancelBDestructiveIdempotent
Cancel a run. May answer cancelling; poll run_status for the end state.
Inputs: run_id (required). Returns: state, reason, run_id
run_resultARead-onlyIdempotent
Fetch a finished run's answer, verdict and changed files.
Inputs: run_id (required). Returns: log, error, state, usage, +7 more
run_sendBDestructive
Send a message to a running run: steer the turn (Codex only) or queue a follow_up.
Inputs: how (required), run_id (required), message (required). Returns: error, state, reason, run_id
runs_listCRead-onlyIdempotent
List recent runs, newest first.
Inputs: limit, state. Returns: runs
run_startCDestructive
Start a subagent run. Returns the result if it finishes within wait_s.
Inputs: cwd (required), kind (required), prompt (required), backend (required), +10 more. Returns: state, reason, result, run_id
run_statusARead-onlyIdempotent
Poll a run. Waits up to wait_s for new events or a state change.
Inputs: run_id (required), wait_s, after_event. Returns: state, events, reason, run_id, +2 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool maps to a distinct lifecycle step: discovering backends, starting, polling, fetching results, messaging, cancelling, and listing runs. The only mild overlap is run_status vs run_result, but descriptions clearly separate polling for state/events from retrieving a finished run's answer and changed files.
All seven tools follow a uniform noun_verb convention: agents_list, runs_list, run_start, run_status, run_result, run_send, run_cancel. Singular 'run' for per-run operations and plural for collection listings is a coherent, predictable rule.
Seven tools is a tight, well-scoped set that covers the whole subagent lifecycle without redundant or filler operations. Each tool earns its place by mapping to one phase of the run model.
The surface covers discovery, execution, polling, result retrieval, steering, cancellation, and history, which supports the core workflow end to end. Minor gaps exist around inspecting a run's configuration/metadata after the fact or retrieving past event history beyond the polling window, but agents can work around these with run_result and run_status.
Maintenance
Related MCP Connectors
Your AI apps as one team: hand work to Codex or Claude Code on your Mac, with a shared logbook.
Hand off work between AI agents in any tool. Start Devin or Cursor cloud and share memory.
Coordination hub for AI coding agents: message teammates, ask humans, audit every event.
Shared rooms where Claude Code, Codex, Cursor and other MCP agents talk and split work.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceCoordinates multiple Claude Code agents to work collaboratively on projects with role-based task management, shared state, and automated code review.2-
- AlicenseNot gradedqualityCmaintenanceEnables users to delegate coding tasks in a chosen project to the official Codex and Claude CLI agents from within an existing chat, then convene a council of configured models to gather independent opinions and review the resulting files and test runs. It also manages multi-provider API connections, model catalogs, and per-task token, time, and cost limits.MIT
- AlicenseNot gradedqualityCmaintenanceEnables bidirectional, asynchronous task delegation between Codex and Claude Code, plus optional DeepSeek API consultations, with workspace locking, recursion protection, and bounded permissions.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables Claude Code, Codex, and Cursor to delegate self-contained coding tasks to one another on the user's own subscriptions, with each task isolated in a git worktree and sandbox, usage tracked, budgets enforced, and results returned for review.35 npm3Apache 2.0