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
- Header budget. Fail when the
PAYMENT-REQUIREDline, 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. - CORS expose. On HTTP 402, or when
PAYMENT-REQUIREDis present,Access-Control-Expose-Headersmust namePAYMENT-REQUIREDandPAYMENT-RESPONSE. A value of*does not pass. Spec: https://raw.githubusercontent.com/x402-foundation/x402/main/specs/transports-v2/http.md - Tag cap.
resource.tagsallows at most 5 entries. Spec: https://raw.githubusercontent.com/x402-foundation/x402/main/specs/extensions/bazaar.md - 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:
