MCP Server Diff TypeScript
About
This server provides a tool to generate unified diffs between two text strings, facilitating text comparison and analysis.
Details
- Author
- tatn
- Repository
- tatn/mcp-server-diff-typescript
- GitHub stars
- 2
- Downloads
- 183
- License
- MIT License
- Categories
- Developer Tools, File Management
Jump to
- Provides a single tool: get-unified-diff
- Generates unified diffs between two text strings
- Uses the diff
Setting up with Highlight
Follow these steps to add this server as a custom Highlight plugin:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
MCP Server Diff TypeScriptCommand (node, npx, python, etc.)npxArguments-
Argument 1
-y -
Argument 2
mcp-server-diff-typescript
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Install globally via npm install -g mcp-server-diff-typescript or as a project dependency. Configure it in Claude Desktop by adding the server entry to claude_desktop_config.json using npx -y mcp-server-diff-typescript or a local build path. Invoke the get-unified-diff tool with oldString and newString parameters to receive a unified diff with three lines of context.
get-unified-diff
Generate unified diff between two text strings. Takes `oldString` and `newString` as required parameters and returns the difference in unified diff format, including 3 lines of context around changes.
- get-unified-diff - Generate unified diff between two text strings
- Takes oldString and newString 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
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"mcp server diff typescript": {
"cwd": "~/Library/Application Support/Claude",
"env": {},
"args": [
"-y",
"mcp-server-diff-typescript"
],
"shell": false,
"command": "npx"
}
}
}
Linux
{
"env": [],
"args": [
"-y",
"mcp-server-diff-typescript"
],
"command": "npx"
}
Macos
{
"cwd": "~/Library/Application Support/Claude",
"env": [],
"args": [
"-y",
"mcp-server-diff-typescript"
],
"shell": false,
"command": "npx"
}
Windows
{
"cwd": "%APPDATA%/Claude",
"env": [],
"args": [
"-y",
"mcp-server-diff-typescript"
],
"shell": false,
"command": "npx"
}
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"></a>
Features
Tools
- get-unified-diff - Generate unified diff between two text strings
- Takes oldString and newString 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
Installation
As a Global Package
npm install -g mcp-server-diff-typescript
As a Project Dependency
npm install mcp-server-diff-typescript
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
"mcpServers": {
"mcp-server-diff-typescript": {
"command": "npx",
"args": [
"-y",
"mcp-server-diff-typescript"
]
}
}
or Add the following configuration:
git clone https://github.com/tatn/mcp-server-diff-typescript.git
cd mcp-server-diff-typescript
npm install
npm run build
"mcpServers": {
"mcp-server-diff-typescript": {
"command": "node",
"args": [
"/path/to/mcp-server-diff-typescript/build/index.js"
]
}
}
Debugging
To debug the MCP server:
npx @modelcontextprotocol/inspector npx -y mcp-server-diff-typescript
npx @modelcontextprotocol/inspector node /path/to/mcp-server-diff-typescript/build/index.js
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





