360 Secure SkillHub
360 安全技能中心

x402 Bazaar Check

通过零依赖 Python CLI 对给定资源 URL 发起未付费的 GET、HEAD、OPTIONS 探测,校验 402 状态、PAYMENT-REQUIRED 头部字节数、extensions.bazaar 元数据以及 CAIP-2 网络与原子单位金额,失败时给出修复片段;不涉及钱包、签名或支付结算。

分类:开发
epistemedeus
epistemedeus
热度 36.29
最近更新 2026-12-04 22:52:14

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add epistemedeus/x402-bazaar-check
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
x402-bazaar-check
description
Check an unpaid x402 402 for extensions.bazaar discoverability, three header byte counts, and CAIP-2 payment terms. Use before expecting Coinbase Bazaar to index a route.
license
MIT
compatibility
Requires Python 3. Probes are unpaid GET, HEAD, and OPTIONS. No wallet, signature, payment, or telemetry.
metadata
{"author":"neomorphic","version":"0.1.0"}

Check x402 Bazaar discoverability

Check one or more resource URLs with the zero-dependency CLI in this public repository. Do not pay, sign, attach a wallet, or send a request body. The command exit code is the result: 0 has no error, 1 has a failed check, and 2 means the arguments are not usable.

This skill is skills/x402-bazaar-check in epistemedeus/x402-data-gateway-skills. npx skills add discovers skills/<name>/SKILL.md. It is not marked metadata.internal.

Coinbase x402 Bazaar has no submit form. Indexing happens only when the unpaid 402 exposes valid extensions.bazaar metadata and one payment has settled through the CDP facilitator with paymentPayload.resource. This command checks the unpaid challenge. It does not settle a payment. challengeReady is not a catalog listing.

Run the check

From a checkout of this repository:

python3 actions/x402-bazaar-check/x402_bazaar_check.py --urls https://example.com/replace-with-your-route --json

https://example.com/replace-with-your-route is a placeholder. Pass the real resource URL. The command sends GET, HEAD, and OPTIONS. Each request includes X-Pilot-QA: 1 and a User-Agent that names contact@neomorphic.io.

A skill-only install copies this directory and does not copy actions/. Clone the repository, or use a git tree that contains actions/x402-bazaar-check, before running the command.

Rules

  1. HTTP 402 on GET. Any other status fails. CDP description: https://docs.cdp.coinbase.com/x402/bazaar
  2. Decode PAYMENT-REQUIRED and report three byte counts: raw header line, header value, and full header block. A raw line or header block over 8,190 bytes fails. Above 6,500 bytes warns. Background: https://github.com/x402-foundation/x402/issues/3803
  3. extensions.bazaar needs info and schema. Validate HTTP or MCP input, output when present, and the info object against the schema. Spec: https://raw.githubusercontent.com/x402-foundation/x402/main/specs/extensions/bazaar.md
  4. accepts[].network must be CAIP-2. accepts[].amount must be a decimal string of atomic units. Do not convert the amount and do not invent a price, a payee, an asset, or a network. Spec: https://raw.githubusercontent.com/x402-foundation/x402/main/specs/x402-specification-v2.md

When an error is present, copy the fixSnippet.paymentRequired JSON and replace every angle-bracket placeholder with the server's own terms. The same failure adds one next step with these links:

A passing report does not include the snippet or those links.

Install

Default-branch install, after this skill is on the default branch:

npx skills add epistemedeus/x402-data-gateway-skills --skill x402-bazaar-check --yes

This file can also be installed from a git tree URL for the branch that contains it. The skills CLI documents that form as https://github.com/<owner>/<repo>/tree/<branch>/skills/<name>. Do not claim a skills.sh directory page lists this skill until a fetch of that page shows it.

Boundaries

Contact is contact@neomorphic.io. The check is free. It does not set a price, a payee, or a payment URL.