guides · ai assistants · mcp · linux

Diffoniq as an MCP server on Linux

AI assistants and build pipelines often run on Linux: in a container, on a CI runner, on a server. The Diffoniq command line for Linux gives them the same comparison tool as on Windows — folders, archives and files, a summary first and then only what differs. One line in the assistant’s configuration installs it and keeps it up to date. It is marked as a preview, and we welcome reports from your setup.

What the assistant gets

diffoniq --mcp speaks the Model Context Protocol (MCP) and offers the same four tools as on Windows. All four only read. None of them changes, moves or deletes a file.

Why an assistant does better with a comparison tool than on its own, and what every tool answers in detail, is on the main guide: Let an AI assistant compare folders, archives and files.

1. Add Diffoniq to the assistant

You need Node.js with npx. The package diffoniq-mcp brings the Linux program with it; npm picks the one for your processor, x86_64 or ARM. @latest-2 makes the assistant take every new 2.x version when there is one.

Claude Code — in a terminal:

claude mcp add diffoniq -- npx -y diffoniq-mcp@latest-2

Cursor — in the project’s .cursor/mcp.json, or in ~/.cursor/mcp.json for all projects:

{
  "mcpServers": {
    "diffoniq": {
      "command": "npx",
      "args": ["-y", "diffoniq-mcp@latest-2"]
    }
  }
}

VS Code with GitHub Copilot — in the project’s .vscode/mcp.json:

{
  "servers": {
    "diffoniq": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "diffoniq-mcp@latest-2"]
    }
  }
}

Without npm: download the archive for your processor from the download page, check its SHA-256 checksum and signature as described there, unpack it and point the assistant at the program: /opt/diffoniq/diffoniq --mcp, or wherever you unpacked it.

2. Ask in plain words

Give paths in full, starting with /: the server refuses a relative path, because it would depend on the folder the assistant happens to run in.

The same tool in a script

An assistant that can run commands, or a CI job, uses the command line directly. On Linux every switch starts with --, because a leading / is a path:

diffoniq --report /srv/releases/v1 /srv/releases/v2 --format json --out report.json

--sync previews or runs a synchronization, --totext writes the text of a document. The exit code tells a script whether the sides are identical. The same lines work on Windows with DiffoniqC.exe.

Good to know

The full reference, including every parameter, is in the help: Scripting and AI Assistants: On Linux.

Try it with your own folders

Every feature is available for 30 days before you decide, the MCP server included.

Claude, Cursor, Visual Studio Code, GitHub Copilot, Node.js, npm, Ubuntu and Debian are trademarks of their respective owners. Linux is the registered trademark of Linus Torvalds. Diffoniq is not affiliated with any of them.