diff-patch-tools

Cloudflare Workers MCP server: diff-patch-tools

使うべきか

品質と安全性

A
説明の品質
90%
スキーマの完全性
97%
命名の品質
80%
ポイズニングのリスク
100%
権限の一致
100%
プロトコルへの準拠
100%

検出事項(2)

  • LOWTool 'apply_patch' description lacks action verbapply_patch 内
  • LOWTool 'three_way_merge' description lacks action verbthree_way_merge 内

ツール定義とプロトコルへの準拠に関する自動分析に基づいています。

コンテキストコスト

~562トークン数(ツール定義)
~846 B一般的なレスポンスサイズ
注意への影響は最小限(128k コンテキストの 0.44%)

これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。

インストール

ワンクリックインストール

これを `claude_desktop_config.json` ファイルに追加してください:

{
  "mcpServers": {
    "diff-patch-tools": {
      "url": "https://api.lazy-mac.com/diff-patch-tools/mcp"
    }
  }
}

リモートエンドポイント

https://api.lazy-mac.com/diff-patch-tools/mcpstreamable-http

できること

ツール一覧

ツール(6)

🟢 読み取り専用🟡 書き込み🔴 削除⚪ 不明
⚪text_diff(original, modified, context, original_file, modified_file)

Generate a unified diff between two text strings. Ideal for comparing file versions before and after edits.

入力スキーマ

{
  "type": "object",
  "properties": {
    "original": {
      "type": "string",
      "description": "Original text"
    },
    "modified": {
      "type": "string",
      "description": "Modified text"
    },
    "context": {
      "type": "number",
      "description": "Context lines around each change (default 3)"
    },
    "original_file": {
      "type": "string",
      "description": "Label for the original file (default \"original\")"
    },
    "modified_file": {
      "type": "string",
      "description": "Label for the modified file (default \"modified\")"
    }
  },
  "required": [
    "original",
    "modified"
  ]
}
🟢json_diff(original, modified)

Compute a structural diff between two JSON values, showing added, removed, and replaced fields.

入力スキーマ

{
  "type": "object",
  "properties": {
    "original": {
      "description": "Original JSON value (object, array, or JSON string)"
    },
    "modified": {
      "description": "Modified JSON value (object, array, or JSON string)"
    }
  },
  "required": [
    "original",
    "modified"
  ]
}
🟡apply_patch(original, patch)

Apply a unified diff patch to an original text and return the patched result.

入力スキーマ

{
  "type": "object",
  "properties": {
    "original": {
      "type": "string",
      "description": "Original text to patch"
    },
    "patch": {
      "type": "string",
      "description": "Unified diff patch string"
    }
  },
  "required": [
    "original",
    "patch"
  ]
}
⚪three_way_merge(base, ours, theirs, ours_label, theirs_label)

Perform a three-way merge of base, ours, and theirs. Conflicts are marked with standard diff3 conflict markers.

入力スキーマ

{
  "type": "object",
  "properties": {
    "base": {
      "type": "string",
      "description": "Common ancestor text"
    },
    "ours": {
      "type": "string",
      "description": "Our version of the text"
    },
    "theirs": {
      "type": "string",
      "description": "Their version of the text"
    },
    "ours_label": {
      "type": "string",
      "description": "Label for ours in conflict markers (default \"ours\")"
    },
    "theirs_label": {
      "type": "string",
      "description": "Label for theirs in conflict markers (default \"theirs\")"
    }
  },
  "required": [
    "base",
    "ours",
    "theirs"
  ]
}
🟢diff_stats(diff)

Parse a unified diff string and return line-level statistics: additions, deletions, hunks, files changed.

入力スキーマ

{
  "type": "object",
  "properties": {
    "diff": {
      "type": "string",
      "description": "Unified diff string to analyse"
    }
  },
  "required": [
    "diff"
  ]
}
🟡patch_validate(original, patch)

Check whether a unified diff patch can be applied cleanly to an original text without actually applying it.

入力スキーマ

{
  "type": "object",
  "properties": {
    "original": {
      "type": "string",
      "description": "Original text"
    },
    "patch": {
      "type": "string",
      "description": "Unified diff patch string"
    }
  },
  "required": [
    "original",
    "patch"
  ]
}

コミュニティ

このサーバーを評価する

エビデンス

最近の観測

検証済みバージョンは記録されていませんツール 6 件
検証済みバージョンは記録されていませんツール 6 件