Skip to main content
Glama
diff-checker

diff-checker

by Br0ski777

Diff Checker API

MCP Server x402 License: MIT

逐行比较两段文本。返回结构化的 diff,包含新增行、删除行、未变更行以及摘要统计。通过 x402(Base L2 上的 USDC)按次付费——无需 API 密钥、无需注册、无速率限制壁垒。

属于 klymax402 市场的一部分——为 AI 智能体提供 100 个 x402 微支付 API,一个钱包,USDC on Base。

快速入门 -- MCP

添加到你的 MCP 客户端配置中(Claude Desktop、Cursor、ElizaOS 等):

{
  "mcpServers": {
    "diff-checker": {
      "url": "https://diff-checker.api.klymax402.com/mcp"
    }
  }
}

Related MCP server: word-counter

快速入门 -- HTTP (x402)

curl -X POST "https://diff-checker.api.klymax402.com/api/diff" \
  -H "Content-Type: application/json" \
  -d '{"text1":"...","text2":"..."}'
# -> 402 Payment Required, with an x402 payment challenge in the response body

任何支持 x402 的客户端(@x402/fetch、x402-agent-tools、ATXP)都会自动处理 402 -> 签名 -> 重试 的完整循环。

工具

工具

方法

路径

价格

描述

text_compare_diff

POST

/api/diff

$0.005

比较两段文本并逐行显示差异

text_compare_diff

当你需要比较两段文本,并确定它们之间的具体差异时,请使用此工具。返回结构化的逐行 diff 及摘要统计。

参数

参数

类型

必需

描述

text1

string

是

原始文本(基准)

text2

string

是

修改后的文本,用于与原始文本对比

示例响应:

{"changes":[{"type":"unchanged","content":"line 1"},{"type":"removed","content":"old line 2"},{"type":"added","content":"new line 2"}],"linesAdded":1,"linesRemoved":1,"linesUnchanged":1,"similarity":66.7}

适用场景:代码审查(比较修改前后)、追踪文档修订、核对配置文件变更,或审计模板修改。在部署配置变更前,先用它了解差异之处。

不适用于:文本分类(请使用 text_classify_content)、情感分析(请使用 text_analyze_sentiment)、字数统计(请使用 text_count_words)。

示例智能体提示词

  • "比较两段文本,并明确指出它们之间具体有到哪些变化"

支付方式

  • 协议:x402 -- 原生 HTTP 按次计费,无需注册,无需 API 密钥

  • 网络:Base L2 (eip155:8453)

  • 资产:USDC

  • 协调方:Coinbase CDP(主要)、PayAI(备用)

  • 也可通过 ATXP 访问(OAuth 包装的 x402,RFC 9728 受保护资源元数据)

属于 klymax402

100 个面向 AI 智能体的 x402 微支付 API -- 一个钱包,USDC on Base,零注册。

许可证

MIT

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    B
    maintenance
    A 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.
    6
    Apache 2.0
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI agents to analyze text metrics in one call, including word count, characters, sentences, paragraphs, and estimated reading time, with pay-per-call micropayments via x402.
    MIT
  • F
    license
    Not graded
    quality
    B
    maintenance
    Enables developers and AI agents to compute deterministic in-memory unified diffs between successive versions of live artifacts and receive structured change telemetry in return. It runs with zero external dependencies and plugs into MCP-compliant clients such as Claude Desktop, Cursor, and Windsurf.
    8
    -
  • F
    license
    Not graded
    quality
    Not graded
    maintenance
    Enables AI agents and MCP clients to compute real-time, in-memory unified diffs between versions of live artifacts along with structured change telemetry. It runs as a deterministic, zero-dependency Python MCP server that plugs into Claude Desktop, Cursor, or Windsurf for diff and change-tracking workflows.
    -