guides · ai assistants · mcp · 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.
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.
compare_tree — two folders or archives: what differs, what exists on
one side only, what could not be verified.compare_file — two files: the lines that differ, with their line
numbers. Word, Excel, PowerPoint, OpenDocument, EPUB and JSON compare by their text.convert_file — one document as text, with the place of every line.sync_preview — what a synchronization would do. A plan, not
an action.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.
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.
/srv/releases/v1 with /srv/releases/v2 and
tell me which files changed.”/mnt/backup/projects really the same as
/home/me/projects? Check the contents.”build-1.4.tar.gz and
build-1.5.tar.gz in /tmp/artifacts?”config/prod.json and
config/staging.json in /srv/app?”
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.
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.
diffoniq.lic into ~/.config/diffoniq/ for your
user, or into /etc/diffoniq/ for the whole machine..diffoniqignore file in a compared folder,
written like a .gitignore, leaves out what you never want to compare, for the
assistant as well. See .diffoniqignore
files.The full reference, including every parameter, is in the help: Scripting and AI Assistants: On Linux.
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.