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
または次の構成を追加します。
発達
デバッグ
次のコマンドでnpxを使用して MCP インスペクターを起動できます。
You must be authenticated.
local-only server
The server can only run on the client's local machine because it depends on local resources.
Tools
この MCP サーバーは、Python の標準ライブラリ difflib を使用して、2 つのテキスト入力の統合された diff を提供します。
Related Resources
Related MCP Servers
- -securityFlicense-qualityServer for using Dify. It achieves the invocation of the Dify workflow by calling the tools of MCP.Last updated -189Python
- AsecurityAlicenseAqualityThis server provides a tool to generate unified diffs between two text strings, facilitating text comparison and analysis.Last updated -182JavaScriptMIT License
- -securityFlicense-qualityA 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
- -securityAlicense-qualityA 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 -2PythonMIT License