Skip to main content
Claude Code has a built-in command for this, so you do not have to edit a file by hand.

Set it up with your agent

One prompt, written for Claude Code to read rather than you. It installs the server, registers it, reloads, and proves the tool works with a real verification.
Prefer to do it yourself? The rest of this page is the same setup by hand.

Config location

Add it

To share the server with your team, commit it at project scope:
That writes .mcp.json in the repository root:
To pin the version without a global install, register the npx form instead:

Verify the connection

For the full record, including scope and resolved command:
Inside a session, /mcp lists connected servers and their tools. You are looking for one tool, verify_change, under refactron.

Troubleshooting

  • ⏸ Pending approval (run 'claude' to approve): a project-scoped .mcp.json needs your approval before it runs. Start claude in that directory and approve the server once.
  • ✘ Failed to connect: the command is not on your PATH. Run which refactron-mcp. If it prints nothing, run npm install -g refactron@0.3.0, or re-register with the npx form above.
  • The server connects but no tool appears: the handshake failed. Send one initialize request straight to the binary as in the MCP quickstart to see whether the server or the client is at fault.
  • Registered in the wrong project: local scope is keyed to the directory you ran claude mcp add in. Run claude mcp list from the project you meant, and re-add there or use --scope user.
  • Removing it: claude mcp remove refactron, adding -s project or -s user if you did not use the default scope.