MCP Server Diff TypeScript
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.
<a href="https://glama.ai/mcp/servers/3sbmp65pce"><img width="380" height="200" src="https://glama.ai/mcp/servers/3sbmp65pce/badge" alt="Server Diff TypeScript MCP server" /></a>
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:
You must be authenticated.
This server provides a tool to generate unified diffs between two text strings, facilitating text comparison and analysis.