Skip to main content
Glama

MCP Server Diff Python

by tatn

mcp-server-diff-python

一个用于获取两个字符串之间文本差异的 MCP 服务器。该服务器利用 Python 标准库difflib高效生成并以统一 diff 格式提供两个文本之间的差异,非常适合文本比较和版本控制。

特征

工具

服务器提供一个单一工具:

  • get-unified-diff :以统一差异格式获取两段文本之间的差异
    • 参数:
      • string_a :用于比较的源文本(必需)
      • string_b :要比较的目标文本(必需)
    • 返回值:包含统一差异格式的字符串

用法

克劳德桌面

与 Claude Desktop 一起使用 要与 Claude Desktop 一起使用,请添加服务器配置:

在 MacOS 上: ~/Library/Application\ Support/Claude/claude_desktop_config.json
在 Windows 上: %APPDATA%/Claude/claude_desktop_config.json

"mcpServers": { "mcp-server-diff-python": { "command": "uvx", "args": [ "mcp-server-diff-python" ] } }

或者添加以下配置:

git clone https://github.com/tatn/mcp-server-diff-python.git cd mcp-server-diff-python uv sync uv build
"mcpServers": { "mcp-server-diff-python": { "command": "uv", "args": [ "--directory", "path\\to\\mcp-server-diff-python", "run", "mcp-server-diff-python" ] } }

发展

调试

您可以使用npx通过以下命令启动 MCP Inspector:

npx @modelcontextprotocol/inspector uvx mcp-server-diff-python
npx @modelcontextprotocol/inspector uv --directory path\to\mcp-server-diff-python run mcp-server-diff-python
Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

该 MCP 服务器使用 Python 的标准库 difflib 提供两个文本输入的统一差异。

  1. 特征
    1. 工具
  2. 用法
    1. 克劳德桌面
  3. 发展
    1. 调试

Related MCP Servers

  • -
    security
    F
    license
    -
    quality
    Server for using Dify. It achieves the invocation of the Dify workflow by calling the tools of MCP.
    Last updated -
    250
    Python
  • A
    security
    A
    license
    A
    quality
    This server provides a tool to generate unified diffs between two text strings, facilitating text comparison and analysis.
    Last updated -
    1
    251
    3
    JavaScript
    MIT License
    • Apple
  • -
    security
    F
    license
    -
    quality
    A Python-based server that helps users easily install and configure other MCP servers across different platforms.
    Last updated -
    2
    Python
    • Apple
    • Linux
  • A
    security
    F
    license
    A
    quality
    MCP server providing Git-related functionalities, primarily a tool to generate diffs for Git merge commits against their first parent.
    Last updated -
    2
    TypeScript

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tatn/mcp-server-diff-python'

If you have feedback or need assistance with the MCP directory API, please join our Discord server