This is an MCP server that gets the difference between two texts.
Project description
mcp-server-diff-python MCP server
テキストの差分を取得するためのMCPサーバーです。
Pythonの標準ライブラリdifflibを利用して、2つのテキスト間の差分をUnified diff形式で提供します。
機能
ツール
サーバーは以下の単一のツールを提供します:
- get-unified-diff: 2つのテキスト間の差分をUnified diff形式で取得します
- 引数:
string_a: 比較元のテキスト(必須)string_b: 比較先のテキスト(必須)
- 戻り値:Unified diff形式のテキスト
- 引数:
インストール方法
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"
]
}
}
"mcpServers": {
"mcp-server-diff-python": {
"command": "uv",
"args": [
"--directory",
"path\\to\\mcp-server-diff-python",
"run",
"mcp-server-diff-python"
]
}
}
開発
デバッグ
npmを使用して、以下のコマンドでMCP Inspectorを起動できます:
npx @modelcontextprotocol/inspector uv --directory path\to\mcp-server-diff-python run mcp-server-diff-python
npx @modelcontextprotocol/inspector uvx mcp-server-diff-python
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_server_diff_python-0.1.1.tar.gz.
File metadata
- Download URL: mcp_server_diff_python-0.1.1.tar.gz
- Upload date:
- Size: 52.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9faef8986a9adba5823e951505e0d27680d340aeeb112f5729f75d7223f02df
|
|
| MD5 |
f38424f0da4b934a870b8840f82a23ac
|
|
| BLAKE2b-256 |
98065ed15c2522faff5865e8e58d940fd7537b203a1dc90d2133407a597fccdd
|
File details
Details for the file mcp_server_diff_python-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mcp_server_diff_python-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0e954103b4b41d61df4cb5b92852617c9ed55b02d6de356764dd410d7f303ec
|
|
| MD5 |
c1520ac706125278e100b01b16dfc312
|
|
| BLAKE2b-256 |
42bd6a1a73f5ffbe83c15e71374ac9e51a94c487278200ae9a7b1bc7f66784a7
|