> ## Documentation Index
> Fetch the complete documentation index at: https://docs.refactron.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP server

> The Refactron MCP server has its own tab: setup for every major AI coding client, plus the verify_change tool contract.

Refactron ships an [MCP](https://modelcontextprotocol.io) server exposing one tool, **`verify_change`**, so an AI agent can verify a change before it lands. Setup and reference moved to the [MCP tab](https://docs.refactron.dev/mcp/overview.md), which covers every major client.

> [card] [MCP server overview](https://docs.refactron.dev/mcp/overview.md)
>
> What the server is, how to install it, and which client pages exist.

> [card] [MCP quickstart](https://docs.refactron.dev/mcp/quickstart.md)
>
> Install, register, confirm the tool is listed, and get a first verdict.

> [card] [verify\_change reference](https://docs.refactron.dev/mcp/tool-reference.md)
>
> Arguments, request and response examples, and the error shape.

> [card] [Prompts for your agent](https://docs.refactron.dev/mcp/overview.md#make-it-verify-not-just-connect)
>
> One prompt sets this up end to end. Another keeps it verifying before it applies.

## Connect your client

[Claude Code](https://docs.refactron.dev/mcp/claude-code.md), [Claude Desktop](https://docs.refactron.dev/mcp/claude-desktop.md), [Codex CLI](https://docs.refactron.dev/mcp/codex.md), [Cursor](https://docs.refactron.dev/mcp/cursor.md), [GitHub Copilot in VS Code](https://docs.refactron.dev/mcp/vscode.md), [Gemini CLI](https://docs.refactron.dev/mcp/gemini-cli.md), [Windsurf](https://docs.refactron.dev/mcp/windsurf.md), or [any other MCP client](https://docs.refactron.dev/mcp/other-clients.md), which covers Zed and Cline.

## The short version

Install the npm package, which puts `refactron-mcp` on your `PATH`:

```bash theme={null}
npm install -g refactron
```

Register it as a stdio server. For Claude Code:

```bash theme={null}
claude mcp add refactron -- refactron-mcp
```

For clients configured with JSON:

```json theme={null}
{
  "mcpServers": {
    "refactron": {
      "command": "refactron-mcp"
    }
  }
}
```

VS Code uses the root key `servers` instead of `mcpServers`, and Zed uses `context_servers`. Per-client paths and verification steps are on the client pages linked above.

The tool returns the same report `verify-diff --json` prints. See [Verdicts](https://docs.refactron.dev/verification/verdicts.md) for what each verdict is allowed to claim, and [Verify a diff](https://docs.refactron.dev/verification/verify-diff.md) for the same engine from the command line.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.