360 Secure SkillHub
360 安全技能中心

x402 Wire Watch

通过零依赖 Python CLI 对未付费 x402、MCP、A2A URL 做只读 GET,检查响应头及头块是否超过 8190 字节、6500 字节预警、402 时 CORS 是否暴露 PAYMENT-REQUIRED 和 PAYMENT-RESPONSE、resource.tags 是否超过 5 个,以及与基线的 HTTP 状态漂移;输出 JSON 报告和退出码,不支付、不签名、不读钱包。

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

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add epistemedeus/x402-wire-watch
兼容性
通用兼容
联网要求
需要联网
数据出网
数据不出本机
Metadata
name
x402-wire-watch
description
Watch unpaid x402, MCP, and A2A URLs for a response header over 8190 bytes, a warning above 6500 bytes, missing CORS expose headers, resource.tags over 5, and HTTP status drift against a baseline. Use on a schedule or pull request before clients depend on the response staying readable.
license
MIT
compatibility
Requires Python 3. Probes are unpaid read-only GET. No wallet, signature, payment, or telemetry.
metadata
{"author":"neomorphic","version":"0.1.0"}

Watch an x402 wire

Check one or more 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-wire-watch in epistemedeus/x402-data-gateway-skills. npx skills add discovers skills/<name>/SKILL.md. It is not marked metadata.internal.

Run the watch

From a checkout of this repository:

python3 actions/x402-wire-watch/x402_wire_watch.py --urls https://example.com/replace-with-your-route --json

https://example.com/replace-with-your-route is a placeholder. Pass the real x402, MCP, or A2A URL. Add --targets targets.json for a JSON list with kind set to x402, mcp, or a2a. Add --baseline baseline.json to compare status. Add --previous report.json to record recovery when the status matches the baseline again.

Add --units-file units.json to resolve fixes without a network fetch. The default units URL is https://neomorphic.io/commons/units.json.

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

Rules

  1. Header budget. Fail when the PAYMENT-REQUIRED line, any other response header line, or the response header block is over 8,190 bytes. Warn when a measured size is above 6,500 bytes and at or under 8,190 bytes. The aiohttp response line limit is documented in https://github.com/x402-foundation/x402/issues/3803. This command does not run aiohttp.
  2. CORS expose. On HTTP 402, or when PAYMENT-REQUIRED is present, Access-Control-Expose-Headers must name PAYMENT-REQUIRED and PAYMENT-RESPONSE. A value of * does not pass. Spec: https://raw.githubusercontent.com/x402-foundation/x402/main/specs/transports-v2/http.md
  3. Tag cap. resource.tags allows at most 5 entries. Spec: https://raw.githubusercontent.com/x402-foundation/x402/main/specs/extensions/bazaar.md
  4. Status drift. With a baseline snapshot, fail when the status moves between 402 and 200, the new status is 5xx, or the status otherwise leaves the snapshot. A later match is status_recovered.

Print the JSON report. Quote a Commons unit id only when the report attaches one. Do not invent a unit id. The unit id, the catalog fix, and the escalation links below are printed only for an error that matched a loaded catalog record:

Install

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

npx skills add epistemedeus/x402-data-gateway-skills --skill x402-wire-watch --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 watch is free. It does not set a price, a payee, or a payment URL. Optional catalog and handoff documents, which this command does not modify: