How-to
Connect coding agents (MCP)
Updated
On this page
Let a coding agent read your company's Zof data while it works, and, if you allow it, run tests you confirm. It takes about 5 minutes. We have tested it with Claude Code. Other MCP tools use the standard setup under Other tools; we haven't tested those yet.
What it does
Zof runs a hosted MCP server at https://mcp.zof.ai/mcp. https://console.zof.ai/api/mcp is the same server. Add it to your tool once, sign in and pick a company. Your agent can then answer "can this pull request ship?" or "why did the Zof run fail?" from Zof's records.
The server offers these 18 tools. Sixteen only read, with the scope zof:read:
| Tool | What it reads |
|---|---|
zof_list_runs | The company's test runs, newest first, as the Runs page shows them. |
zof_get_run | One run: status, commit, results and a link. A run still going returns its progress. |
zof_get_test_health | The test library, coverage and quality scores. |
zof_list_schedules | Run schedules, with each one's next run and last result. |
zof_list_routines | Your routines as choices: site, environment, last result and whether paused, each with its link. With none, a link to create the first one. |
zof_get_system_graph | The system map: services, owners, dependencies and repositories. |
zof_get_reports | Reports as the Reports, Compliance and Audit pages show them. |
zof_ask_copilot | Asks Copilot a question about using Zof. Advisory only. |
zof_check_change | A free preview of whether a commit, branch or pull request will ship: what policy requires, what's missing and the next step. It is not a decision and starts no runs. |
zof_get_release_decision | Zof's merge answer for a pull request: ship, blocked, pending or unknown. |
zof_explain_block | Why Zof blocks a pull request, and what unblocks it. |
zof_get_evidence_status | The requirements recorded for a decision, each with its status. |
zof_replay_decision | Re-runs Zof's policy on a stored decision's inputs and says whether it matches. |
zof_list_decisions | The company's pull requests as Zof tracks them, with each stored verdict. |
zof_get_policy_requirements | The active release policy and its rules. |
zof_get_change_record | The exportable decision record for a pull request, for audit. |
zof_list_available_tests | The tests Zof can run on one of the company's connected repositories, and its saved tests for it. |
Two tools act, and need the scope zof:run (the Run tests in Zof line on the sign-in page):
| Tool | What it does |
|---|---|
zof_run_tests | Shows a preview (tests, commit, cost) and a code valid 10 minutes. Zof starts nothing without that code, and the agent is told to show you the preview and wait for your yes. Where your company has the Zof Tester plan turned on, the preview is Zof's plan of tasks by category; you say which tasks run, and a task that needs a verified address runs only from Zof. |
zof_cancel_run | Stops a run that is still going. |
Older connections and agent tokens stay read-only.
To let your agent run tests:
- In Claude Code, run
/mcp, choosezof(orplugin:zof:zof), clear its sign-in, then choose Authenticate. - Check the sign-in page lists Run tests in Zof, pick your company and click Allow.
- Ask "run the Zof smoke test on this branch". The agent shows the preview.
- Say yes. The run starts; the agent links to it and checks it with
zof_get_run.
Long answers come back as a small first page. When truncated is true, ask again with the section (or kind) and cursor from next.
A ship answer is advice. The Zof / Control check on the pull request still decides the merge. No tool changes a decision.
Before you start
An admin turns on Allow coding tools for this company in Settings › Connected tools. Until then, the sign-in page asks you to ask an admin. An admin can also turn it on from the sign-in page.
Claude Code with the plugin
The Zof plugin adds the server and four skills. It is public at https://github.com/Zof-AI/claude-plugins.
- In Claude Code, run
/plugin marketplace add Zof-AI/claude-plugins. - Run
/plugin install zof@zof. - Run
/mcp, chooseplugin:zof:zof, then choose Authenticate. Your browser opens the Zof sign-in page. - Pick your company and click Allow.
The skills are:
/zof:ship-check: whether the current pull request can ship./zof:explain-block: why Zof blocks it, and what would unblock it./zof:test-runs: this repository's latest Zof test runs and what failed./zof:run-tests: runs tests in Zof for this repository, after a cost preview and your yes, or cancels a run.
Claude Code without the plugin
- Run
claude mcp add --transport http zof https://mcp.zof.ai/mcpin a terminal. - In Claude Code, run
/mcp, choosezof, then choose Authenticate. - Pick your company and click Allow.
You get the same 18 tools, without the skills.
Other tools
These are the standard MCP setup for each tool; they are not yet tested by us. The server signs tools in with standard MCP OAuth, so a tool that supports it should open the Zof sign-in page. If yours doesn't, tell us at support@zofai.com.
Settings › Connected tools shows Zof in your coding tool (MCP) under Set up, with a tab and a Copy button for each tool, and the server URL for any other tool. The settings are:
- Cursor: add
{"mcpServers": {"zof": {"url": "https://mcp.zof.ai/mcp"}}}to~/.cursor/mcp.json. - VS Code: add
{"servers": {"zof": {"type": "http", "url": "https://mcp.zof.ai/mcp"}}}to.vscode/mcp.json. - Codex: add
[mcp_servers.zof]withurl = "https://mcp.zof.ai/mcp"to~/.codex/config.toml, then runcodex mcp login zof. - Windsurf: add
{"mcpServers": {"zof": {"serverUrl": "https://mcp.zof.ai/mcp"}}}to~/.codeium/windsurf/mcp_config.json.
Sign-in and who can see what
You sign in through console.zof.ai with your own Zof account. The sign-in page shows the tool's name, where it sends you back to and what it can read. You pick one company and click Allow or Deny.
A connection sees only the company you picked, and only what your role there can see. With zof:read it only reads. With zof:run it can also start and stop test runs, which use credits; Zof starts a run only with the code from its preview, and the agent is told to ask you first. No tool changes a decision, a policy or your code. Your company's sign-in rules, such as two-factor and the IP allowlist, apply to it too.
Everyone sees their own connections in Settings › Connected tools, and can Revoke them. Admins see and revoke every connection in the company. Revoking is immediate. Turning Allow coding tools for this company off stops every connected tool on its next request.
Agent tokens for CI or bots
CI jobs and background agents can't sign in through a browser. An admin can make them an agent token instead. Agent tokens appear only to admins, while coding tools are on.
- In Settings › Connected tools, go to Agent tokens.
- Enter a Name, such as "Nightly CI", and Expires in (days), from 1 to 90.
- Click Create read-only token.
- Click Copy now: Zof shows the token only once. If your browser blocks copying, Zof selects the token for you to copy. Store it in your runner's secret store, then click I have copied it.
Send it as a bearer token. For Claude Code: claude mcp add --transport http zof https://mcp.zof.ai/mcp --header "Authorization: Bearer $ZOF_AGENT_TOKEN", with the token in the ZOF_AGENT_TOKEN environment variable.
An agent token is read-only and works for this company only. It reads with a viewer's access, whatever the admin's role. It stops on its expiry date, and it stops when the admin who made it is no longer an admin. Signing that admin out doesn't stop it. A company can have 50 at most. Expired tokens count until you revoke them. Any admin can Revoke any agent token; revoking is immediate. If a token is lost, revoke it and make a new one. Zof records who created and who revoked each token.
Check that it worked
Ask your agent "what are our latest Zof test runs?". It calls zof_list_runs and lists them. In Settings › Connected tools, your tool is listed with its scopes, such as zof:read, and when it was last used.
What's new
- 2026-11-24: Settings › Connected tools opens with Set up: the Zof CLI and this MCP server, each with Copy buttons. See Use Zof from your terminal and coding tools.
- 2026-11-17: The reports summary is now compact, with sections you can page.
zof_list_runspages 25 runs at a time.zof_get_system_graphreturns a first page, withnextfor more.
Troubleshooting
401, or the tool asks you to sign in again. The connection's token expired, was revoked, or your access to the company ended. An admin signing you out of the company ends your connections there too. If your company requires SSO, the tool says "Sign in with SSO again": sign in to Zof with SSO, then connect again. Sign in again: in Claude Code, /mcp, choose zof (plugin:zof:zof with the plugin), then Authenticate. For an agent token, an admin makes a new one. If the admin who made it is no longer an admin, the token stops too.
The wrong company. A connection reads one company: the one you picked at sign-in. Revoke it in Settings › Connected tools, then sign in again in your tool and pick the right company.
A token for the wrong address. A token works only for the server it was made for. Tokens for https://mcp.zof.ai/mcp and https://console.zof.ai/api/mcp work at both, because they are one server. A token from any other address is refused with 401. Point your tool at https://mcp.zof.ai/mcp and sign in again.
403. Coding tools are off for the company, or a company rule stops you, such as two-factor or the IP allowlist. Set up two-factor or connect from an allowed network. If coding tools are off, ask an admin.
429 or 503. Too many requests, or Zof is briefly unavailable. Wait a minute and try again.