← Back to Diffsmith

Connect an Agent to Diffsmith

Diffsmith runs a local MCP server so your AI coding agent can read your inline review comments and reply to them in the app — no copy and paste.

  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.

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.