# Agent Supervisor MCP

> Agent Supervisor MCP is an open-source MCP server for agent tooling. Runs parallel Codex CLI or Claude Code workers from any MCP client, each in its own git. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Web, macOS, Linux, Windows, Self-hosted
- **Website:** https://agent-supervisor.zriyo.com
- **Repository:** https://github.com/zriyox/agent-supervisor-mcp
- **MCP Registry name:** io.github.zriyox/agent-supervisor-mcp
- **Categories:** [agent tooling](https://ai-powered.com/categories/agent-tooling)
- **Listing updated:** 2026-11-27

## About

Agent Supervisor MCP lets a lead session hand out coding jobs to several background workers at once. Each worker gets its own git worktree, so parallel edits do not overwrite each other, and ownership of file paths is checked before a job starts. Dispatch state, events and results are written to disk in SQLite and JSONL rather than kept in the lead model's context window.

The lead agent can check a worker's report and the diff it produced, ask it follow-up questions in a read-only side session, and land accepted changes onto the main branch. Acceptance commands are run by the supervisor itself after a worker exits, so a worker's claim of success is not enough to merge.

A companion web board, served locally, groups workers by session and shows status, running commands, changed files and event streams. It suits developers who already use Codex CLI or Claude Code and want to split a repository task across several agents while keeping the work reviewable.

## Features

- **Isolated git worktrees:** Each worker runs in its own worktree, and declared owned paths are checked for overlap before dispatch.
- **Acceptance checks:** The supervisor runs the acceptance commands given at dispatch and blocks merging when they fail.
- **Resumable sessions:** Worker threads are stored with their IDs so an interrupted run can be picked up again.
- **Compact status reporting:** Worker events go to log files and the lead agent reads only short summaries.
- **Clear failure states:** Failed, timed-out and lost runs are kept distinct, with a source and error code for failures.
- **Local monitoring board:** A local web page shows workers grouped by session, with diffs, commands, events and side questions.
- **Automatic worktree cleanup:** Merged or unchanged worktrees are removed during polling, and unmerged ones are kept for seven days.

## Good for

- Splitting a multi-module test-writing task across parallel Codex or Claude Code workers
- Running several refactors in one repository without file conflicts between agents
- Reviewing each worker's diff before landing its commit on the main branch
- Resuming a worker session after the lead chat was restarted
- Using a non-Claude model for workers while keeping the lead session on Claude

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add agent-supervisor-mcp -- npx -y agent-supervisor-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "agent-supervisor-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "agent-supervisor-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "agent-supervisor-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "agent-supervisor-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "agent-supervisor-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "agent-supervisor-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "agent-supervisor-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "agent-supervisor-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add agent-supervisor-mcp -- npx -y agent-supervisor-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.agent-supervisor-mcp]
command = "npx"
args = ["-y", "agent-supervisor-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "agent-supervisor-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "agent-supervisor-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user agent-supervisor-mcp npx -- -y agent-supervisor-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "agent-supervisor-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "agent-supervisor-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "agent-supervisor-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "agent-supervisor-mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "agent-supervisor-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "agent-supervisor-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "agent-supervisor-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "agent-supervisor-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "agent-supervisor-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "agent-supervisor-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "agent-supervisor-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "agent-supervisor-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "agent-supervisor-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "agent-supervisor-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "agent-supervisor-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "agent-supervisor-mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 3 of 14 tools change data; 7 names don't say. From the server's own tool labels and tool names; not verified by us.

- `preflight_worker`: Runs a short probe or the acceptance command in the target worker environment before dispatch.
- `create_worker` (name suggests: changes): Dispatches one worker with a session, owned paths and goal.
- `resume_worker`: Continues a worker in the same session, optionally rebased onto the main branch.
- `cancel_worker` (name suggests: changes): Stops a running worker.
- `poll_workers`: Lists worker status, returning only changes since a cursor.
- `wait_workers`: Waits up to 60 seconds for worker results.
- `get_worker` (name suggests: reads): Reads a worker's summary, report, status, events and goal.
- `get_worker_diff` (name suggests: reads): Returns the changes a worker made, paged by file and hunk.
- `ask_worker`: Asks a worker a read-only side question without affecting its thread.
- `land_worker`: Commits and cherry-picks a worker's changes into the integration branch after acceptance passes.
- `verify_push` (name suggests: changes): Checks that a landed commit exists on the remote.
- `cleanup`: Inspects or removes a worker's worktree.
- `find_works` (name suggests: reads): Finds dispatched work by session or keyword.
- `describe_session` (name suggests: reads): Sets the title, goal, default acceptance and approval state for a session.

## FAQ

### What are the prerequisites?

Node.js 22.13.0 or newer and the codex CLI on the PATH. Claude Code is also needed if it is used as the worker runner.

### Can workers use Claude Code instead of Codex?

Yes. Setting the runner to claude runs Claude Code in headless mode. It has no system-level sandbox, so it can only run in a git worktree or read-only mode, and side questions are not supported for it.

### What is the difference between failed, timed_out and lost?

Failed covers non-zero exits, turn failures and spawn errors, with a source and error code. Timed_out means the time budget ran out and the run was stopped without automatic retry. Lost means the process was killed externally or disappeared, and the run can be resumed.

### Does the lead agent's context fill up with worker output?

Worker events are written to JSONL files and the lead reads compressed summaries, with all workers together kept under 7000 bytes. Long jobs use a cursor-based poll that returns only changes.

### Is Agent Supervisor MCP free?

Yes. Agent Supervisor MCP is open source, so you can use and self-host it for free.

### How do I add Agent Supervisor MCP to Claude Code?

Run this command in your terminal: claude mcp add agent-supervisor-mcp -- npx -y agent-supervisor-mcp

### What are the best alternatives to Agent Supervisor MCP?

The closest alternatives to Agent Supervisor MCP are Subagent MCP, Agent Comm, LLM Provider MCP, Brigade Skills and AgentOrb.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Subagent MCP](https://ai-powered.com/mcp/subagent-mcp): Subagent MCP is an open-source MCP server for agent tooling.
- [Agent Comm](https://ai-powered.com/mcp/agent-comm): Agent Comm is an open-source MCP server for agent tooling.
- [LLM Provider MCP](https://ai-powered.com/mcp/llm-provider-mcp): LLM Provider MCP is an open-source MCP server for ai models and llm tooling.
- [Brigade Skills](https://ai-powered.com/mcp/brigade-skills): Brigade Skills is an open-source MCP server for agent tooling.
- [AgentOrb](https://ai-powered.com/mcp/agentorb): AgentOrb is a freemium MCP server for agent tooling.
- [Seamless](https://ai-powered.com/mcp/seamless): Seamless is an open-source MCP server for agent tooling.
- [sesh](https://ai-powered.com/mcp/sesh): sesh is an open-source MCP server for agent tooling.
- [mcp-crewd-rs](https://ai-powered.com/mcp/mcp-crewd-rs): mcp-crewd-rs is an open-source MCP server for agent tooling.

---
Source: https://ai-powered.com/mcp/agent-supervisor-mcp
