MCP Server Diff Python

by tatn
MIT License
4
  • Apple

Integrations

  • Leverages Python's difflib library to generate differences between two texts in Unified diff format.

mcp-server-diff-python

Un servidor MCP para obtener diferencias de texto entre dos cadenas. Este servidor aprovecha la biblioteca estándar de Python difflib para generar y proporcionar eficientemente diferencias entre dos textos en formato diff unificado, lo que lo hace ideal para la comparación de textos y el control de versiones.

Características

Herramientas

El servidor proporciona una única herramienta:

  • get-unified-diff : Obtener las diferencias entre dos textos en formato de diferencia unificada
    • Argumentos:
      • string_a : Texto fuente para comparación (obligatorio)
      • string_b : Texto de destino con el que comparar (obligatorio)
    • Valor de retorno: una cadena que contiene las diferencias en formato de diferencia unificada

Uso

Escritorio de Claude

Uso con Claude Desktop Para usar con Claude Desktop, agregue la configuración del servidor:

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

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

o agregue la siguiente configuración:

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

Desarrollo

Depuración

Puede iniciar el Inspector MCP usando npx con los siguientes comandos:

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

You must be authenticated.

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.

Este servidor MCP proporciona diferencias unificadas de dos entradas de texto utilizando la biblioteca estándar de Python difflib.

  1. Features
    1. Tools
  2. Usage
    1. Claude Desktop
  3. Development
    1. Debugging

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 -
    189
    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
    8
    2
    JavaScript
    MIT License
    • Apple
  • -
    security
    F
    license
    -
    quality
    A Python MCP server for invoice and receipt processing that uses OCR technology to extract data from PDFs and images, offering AI assistants the ability to process, extract text from, and merge invoice documents.
    Last updated -
    Python
    • Apple
  • -
    security
    A
    license
    -
    quality
    A Python-based text editor server built with FastMCP that provides tools for file operations. This server enables reading, editing, and managing text files through a standardized API following a multi-step process.
    Last updated -
    2
    Python
    MIT License
    • Linux
    • Apple

View all related MCP servers

ID: qbwsx2g4vd