Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_server_diff_python-0.1.1.tar.gz (52.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_server_diff_python-0.1.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_diff_python-0.1.1.tar.gz.

File metadata

File hashes

Hashes for mcp_server_diff_python-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b9faef8986a9adba5823e951505e0d27680d340aeeb112f5729f75d7223f02df
MD5 f38424f0da4b934a870b8840f82a23ac
BLAKE2b-256 98065ed15c2522faff5865e8e58d940fd7537b203a1dc90d2133407a597fccdd

See more details on using hashes here.

File details

Details for the file mcp_server_diff_python-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_diff_python-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b0e954103b4b41d61df4cb5b92852617c9ed55b02d6de356764dd410d7f303ec
MD5 c1520ac706125278e100b01b16dfc312
BLAKE2b-256 42bd6a1a73f5ffbe83c15e71374ac9e51a94c487278200ae9a7b1bc7f66784a7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page