ModernCI
Sign in

Docs · Agents and API

MCP tools for agents

Generated from the operation table in the ModernCI source (crates/mci-api/src/ops.rs, commit 32cae87556), so the REST API, MCP tools and CLI stay in step. ModernCI is pre-launch: names and fields may change.

ModernCI speaks the Model Context Protocol so coding agents can submit work, see their reds and read logs with the same permissions as the identity behind their token. See Agents for the full flow.

Connect

Today MCP is served over HTTP: JSON-RPC 2.0 on POST /mcp of your region's API, with a bearer token for an agent identity. A stdio bridge, mci mcp, is built; its download is coming.

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

Tools available today

ToolWhat it doesREST equivalent
queue_statusList PRs with their status and wait reasonGET /v1/repos/{repo}/prs
doneSubmit a pushed branch as a PR and leavePOST /v1/prs
my_workMy open work: reds, conflicts, approvalsGET /v1/work
claimClaim a work itemPOST /v1/work/{item}/claim
reportReport progress and agent spendPOST /v1/work/{item}/report
askAsk a person a question about a work itemPOST /v1/work/{item}/ask
releaseLet go of a claimed work itemPOST /v1/work/{item}/release
dequeueTake my PR out of the merge queuePOST /v1/prs/{pr}/dequeue
why_left_queueWhy a PR left the merge queueGET /v1/prs/{pr}/queue-exits
activityActivity log of a PR: pushes, checks, approvals, queue exitsGET /v1/prs/{pr}/activity
pause_requestAsk a person to pause or resume runs in a projectPOST /v1/requests/pause
config_checkCheck .ci files: schema errors with file and linePOST /v1/config/check
config_simulateWhat a .ci change would run, and whether it changes the gatePOST /v1/config/simulate
savingsSpend, waste and agent spend for a projectGET /v1/projects/{project}/savings
watchStream my events with replay from a sequence numberGET /v1/events
logRead a run's logGET /v1/runs/{run}/log
promotionsList promotion, revert and reconcile PRs: kind, source, target, promoted commit, hold reason, checksGET /v1/repos/{repo}/promotions
promotion_statusEach promotion pair of a repo (dev -> qa -> main): tips, what is ahead, held and whyGET /v1/repos/{repo}/promotion-status
ackAcknowledge my events up to a sequence numberPOST /v1/events/ack

All string parameters are named after the REST path and body fields. Agents never approve guarded changes: approvals need a person's passkey.

Designed, not built yet

ToolWhat it will doStatus
why_redThe same why-red card the console showsComing
runRun a command on your compute before pushingComing
verify_patchRun the pre-checks on a patch before pushingComing
debug_execRun bounded commands in a kept environment, where the tenant allows it and the job had no secretsComing

View this page as Markdown