Skip to main content
Glama

MCP Server Diff Python

by tatn

mcp-server-diff-python

2つの文字列間のテキスト差分を取得するためのMCPサーバーです。このサーバーはPythonの標準ライブラリdifflibを活用し、2つのテキスト間の差分をUnified diff形式で効率的に生成・提供します。テキスト比較やバージョン管理に最適です。

特徴

ツール

サーバーは次の単一のツールを提供します:

  • get-unified-diff : 2つのテキストの差分をUnified diff形式で取得する
    • 引数:
      • string_a : 比較するソーステキスト(必須)
      • string_b : 比較する対象テキスト(必須)
    • 戻り値: 差分をUnified diff形式で格納した文字列

使用法

クロードデスクトップ

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 インスペクターを起動できます。

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.

この MCP サーバーは、Python の標準ライブラリ difflib を使用して、2 つのテキスト入力の統合された diff を提供します。

  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 -
    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

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