The MCP Server Diff TypeScript allows you to generate unified diffs between two text strings for comparison and analysis.
- Generate Unified Diffs: Creates formatted diffs between
oldString
andnewString
text inputs - Accurate Difference Detection: Utilizes the
diff
package for precise text comparison - Includes Context: Adds 3 lines of context around detected changes in the output
- Integration Options: Can be integrated with Claude Desktop or used as a standalone package
- Debugging Support: Compatible with the Model Context Protocol Inspector
mcp-server-diff-typescript MCP Server
A Model Context Protocol server that provides unified diff generation capabilities.
This TypeScript-based MCP server implements a diff generation system. It provides a tool to generate unified diffs between two text strings, which is useful for comparing and analyzing text differences.
Features
Tools
get-unified-diff
- Generate unified diff between two text strings- Takes
oldString
andnewString
as required parameters - Returns the difference in unified diff format
- Uses the
diff
package for accurate difference detection - Includes 3 lines of context around changes
- Takes
Installation
As a Global Package
As a Project Dependency
Usage
Using with Claude Desktop
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
or Add the following configuration:
Debugging
To debug the MCP server:
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
This server provides a tool to generate unified diffs between two text strings, facilitating text comparison and analysis.
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that provides tools for analyzing text documents, including counting words and characters. This server helps LLMs perform text analysis tasks by exposing simple document statistics functionality.Last updated -144110JavaScriptApache 2.0
- AsecurityAlicenseAqualityThis MCP server provides unified diffs of two text inputs using Python's standard library difflib.Last updated -17PythonMIT License
- AsecurityAlicenseAqualitycompare 2 text or data (supports text diffs, json, json5, yaml, toml, xml and html). powered by jsondiffpatchLast updated -14485,110TypeScriptMIT License
- AsecurityFlicenseAqualityA lightweight server that provides detailed text analysis, counting total characters, characters without spaces, letters, numbers, and symbols for AI assistants like Claude Desktop and GitHub Copilot.Last updated -12JavaScript