x402lint
Free x402 endpoint linter: unpaid 402 challenge, payTo/asset/amount, CORS, directory readiness.
我该使用它吗
质量与安全性
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"x402lint": {
"url": "https://x402lint.something-agent.workers.dev/mcp"
}
}
}远程端点
https://x402lint.something-agent.workers.dev/mcpstreamable-http它能做什么
工具清单
工具(3)
⚪lint_x402_endpoint(url, method)
Unpaid lint of an x402 endpoint: fetches the 402 (GET and POST), then checks the challenge (version, accepts[] fields, CAIP-2 network, payTo/asset/amount sanity, EIP-712 name/version, timeouts, resource), transport (redirects, cache headers, CORS) and discovery files. Returns findings with ids, severities and fixes. Never pays. Free.
输入模式
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The paid x402 URL"
},
"method": {
"type": "string",
"enum": [
"auto",
"GET",
"POST"
],
"description": "Default auto: tries both"
}
},
"required": [
"url"
]
}🟢check_directory_readiness(url, method)
Lint an x402 endpoint's unpaid 402 and report, per directory, whether it meets what x402dash (unpaid GET must return 402), x402scan (OpenAPI x-payment-info or /.well-known/x402, input schema), the402 (validator 'payable') and the CDP/PayAI Bazaar (bazaar extension, description <= 500 chars, non-tunnel https host; listing then needs one settled payment) were known to check. Never pays. Free.
输入模式
{
"type": "object",
"properties": {
"url": {
"type": "string",
"description": "The paid x402 URL"
},
"method": {
"type": "string",
"enum": [
"auto",
"GET",
"POST"
],
"description": "Default auto: tries both"
}
},
"required": [
"url"
]
}⚪lint_payment_required(payment_required, url)
Lint a PaymentRequired object you already have (decoded JSON, a JSON string, or the raw base64 PAYMENT-REQUIRED header). Same field/value checks as lint_x402_endpoint, no network access. Free.
输入模式
{
"type": "object",
"properties": {
"payment_required": {
"description": "Object, JSON string, or base64 header value"
},
"url": {
"type": "string",
"description": "Optional: the URL it was served from, to check resource.url"
}
},
"required": [
"payment_required"
]
}社区
证据