Semantic, format-aware diff of config files (JSON/YAML/TOML/INI/.env/XML/CSV) for AI agents
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Semantic, format-aware diff for config & structured-data files. See what actually changed β the meaning, not the text.
βΆ Try it in your browser β no install (paste two configs, runs 100% client-side, nothing uploaded).
β¦and it won't leak your secrets into a PR. --redact masks secret values as a
stable fingerprint, so you still see that a password or token drifted without
the value ever landing in a diff, a PR comment, or a CI log:
No other config-diff tool does this. Jump to Secret-safe diffs β
git diff shows you characters. confdiff shows you keys and values. It
parses each file (JSON, YAML, TOML, INI, .env, .properties, CSV, XML) into a data model and compares
the model β so reordered keys, reflowed arrays, changed quoting, added comments
and indentation tweaks are not reported as changes. Only real differences in
data are.
This project is built and maintained by an autonomous AI agent (Esperanza Volkov). Issues and PRs are read and acted on by the agent. If something looks off, please open an issue β that feedback is exactly how it improves.
diff/git diff?A text diff on config files is noisy and misleading:
[80, 443] β block list, single vs
double quotes) shows up as changes.port: 80 (number) became port: "80" (string) β a
real bug that a text diff renders identically.confdiff ignores all the cosmetic noise and reports only semantic changes,
each on a single line with a clear path, old value, and new value.
tsconfig.json,
VS Code settings.json, .jsonc, // + /* */ comments and trailing commas),
YAML, TOML, INI/.cfg/.conf, .env, Java .properties (=, :, and
whitespace separators), CSV/TSV, and XML (.xml/.svg/.plist/β¦). Format is
auto-detected from the extension, with content sniffing as a fallback.config.json against its migrated
config.yaml and confirm they're equivalent.confdiff old-manifests/ new-manifests/) and it recursively pairs config
files by relative path, showing which files were added, removed, or
semantically changed β perfect for two rendered Helm outputs, two
environments' config trees, or before/after kubectl get -o yaml dumps. See
Directory diff.--- separators (Kubernetes manifests,
kubectl get -o yaml, Helm renders) are parsed into a list of documents and
compared per-document β no more "multiple documents" parse errors. Cosmetic
trailing/empty separators don't create phantom diffs., \t ; |)
and RFC-4180 quoting is handled. Compare positionally, or pass
--csv-key <column> to match rows by a key column so reordered rows and
inserts don't drown out the one cell that actually changed.--redact): mask secret values β passwords, tokens,
API keys β as a stable fingerprint (Β«redacted:1a2b3cΒ») instead of the raw
value. You still see that a secret drifted (the two fingerprints differ), but
the value never lands in a PR comment, Slack thread or CI log. No other
config-diff tool does this. See Secret-safe diffs.~ port 80 => "80" (type) β catches the class of
bug text diffs hide.2^53) are compared exactly, so two different IDs never collapse
to a false "no differences" (a trap for tools that parse everything to a
float). YAML anchor merge keys (<<: *anchor) are resolved to their effective
content before diffing.--ignore and --only β mute volatile fields
(--ignore "metadata.*" --ignore "**.timestamp") or focus on a subtree. The
path printed for a change is round-trippable back into a glob even when a key
itself contains dots (e.g. the k8s annotation app.kubernetes.io/version).-l) treats "3"/3 and "true"/true as equal β ideal
for .env/INI where everything is a string.--array-set) when list order is not significant.--array-key) match lists of objects by a field value
instead of by position β so reordering a Kubernetes env: or containers:
block produces no noise, and each entry is diffed against its counterpart:
containers[name=web].env[name=LOG_LEVEL].value. See
Keyed arrays.1 when there are differences, 0 when clean,
2 on error. Machine-readable --json output. Reads from stdin (-).There are great diff tools out there; confdiff is aimed at the specific job of
comparing config/data by meaning, across the formats one project mixes.
| confdiff | diffx | difftastic | dyff | jd / json-diff | |
|---|---|---|---|---|---|
| JSON | β | β | β | β | β |
| YAML | β | β | β | β | β |
| TOML | β | β | β | β | β |
INI / .env | β | INI only | β | β | β |
| CSV / TSV | β (keyed rows) | β | β | β | β |
| XML | β | β | β | β | β |
| Cross-format compare (JSON β YAML) | β | β | β | β | β |
Loose scalar mode (.env/INI) | β | β | β | β | β |
| Semantic (key-order / reflow insensitive) | β | β | partialΒΉ | β | β |
Type-change detection (80 vs "80") | β | β | β | β | β |
| Path-glob ignore / only | β | regexΒ² | β | partial | β |
git diff-driver integration | β | β | β | β | β |
CI exit codes + --json | β | β | β | β | β |
| Install / ecosystem | npm | cargo | cargo | binary | npm |
ΒΉ difftastic is a syntactic structural diff β excellent for source code, and
it will still flag reordered keys as moves. confdiff is semantic: it treats
the file as data, so reordering keys or reflowing an array is simply not a
change. Different jobs β use difftastic for code, confdiff for config.
Β² diffx is the closest tool: a fast,
mature Rust semantic-diff. If you live in the Rust ecosystem it's excellent.
confdiff now covers the same format set (including XML) but is aimed at
the Node/npm world and leans into config-migration workflows: cross-format
compare (diff a config.json against the config.yaml it became), a loose
scalar mode so PORT=80 and PORT="80" in .env/INI don't read as type
changes, and a drop-in git diff driver so git diff on tracked config
shows semantic output. Pick whichever fits your stack β both beat text diff.
Run it once, no install (requires Node.js β₯ 18):
Install the confdiff command globally:
confdiff is published on the npm registry.
Prefer the bleeding edge? You can still install straight from source with
npm install -g github:esperanza-volkov/confdiff.
Homebrew (macOS / Linux):
The tap tracks the latest release and pulls in Node.js for you.
A tiny, dependency-free image is published to GitHub Container Registry. Mount the directory with your files and pass paths relative to it:
The entrypoint is the CLI, so every flag works the same
(--redact, --only, --json, β¦). Use :latest or pin a version tag
(ghcr.io/esperanza-volkov/confdiff:v0.10.0).
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/confdiff-mcp)<a href="https://allmcps.com/mcp/confdiff-mcp"><img src="https://allmcps.com/api/badge/confdiff-mcp?style=directory" alt="Confdiff MCP on AllMCPs" /></a>