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
oldStringandnewStringtext inputsAccurate Difference Detection: Utilizes the
diffpackage for precise text comparisonIncludes 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 stringsTakes
oldStringandnewStringas required parametersReturns the difference in unified diff format
Uses the
diffpackage for accurate difference detectionIncludes 3 lines of context around changes
Related MCP server: MCP Server Diff Python
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: