Basic information
About Unified Diff Generator MCP Server
Use our diff checker online to compare files on line. Generate unified diffs with precise 3-line context for easy code review and version control.
Unified Diff Generator is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by tatn. It exposes 1 tool, including get-unified-diff. Supported transport: stdio. Runtime: JavaScript. License: MIT. The repository has 3 GitHub stars. Source code is hosted on github.com. Related topics: community, developer-tools, diff, mcp-server, typescript.
Setup
{
"mcpServers": {
"mcp-server-diff-typescript": {
"command": "npx",
"args": [
"-y",
"mcp-server-diff-typescript"
]
}
}
}
{
"mcpServers": {
"mcp-server-diff-typescript": {
"command": "npx",
"args": [
"-y",
"mcp-server-diff-typescript"
]
}
}
}
{
"servers": {
"mcp-server-diff-typescript": {
"command": "npx",
"args": [
"-y",
"mcp-server-diff-typescript"
]
}
}
}
Unified Diff Generator MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-server-diff-typescript": {
"command": "npx",
"args": [
"-y",
"mcp-server-diff-typescript"
]
}
}
}
Unified Diff Generator MCP Server tools
- get-unified-diff — Get the difference between two text articles in Unified diff format.
Overview
What is Unified Diff Generator?
mcp-server-diff-typescript is a Model Context Protocol server that provides unified diff generation between two text strings. It is built in TypeScript and uses the diff package for accurate difference detection, making it useful for comparing and analyzing text differences.
How to use Unified Diff Generator?
Install globally with npm install -g mcp-server-diff-typescript or as a project dependency with npm install mcp-server-diff-typescript. Configure it in Claude Desktop by adding the server configuration to claude_desktop_config.json using npx -y mcp-server-diff-typescript or pointing to the built index.js file. The server exposes one tool: get-unified-diff, which takes oldString and newString as required parameters.
Key features of Unified Diff Generator
- Provides the
get-unified-difftool for generating unified diffs - Accepts
oldStringandnewStringas required parameters - Returns differences in unified diff format
- Uses the
diffpackage for accurate detection - Includes 3 lines of context around changes
- Written in TypeScript
Use cases of Unified Diff Generator
- Comparing two versions of a text document or code snippet
- Analyzing changes in configuration files
- Integrating diff functionality into AI-assisted editing workflows
Frequently asked questions
1 What tool does mcp-server-diff-typescript provide?
It provides a single tool called get-unified-diff that generates a unified diff between two text strings.
2 How do I install mcp-server-diff-typescript?
You can install it globally with npm install -g mcp-server-diff-typescript or as a project dependency with npm install mcp-server-diff-typescript.
3 How do I use mcp-server-diff-typescript with Claude Desktop?
Add the server configuration to claude_desktop_config.json in the mcpServers section. Example: use "command": "npx" with "args": ["-y", "mcp-server-diff-typescript"].
4 What parameters does the get-unified-diff tool require?
It requires two parameters: oldString (the original text) and newString (the updated text).
5 Does mcp-server-diff-typescript have any runtime dependencies?
It relies on Node.js and the diff npm package for generating diffs. Installation via npm handles these dependencies.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In