Sam Morrow
1777da6eba
Add feature-flagged compare_file_contents tool with semantic diffs
...
Add a new compare_file_contents MCP tool that compares two versions of a
file across refs (branches, tags, or SHAs). For structured data formats
(JSON, YAML, CSV, TOML), it produces semantic diffs that show only
meaningful changes, ignoring formatting differences. For unsupported
formats, it falls back to unified diff.
Key features:
- Semantic diffs for JSON, YAML, CSV, TOML files
- Unified diff fallback for code and other text files
- Handles new files (base not found) and deleted files (head not found)
- 1MB max file size to prevent excessive server-side processing
- Gated behind 'compare_file_contents' feature flag
This helps AI models by:
- Reducing token usage (formatting noise eliminated)
- Providing unambiguous before/after semantics
- Enabling self-verification of edits to config/data files
Refs: #1973
2026-02-09 22:50:59 +01:00
..
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 17:33:22 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-02-04 17:46:21 +00:00
2026-01-22 23:27:21 +01:00
2026-01-15 16:15:39 +01:00
2026-02-09 22:50:59 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2025-08-14 07:25:29 +02:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 17:33:22 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 17:33:22 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 17:33:22 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-22 23:27:21 +01:00
2026-01-22 23:27:21 +01:00
2026-01-22 23:27:21 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 17:33:22 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00
2026-01-15 16:15:39 +01:00