Open beta

Gaitro MCP server reference

The tools Gaitro's MCP server gives your agent, from opening a project and claiming symbols to running checks and shipping.

Start the server with gaitro mcp (Connect your agent). It works across every project in the company you logged in to: open one first, and the other tools work in it.

Every tool's answer is JSON. Lines after it say what else your agent should know: news for its draft since the last call ("Since your last call: 2 checks failed on draft #12…", each event once), and, once in a session, that Gaitro was updated and the MCP server needs a restart to show the new tools ("Gaitro was updated (vX → vY): restart the Gaitro MCP server to get the new tools."). When Gaitro isn't answering, a tool answers with a short error and retryAfter instead of an error page; reads are tried again first, and a change says whether it went through.

Projects

ToolWhat it does
gaitro_projectsThe projects you can work on with this login.
gaitro_open_projectMake a project the one you're working in; cloned to ~/gaitro/<company>/<project> the first time, brought up to date after that.
gaitro_pullDownload the published version as gaitro/main; main follows it when nothing would be lost.
gaitro_requestsChanges people asked for in the app that no agent has taken yet.

Drafts

ToolWhat it does
gaitro_overlapIs anyone else working on what this folder changes? Opens and claims nothing.
gaitro_intentStart a change: open a draft for one request before editing. Name the project: it's needed when no working copy is open and the company has more than one, and when it isn't the open one, that project is opened first. The answer says which project the draft is on. Plans, checks and claims are optional. With worktree: true the draft gets a working copy of its own beside the repo (other agents on this machine can't switch its branch) and the other tools work there; scratch_db: true also creates a database of its own on the local Postgres server.
gaitro_worktreesThe drafts with a working copy of their own; remove: <n> removes a finished one's copy and its scratch database.
gaitro_attachWork on an existing draft from this working copy: to come back to one after starting another here, or to pick up one another agent left.
gaitro_pushOpen a draft from work already done, or save its next checkpoint.
gaitro_symbolsSearch the code index for symbols to claim, and see who holds them. Narrow it to a file or folder, or ask for all.
gaitro_skillsThe skills added to this project (reusable playbooks its agent can use).
gaitro_skillLoad one added skill's full text, to follow it for the task.
gaitro_claimAdd or extend claims; if another draft holds one, wait, ask or narrow.
gaitro_releaseGive claims back.
gaitro_syncSave a checkpoint: safety checks locally, then the affected checks. The answer starts with saved: "Saved draft #12, checkpoint 3."
gaitro_statusChecks, safety findings, blockers and the next step. With no draft open, what became of the last one and where the project stands.
gaitro_waitReturn when the draft's checks have finished, waiting up to 45 seconds by default (many agent apps stop a tool call after a minute). If they're still running, it answers with stillWaiting ("Still waiting: … Call again to keep waiting."): call it again.
gaitro_readyMark the draft done without shipping it.
gaitro_shipPublish, once the person has said to ship. A draft that changes nothing is closed instead; shipping again answers with the version it became. Publishing isn't deploying.
gaitro_discardDrop the draft without publishing it, with a reason for the project's log.
gaitro_replayRe-apply the draft onto the latest version.
gaitro_choiceHand a conflict to a person to decide.
gaitro_safety_okAnswer a safety finding with a reason (logged). One that needs a person's say-so (a key, a new package, customer details) only asks: it waits for the person to answer on the draft page, and the draft can't ship until they do.

Backlog

"Pull from the backlog" is a complete instruction: claim the next Ready item, then start a draft with its text. "Grab the next 3 features" is a claim with a count and a kind. Making an item Ready or closing it is a person's call, so no tool does it.

ToolWhat it does
gaitro_backlog_listThe project's backlog: open items (Ready first), or one status or kind, with who added them and the run on each.
gaitro_backlog_nextThe top Ready item nobody has claimed. Doesn't claim it.
gaitro_backlog_claimClaim an item, or the next free ones (count, kind), for this run. Only one agent holds an item, and each gets a run name. Each gaitro_intent after it is linked to the next claimed item.
gaitro_backlog_addFile something found mid-task. It lands as Not ready, marked agent suggested, until a person looks at it.
gaitro_backlog_linkTie a claimed item to its draft. gaitro_intent does this after a claim.
gaitro_backlog_getThe item's details to build and test against, written in Markdown by a person: what to build, for whom and how to tell it's done. Also its version, the discussion and the latest verification. If a person changed the details since the claim, it shows the changed lines.
gaitro_backlog_askAsk a person one plain question instead of guessing. The item shows Needs input, and the tool waits for the answer and returns it.
gaitro_backlog_wait_answerKeep waiting for the answer to a question asked with gaitro_backlog_ask.
gaitro_backlog_verifyReport once, for the whole item, how you checked it: passed, failed or not checked, and how. People see it on the item; a failed report, or one from before the details changed, is flagged there.
gaitro_backlog_releaseDrop the claim, with a note on why, so another agent can take it.
gaitro_backlog_completeConfirm the item is Completed. Refused until its draft has merged with its checks passing; merging does this on its own. For an item customers asked for through a connected app, summary says what shipped in a sentence or two for them (optional).

Deploys

ToolWhat it does
gaitro_deploy_statusWhich version production runs, how far behind it is, and how this project deploys. next lists what deploying the latest (or version) adds: each published draft with its number, title and risk, to tell the person before deploying. check says when production reports a version the record doesn't have.
gaitro_deploy_setupWhen the person asks you to set up deploys: proposes how the project deploys as a draft. An owner reviews it in Settings → Deploys and Approve saves and enables it; until then nothing changes. Tell them it's waiting, with the link.
gaitro_deploy_takeTake a deploy a person asked for with the Deploy button (projects deployed outside Gaitro): the version, its commit and the instructions. Recording the deploy completes it. Agents are told when one is waiting.
gaitro_deployOnce the person has said to deploy: Gaitro deploys a published version (it usually waits for their approval in Gaitro), or with record, a deploy made outside Gaitro is recorded and checked against the health URL (with no version, the one production reports). Its answer lists the drafts the deploy adds (includes).

Checks

ToolWhat it does
gaitro_check_addAdd a plain-language check, with its test if it's written. keep makes it one of the project's checks when the draft ships. services: ["postgres"] gives its run an empty database. A command the runners can't run is refused with the reason; allowUnrunnable: true adds it as a manual check.
gaitro_check_compileLink a check to the command that runs its test. Takes services and allowUnrunnable too.
gaitro_check_editReword or re-point a check this draft added, keep it (keep), make it run on its own (alone: it never shares the sandbox with another check; unmarking a project check that runs alone needs a person), or change its services (["none"] for none).
gaitro_check_removeDrop a check this draft added.
gaitro_check_logsA check's latest full output.
gaitro_check_envWhat checks run in: OS, Node, tools, network, env vars, timeouts.
gaitro_check_setupThe command that runs once before each run's checks, and services every run starts (["postgres"], or ["none"]).

Knowledge

ToolWhat it does
gaitro_knowledge_searchKnown answers for a package, versions and error.
gaitro_knowledge_showOne answer in full.
gaitro_knowledge_for_claimKnown answers for the packages behind a claim, to plan around them.
gaitro_knowledge_askAsk a question with no failing check yet.

Secrets

ToolWhat it does
gaitro_secret_namesThe names of the project's secrets; values are never returned.
gaitro_secret_setStore a secret's value. It waits for a publisher to allow it in Settings → Vault, and checks run without it until then. Names that change how programs run are refused.

This page as markdown, for your agent: /docs/mcp.md. Every page at once: /llms-full.txt.