Skip to main content
Glama

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_cancel and runs_list (reference).

  • Three kinds of run: ask and review are read-only, implement edits 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 run and agent-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 doctor

npm 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 serve

install claude only links the skills; the last command registers the server.

Codex:

agent-mcp install codex --print
agent-mcp install codex --yes

agy:

agent-mcp install agy --print
agent-mcp install agy --yes

Security model

  • A child starts with an allow-listed environment; API-key variables are always removed.

  • review and ask are capped to read-only, whatever the role or request says.

  • implement needs 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 tools
agents_listB
Read-onlyIdempotent

List backends, their models, modes and capabilities.

Inputs: backend. Returns: depth, reason, backends, max_depth

run_cancelB
DestructiveIdempotent

Cancel a run. May answer cancelling; poll run_status for the end state.

Inputs: run_id (required). Returns: state, reason, run_id

run_resultA
Read-onlyIdempotent

Fetch a finished run's answer, verdict and changed files.

Inputs: run_id (required). Returns: log, error, state, usage, +7 more

run_sendB
Destructive

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_listC
Read-onlyIdempotent

List recent runs, newest first.

Inputs: limit, state. Returns: runs

run_startC
Destructive

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_statusA
Read-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

    A3.5/5.0

    Scored across 7 tools

    Disambiguation4/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables 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 npm
      3
      Apache 2.0