Cursor agent verification, set up per project

Cursor writes the edit. Headron says what the edit owes and holds the commit until it is proven.

Where Cursor looks

AGENTS.md
Cursor reads AGENTS.md, so the contract summary that reaches Codex and Claude Code reaches Cursor too.
MCP config
Cursor reads MCP servers only from .cursor/mcp.json in the project or ~/.cursor/mcp.json. A root .mcp.json is never read, which is why a Claude Code setup alone leaves Cursor without Headron.

The entry headron init writes

{
  "mcpServers": {
    "headron": {
      "command": "uvx",
      "args": [
        "--from",
        "headron-software",
        "headron-mcp"
      ],
      "env": {
        "HEADRON_CLIENT_DIR": "${workspaceFolder}"
      }
    }
  }
}

The entry holds no absolute path. ${workspaceFolder} is Cursor's own variable, so relative paths resolve in the project on every machine and a committed copy works in every clone. HEADRON_ROOT stays unset: it names an atlas, and a consumer project is not one. If .cursor/mcp.json already has a headron entry, init leaves yours alone.

What changes in a Cursor session

Before the edit
The agent calls port on the file and gets its route, its owed gates and the commands to run.
After the edit
headron gate on the file lists the owed checks; headron verify --changed runs them. A check that did not run is NOT RUN, never a pass.
At commit
The git hook runs the same check-only command whether Cursor, another agent or a developer made the commit.
Attribution
Set HEADRON_AGENT=cursor in the entry's env so Headron credits the change to Cursor rather than guessing from host signals.

The common mistake

A wide multi-file completion skips the route. Narrow the edit to one file, or route each file it touches before you accept it. For how this differs from writing Cursor rules, read Headron vs Cursor rules.

Try it on one change

uv tool install headron-software && headron doctor
cd your-repo && headron init
headron gate path/to/changed_file.py
headron verify --changed

Questions

Why does Cursor not see Headron from .mcp.json?

Cursor reads MCP servers only from .cursor/mcp.json in the project and ~/.cursor/mcp.json. Run headron init, which writes the .cursor/mcp.json entry.

Can I commit .cursor/mcp.json?

Yes. The entry holds no absolute path and finds the project through ${workspaceFolder}, so the same file works in every clone.

Do Cursor rules replace Headron checks?

No. Rules guide what the agent writes. Headron runs the checks a change owes and refuses the commit until they pass. The two work together.

Do I need an account to verify Cursor edits?

No. The verifier and the MCP route run locally with no account and no key.

Related guides

Start

Run the free, MIT-licensed verifier or connect through MCP. Headron Harness shows your runs, checks and receipts in one account.