MCP.so
Sign In

mcp-server-diff-typescript MCP Server

@MCP-Mirror

About mcp-server-diff-typescript MCP Server

Mirror of

Basic information

Category

Version Control

Transports

stdio

Publisher

MCP-Mirror

Config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "tatn_mcp-server-diff-typescript": {
      "command": "npx",
      "args": [
        "@modelcontextprotocol/inspector",
        "npx",
        "-y",
        "mcp-server-diff-typescript"
      ]
    }
  }
}

Tools

1

Generate unified diff between two text strings

Overview

What is mcp-server-diff-typescript?

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 mcp-server-diff-typescript?

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 mcp-server-diff-typescript

  • Provides the get-unified-diff tool for generating unified diffs
  • Accepts oldString and newString as required parameters
  • Returns differences in unified diff format
  • Uses the diff package for accurate detection
  • Includes 3 lines of context around changes
  • Written in TypeScript

Use cases of mcp-server-diff-typescript

  • Comparing two versions of a text document or code snippet
  • Analyzing changes in configuration files
  • Integrating diff functionality into AI-assisted editing workflows

FAQ from mcp-server-diff-typescript

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.

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.

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"].

What parameters does the get-unified-diff tool require?

It requires two parameters: oldString (the original text) and newString (the updated text).

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

More Version Control MCP servers