api-diff-monitor
Cloudflare Workers MCP server: api-diff-monitor
我该使用它吗
质量与安全性
A
基于对工具定义和协议合规性的自动分析。
上下文开销
~503token 数(工具定义)
~706 B典型响应大小
对注意力的影响极小(占 128k 上下文窗口的 0.39%)
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"api-diff-monitor": {
"url": "https://api.lazy-mac.com/api-diff-monitor/mcp"
}
}
}远程端点
https://api.lazy-mac.com/api-diff-monitor/mcpstreamable-http它能做什么
工具清单
工具(6)
🟢 只读🟡 写入🔴 删除⚪ 未知
⚪register_endpoint(name, url, method, headers, body, ...)
Register an API endpoint to monitor for schema changes. Provide name, url, and optionally method/headers/description.
输入模式
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Identifier for this endpoint"
},
"url": {
"type": "string",
"description": "API URL to monitor"
},
"method": {
"type": "string",
"enum": [
"GET",
"POST",
"PUT",
"PATCH",
"DELETE"
],
"description": "HTTP method (default: GET)"
},
"headers": {
"type": "object",
"description": "Request headers"
},
"body": {
"description": "Request body (for POST/PUT)"
},
"description": {
"type": "string",
"description": "Optional description"
}
},
"required": [
"name",
"url"
]
}🟢list_monitored_endpoints
List all registered API endpoints being monitored.
输入模式
{
"type": "object",
"properties": {}
}🟢compare_snapshots(endpoint_id, snapshot_a, snapshot_b, save)
Fetch a registered endpoint and compare against its last snapshot to detect schema changes. Or compare two inline JSON objects directly.
输入模式
{
"type": "object",
"properties": {
"endpoint_id": {
"type": "string",
"description": "ID of a registered endpoint to fetch and compare"
},
"snapshot_a": {
"type": "object",
"description": "Inline \"before\" JSON (omit endpoint_id for direct comparison)"
},
"snapshot_b": {
"type": "object",
"description": "Inline \"after\" JSON (omit endpoint_id for direct comparison)"
},
"save": {
"type": "boolean",
"description": "Save snapshot and diff to history (default: true)"
}
}
}🟢get_diff_history(endpoint_id, limit)
Retrieve the schema diff history for a registered endpoint.
输入模式
{
"type": "object",
"properties": {
"endpoint_id": {
"type": "string",
"description": "Endpoint ID"
},
"limit": {
"type": "number",
"description": "Max diffs to return (default: 20, max: 50)"
}
},
"required": [
"endpoint_id"
]
}🟢detect_breaking_changes(endpoint_id)
Check if a registered endpoint has had any breaking changes (removed fields or type changes).
输入模式
{
"type": "object",
"properties": {
"endpoint_id": {
"type": "string",
"description": "Endpoint ID"
}
},
"required": [
"endpoint_id"
]
}🔴delete_endpoint(endpoint_id)
Remove a monitored endpoint and all its snapshots and diff history.
输入模式
{
"type": "object",
"properties": {
"endpoint_id": {
"type": "string",
"description": "Endpoint ID to delete"
}
},
"required": [
"endpoint_id"
]
}社区
证据
最近观测
已验证未记录版本6 个工具
已验证未记录版本6 个工具
已验证未记录版本6 个工具