MCP.so
登录

mcp-server-diff-typescript MCP Server

@MCP-Mirror

基本信息

分类

版本控制

传输方式

stdio

作者

MCP-Mirror

关于 mcp-server-diff-typescript MCP Server

Mirror of

mcp-server-diff-typescript MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

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

mcp-server-diff-typescript MCP Server 工具

1

Generate unified diff between two text strings

概览

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

常见问题

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.

评论

版本控制 分类下的更多 MCP 服务器