DiffMint by Harlo

Diff two texts by line, word or char: unified diff, HTML redline, patch apply, similarity.

我該用這個嗎

品質與安全性

B
說明品質
80%
結構描述完整度
88%
命名品質
80%
汙染風險
100%
權限相符程度
100%
協定合規性
100%

發現項目(2)

  • LOWTool 'apply_patch' description lacks action verb在 apply_patch 中
  • LOWTool 'text_similarity' description lacks action verb在 text_similarity 中

根據工具定義與協定合規性的自動化分析。

上下文成本

~583Token(工具定義)
~969 B典型回應大小
極小的注意力影響(128k 上下文的 0.46%)

這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。

安裝

一鍵安裝

將以下內容加入你的 `claude_desktop_config.json` 檔案:

{
  "mcpServers": {
    "diffmint": {
      "url": "https://diffmint.mike-tusa.workers.dev/mcp"
    }
  }
}

遠端端點

https://diffmint.mike-tusa.workers.dev/mcpstreamable-http

它能做什麼

工具清單

工具(3)

🟢 唯讀🟡 寫入🔴 刪除⚪ 未知
🟢diff_text(a, b, mode, ignore_case, ignore_whitespace, ...)

Compare text a with text b by lines (default), words or chars. Returns ops (equal/insert/delete), a unified diff (lines mode), optional escaped HTML redline, stats and similarity. Deterministic diff (Myers algorithm via jsdiff), not an AI or semantic comparison. Limits per side: lines mode 64 KB and 1,000 lines, words mode 8 KB, chars mode 4 KB. If the texts need more than 250 inserted plus deleted units, the API returns 422 too_different instead of a partial diff. Patches up to 64 KB apply to text up to 64 KB. No 3-way merge, no binary files. Stateless: text is not stored or logged; no URL fetching.

輸入結構描述

{
  "type": "object",
  "properties": {
    "a": {
      "type": "string",
      "description": "Original text."
    },
    "b": {
      "type": "string",
      "description": "Changed text."
    },
    "mode": {
      "type": "string",
      "enum": [
        "lines",
        "words",
        "chars"
      ]
    },
    "ignore_case": {
      "type": "boolean"
    },
    "ignore_whitespace": {
      "type": "boolean",
      "description": "lines mode only"
    },
    "context": {
      "type": "integer",
      "minimum": 0,
      "maximum": 20
    },
    "formats": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "ops",
          "unified",
          "html"
        ]
      }
    },
    "label_a": {
      "type": "string"
    },
    "label_b": {
      "type": "string"
    }
  },
  "required": [
    "a",
    "b"
  ]
}
🟢apply_patch(text, patch, fuzz)

Apply a single-file unified diff (patch) to text and return the patched text, or applied:false if a hunk does not match. Optional fuzz 0-2.

輸入結構描述

{
  "type": "object",
  "properties": {
    "text": {
      "type": "string"
    },
    "patch": {
      "type": "string",
      "description": "Unified diff with @@ hunks."
    },
    "fuzz": {
      "type": "integer",
      "minimum": 0,
      "maximum": 2
    }
  },
  "required": [
    "text",
    "patch"
  ]
}
🟢text_similarity(a, b, mode, ignore_case)

Similarity ratio 0-1 between two texts (2 x unchanged chars / total chars) on chars (default), words or lines granularity, plus change stats.

輸入結構描述

{
  "type": "object",
  "properties": {
    "a": {
      "type": "string",
      "description": "Original text."
    },
    "b": {
      "type": "string",
      "description": "Changed text."
    },
    "mode": {
      "type": "string",
      "enum": [
        "lines",
        "words",
        "chars"
      ]
    },
    "ignore_case": {
      "type": "boolean"
    }
  },
  "required": [
    "a",
    "b"
  ]
}

社群

為此伺服器評分

證據

近期觀測

已驗證未記錄版本3 個工具