MCP Server Diff Python
mcp-server-diff-python
2つの文字列間のテキスト差分を取得するためのMCPサーバーです。このサーバーはPythonの標準ライブラリdifflibを活用し、2つのテキスト間の差分をUnified diff形式で効率的に生成・提供します。テキスト比較やバージョン管理に最適です。
特徴
ツール
サーバーは次の単一のツールを提供します:
get-unified-diff : 2つのテキストの差分をUnified diff形式で取得する
引数:
string_a: 比較するソーステキスト(必須)string_b: 比較する対象テキスト(必須)
戻り値: 差分をUnified diff形式で格納した文字列
Related MCP server: Git Stuff Server
使用法
クロードデスクトップ
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-pythonnpx @modelcontextprotocol/inspector uv --directory path\to\mcp-server-diff-python run mcp-server-diff-pythonAvailable Tools
1 toolget-unified-diffB
Get the difference between two text articles in Unified diff format. Use this when you want to extract the difference between texts.
| Name | Required | Description | Default |
|---|---|---|---|
| string_a | Yes | ||
| string_b | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions the output format ('Unified diff format') but fails to describe critical behaviors such as error handling, performance characteristics, or any side effects. For a tool with two inputs and no annotation coverage, this leaves significant gaps in understanding how it operates beyond its basic function.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is highly concise and well-structured, consisting of two sentences that efficiently state the tool's purpose and usage context without any redundant information. Every sentence earns its place, making it easy to parse and understand quickly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (comparing two texts) and the lack of annotations, output schema, and parameter descriptions, the description is incomplete. It does not explain what the Unified diff format entails, how differences are computed, or what the return values look like. This leaves too many unknowns for effective tool selection and invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, meaning the input schema provides no descriptions for 'string_a' and 'string_b'. The description does not add any semantic details about these parameters, such as what they represent (e.g., original vs. modified text) or any constraints. This lack of compensation for the schema gap results in a low score, as users must guess parameter meanings.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Get the difference between two text articles in Unified diff format.' It specifies the verb ('Get'), resource ('difference'), and output format ('Unified diff format'), which is specific and actionable. However, since there are no sibling tools, the description cannot demonstrate differentiation from alternatives, preventing a perfect score.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides some guidance with 'Use this when you want to extract the difference between texts,' which implies the context for usage. However, it lacks explicit when-not-to-use scenarios or comparisons to alternatives (though none exist here). This makes it adequate but not comprehensive, fitting a baseline score.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
1 tool update
v1.0.0- First observed
get-unified-diff
TDQS
With only one tool, there is no possibility of ambiguity or overlap with other tools, making it perfectly clear and distinct in purpose.
The single tool name 'get-unified-diff' follows a consistent verb_noun pattern, and with no other tools to compare, there is no inconsistency.
One tool is too few for a server named 'MCP Server Diff Python', which suggests a broader scope for diff operations, such as handling multiple diff formats or additional text comparison features.
The server is severely incomplete; it only provides a single diff tool, lacking obvious operations like applying diffs, comparing multiple texts, or supporting other diff formats, which are typical for diff-related domains.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Cloudflare Workers MCP server: diff-patch-tools
MCP server for developer documentation, generated by doc2mcp.
MCP server for doc2mcp documentation, generated by doc2mcp.
Related MCP Servers
- AlicenseBqualityDmaintenanceThis server provides a tool to generate unified diffs between two text strings, facilitating text comparison and analysis.1233MIT
- FlicenseCqualityDmaintenanceMCP server providing Git-related functionalities, primarily a tool to generate diffs for Git merge commits against their first parent.4-
- FlicenseCqualityDmaintenanceAn efficient MCP server for performing accurate, deep comparisons between JSON objects or strings using the deepdiff engine. It provides AI agents with standardized difference reports, supporting nested structures and various input formats to ensure precise data analysis.1-
- AlicenseNot gradedqualityBmaintenanceA high-performance Model Context Protocol server that provides text diffing capabilities, enabling LLMs to compare two blocks of text and receive differences in unified diff format.6Apache 2.0
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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