x402lint

Free x402 endpoint linter: unpaid 402 challenge, payTo/asset/amount, CORS, directory readiness.

我該用這個嗎

品質與安全性

A
說明品質
100%
結構描述完整度
97%
命名品質
87%
汙染風險
100%
權限相符程度
100%
協定合規性
100%

根據工具定義與協定合規性的自動化分析。

上下文成本

~429Token(工具定義)
~657 B典型回應大小
極小的注意力影響(128k 上下文的 0.34%)

這是每次將伺服器的工具載入模型上下文時所消耗的約略 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"
  ]
}

社群

為此伺服器評分

證據

近期觀測

已驗證未記錄版本3 個工具