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 インスペクターを起動できます。
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 -250Python
- AsecurityAlicenseAqualityThis server provides a tool to generate unified diffs between two text strings, facilitating text comparison and analysis.Last updated -12513JavaScriptMIT License
- -securityFlicense-qualityA Python-based server that helps users easily install and configure other MCP servers across different platforms.Last updated -2Python
- AsecurityFlicenseAqualityMCP server providing Git-related functionalities, primarily a tool to generate diffs for Git merge commits against their first parent.Last updated -2TypeScript