x402lint
Free x402 endpoint linter: unpaid 402 challenge, payTo/asset/amount, CORS, directory readiness.
사용해야 할까요
품질 및 안전성
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`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"
]
}커뮤니티
증거