← Back to Diffsmith

Connect Claude Code or Codex to Diffsmith over MCP

Diffsmith runs a local MCP server so your AI coding agent can read your inline review comments and reply to them in the app, with no copy and paste. Snippets for Claude Code, Codex, Cursor, Windsurf, VS Code and Zed are below.

  1. In Diffsmith, open Settings → Agent and turn on the MCP server.
  2. Find your tool in the list below, and add its snippet to your MCP config.
  3. Start your agent. It connects automatically, and Diffsmith alerts you the first time each new client connects.

The server is listening on port 34337, at http://127.0.0.1:34337.

About the snippets

X-MCP-Token can be any stable value you like — it just needs to stay the same between runs. X-MCP-Client is the display name shown on that agent’s comments inside Diffsmith, so give each tool its own. MCP config formats change between tool versions, so adjust the keys if yours differs.

What your agent can do once it’s connected

Reading and replying to your comments is the obvious use, but a connected agent can also write a walkthrough: a numbered tour of the code you step through in Diffsmith, one line at a time. Ask for one in plain language, like “use Diffsmith to walk me through how caching works”.

Diffsmith’s MCP server is bound to loopback only and is never exposed on the network. It is off by default, and you can turn it off again at any time.