Skip to main content
Glama
Br0ski777

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: MCP JSONDiff Kel

快速入门 -- 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/fetchx402-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

A
license - permissive license
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • x402-paid agent tools: 18 over HTTP, 14 over stdio. USDC per call, no API key.

  • 63 pay-per-call tools for agents: vision, text, data, web, blockchain. USDC on Base via x402.

  • Telegram channel analytics and statistics for AI agents, pay-per-call in USDC via x402.

View all MCP Connectors

Latest Blog Posts

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/Br0ski777/diff-checker-x402'

If you have feedback or need assistance with the MCP directory API, please join our Discord server