---
title: "Agents: ModernCI is an MCP server for your coding agents"
description: "ModernCI is an MCP server: Claude Code, Codex and Cursor push, get reds they can act on, have fixes verified and land PRs. ModernCI has no AI of its own; it is the CI your agents use."
url: https://modernci.dev/agents/
---

MCP server

# Your agents talk to CI over MCP.

ModernCI has no AI of its own. It’s the CI your AI agents use: they push, ModernCI checks, explains reds in a form agents can act on, verifies their fixes, and lands the result.

[Sign in](https://app.modernci.dev/sign-in) · [Connect an agent](#connect)

(In development)Early access · pre-launch

> Illustrative: an agent submits a branch over MCP, gets a red with the reason, reads the log, pushes a fix, and ModernCI verifies and lands it.

Illustrative mock, not a real run.

## Connect in one command

ModernCI is an MCP server. Point your agent at it with `mci mcp`, or use remote MCP over HTTPS with no CLI at all.

### Claude Code

```sh
claude mcp add modernci -- mci mcp
```

### Codex ~/.codex/config.toml

```
[mcp_servers.modernci]
command = "mci"
args = ["mcp"]
```

### Cursor.cursor/mcp.json

```
{
  "mcpServers": {
    "modernci": {
      "command": "mci",
      "args": ["mcp"]
    }
  }
}
```

### Remote MCP over HTTPS (Live)

No CLI needed: point any MCP client at your region’s `/mcp` endpoint with an agent token.

```
claude mcp add --transport http modernci \
  "$MCI_URL/mcp" \
  --header "Authorization: Bearer $MCI_TOKEN"
```

Set `MCI_URL` to your region’s URL from the console.

### Set up every agent at once (Built, release coming)

`mci agents install` finds Claude Code, Codex and Cursor on your machine and writes their MCP config. Agent Skills bundles for all three teach your agent the loop: push, read the receipt, fix reds.

```sh
mci agents install
```

`mci mcp` (the stdio bridge) and `mci agents install` are built; the client download is coming. Remote MCP over HTTPS works on the pre-launch service today.

## MCP tools

Every tool is also in the REST API, and most are in the CLI. Full reference: [MCP tools docs](/docs/mcp.md).

| Tool | What an agent does with it | CLI | Status |
|---|---|---|---|
| `queue_status` | List PRs with their status and wait reason | `mci prs list` | (Live) |
| `done` | Submit a pushed branch as a PR and leave | `mci prs done` | (Live) |
| `my_work` | My open work: reds, conflicts, approvals | `mci work` | (Live) |
| `claim` | Claim a work item | `mci work claim` | (Live) |
| `report` | Report progress and agent spend | REST only | (Live) |
| `ask` | Ask a person a question about a work item | REST only | (Live) |
| `release` | Let go of a claimed work item | `mci work release` | (Live) |
| `dequeue` | Take my PR out of the merge queue | `mci prs dequeue` | (Live) |
| `why_left_queue` | Why a PR left the merge queue | `mci prs why-left` | (Live) |
| `activity` | Activity log of a PR: pushes, checks, approvals, queue exits | `mci prs activity` | (Live) |
| `pause_request` | Ask a person to pause or resume runs in a project | `mci request pause` | (Live) |
| `config_check` | Check.ci files: schema errors with file and line | `mci config check` | (Live) |
| `config_simulate` | What a.ci change would run, and whether it changes the gate | `mci config simulate` | (Live) |
| `savings` | Spend, waste and agent spend for a project | `mci savings` | (Live) |
| `watch` | Stream my events with replay from a sequence number | `mci watch` | (Live) |
| `log` | Read a run's log | `mci log` | (Live) |
| `promotions` | List promotion, revert and reconcile PRs: kind, source, target, promoted commit, hold reason, checks | `mci promotion list` | (Live) |
| `promotion_status` | Each promotion pair of a repo (dev -> qa -> main): tips, what is ahead, held and why | `mci promotion status` | (Live) |
| `ack` | Acknowledge my events up to a sequence number | `mci ack` | (Live) |
| `why_red` | The why-red card: computed from your logs and the last green run | – | (Coming) |
| `run` | Run a command on your compute before pushing | – | (Coming) |
| `verify_patch` | Run the pre-checks on a patch before pushing | – | (Coming) |
| `debug_exec` | Run bounded commands in a kept environment, where the tenant allows it and the job had no secrets | – | (Coming) |

## Trusted with the work, not the keys

- **Reds come to the owner.** Failure, repro, log excerpt and diff, delivered to the agent that owns the PR, on a durable stream it can replay after a disconnect.
- **Your agent proposes, ModernCI verifies.** A fix lands only after ModernCI re-runs the checks on it; applying a fix automatically under your policy is (Coming).
- **People approve.** Agents cannot approve. Their changes to guarded paths always wait for a person’s passkey approval.
- **Agents never take a seat (planned).** Their spend is counted today, so cost per landed PR includes it. Seats and billing are (Coming).

## Try it when early access opens up

Sign in to the console, or read how the pieces fit together.

[Sign in](https://app.modernci.dev/sign-in) · [Get the CLI](/download.md) · [Why ModernCI](/why.md)
