Skip to main content

This is an MCP server that gets the difference between two texts.

Project description

mcp-server-diff-python

An MCP server for obtaining text differences between two strings. This server leverages Python's standard library difflib to efficiently generate and provide differences between two texts in Unified diff format, making it ideal for text comparison and version control purposes.

Server Diff Python MCP server

Features

Tools

The server provides a single tool:

  • get-unified-diff: Get differences between two texts in Unified diff format
    • Arguments:
      • string_a: Source text for comparison (required)
      • string_b: Target text to compare against (required)
    • Return value: A string containing the differences in Unified diff format

Usage

Claude Desktop

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-python": {
    "command": "uvx",
    "args": [
      "mcp-server-diff-python"
    ]
  }
}

or Add the following configuration:

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

Development

Debugging

You can start the MCP Inspector using npxwith the following commands:

npx @modelcontextprotocol/inspector uvx mcp-server-diff-python
npx @modelcontextprotocol/inspector uv --directory path\to\mcp-server-diff-python run mcp-server-diff-python

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_mcp_server_diff_python-0.1.2.tar.gz (53.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file iflow_mcp_mcp_server_diff_python-0.1.2.tar.gz.

File metadata

File hashes

Hashes for iflow_mcp_mcp_server_diff_python-0.1.2.tar.gz
Algorithm Hash digest
SHA256 5e42343d09b32120027e7ec858957d37eb3dee81e3b5677f9e9c14a9fd4b1d53
MD5 5a2e7b1ab55a1e1f7b79249c55dc5396
BLAKE2b-256 827117228dd205cca25f7c6fbe1eca2a6a8d10998b58073ffec1ae55596075ee

See more details on using hashes here.

File details

Details for the file iflow_mcp_mcp_server_diff_python-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for iflow_mcp_mcp_server_diff_python-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 34d78ba0bbaf8ff3e0964a6aa1278f282560f9c4410d7cb9e03ea5cdf62c4167
MD5 28c934df59610df53825a4eeeff6c865
BLAKE2b-256 abcc7aaaa0adf6f27cbf46f8620994fc71d6200db2130c1daeddba0208be8be4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page