# Rectifier MCP server

Rectifier's MCP server lets a coding agent read your account's reviews: which reviews ran, how each one went and what it
found. Its address is `https://mcp.rectifier.imbik.ai/mcp`. The server only reads. To have your agent run a review,
give it the rectifier skill: see [Use it with a coding agent](cli.md#use-it-with-a-coding-agent).

## Connect your agent

The dashboard's [Connect an agent](../#agents) page has the command or the settings entry for each agent, ready to
copy. The page also shows the moment that your agent signs in.

| Agent | Add the server | Sign in |
| --- | --- | --- |
| Claude Code | The rectifier plugin adds it: see [Use it with a coding agent](cli.md#use-it-with-a-coding-agent). Without the plugin: `claude mcp add --transport http rectifier https://mcp.rectifier.imbik.ai/mcp` | In Claude Code, type `/mcp`, pick rectifier and choose Authenticate |
| Codex 0.166 or newer | `codex mcp add rectifier --url https://mcp.rectifier.imbik.ai/mcp` | `codex mcp login rectifier` |
| Cursor | The entry the Connect page shows, in `~/.cursor/mcp.json` | In Cursor Settings, open Tools & MCP and choose Authenticate next to rectifier |

Your browser opens to sign in. Pick the organization of your rectifier account and allow access. The agent gets access
to that organization's account only.

Each agent needs adding on our side first. If your agent is not listed and it reads skills, use the
[rectifier CLI and its skill](cli.md#use-it-with-a-coding-agent) instead.

## Tools

| Tool | Answers |
| --- | --- |
| `reviews_list` | The account's reviews: waiting, then running, then the ones that ended, newest first. Each says what was reviewed, who asked, when, how far it got, its findings by severity and its verdict. A review from `rectifier review` has its job. Takes `status`, `repo`, `number` (a pull or merge request) and `before` (the next page). |
| `review_status` | One `rectifier review` job that you started, by its `job` (the id `rectifier review` prints): waiting, running and how far, or ended, with its report. Only the person who started a job can read it. Rectifier keeps a result for an hour after the review ends. |
| `review_findings` | One pull or merge request review from `reviews_list`, by its `id`: once it ended, each finding it posted, with its file, line, severity, title, text, whether it blocks, its `id`, and your account's `verdict` on it (what [`rectifier verdict`](cli.md#saying-whether-a-pull-request-review-finding-is-real) recorded) or null. Any member of the account can read any of its pull and merge request reviews. Rectifier keeps a review's findings for 90 days. |
| `account_summary` | The account's name, the organizations and groups it connected on GitHub, GitLab, Bitbucket or Azure DevOps, and how many reviews are waiting, running and ended in the last 7 days. |

For example, ask your agent to "list my rectifier reviews", or "how did rectifier's review of my last pull request go".

## Who can use it

- Each call is checked against your organization in Clerk. If you leave the organization or are banned, the server
  refuses your agent's calls within 5 minutes.
- Your organization must accept rectifier's current Terms of Service first.
- Staff signed in as you cannot use the server for you.
- To disconnect an agent, remove the server in that agent. The Connect page lists the agents that signed in, with
  when each was last active.
