Skip to main content

x402 strict-v2 conformance engine: CLI, MCP server, batch auditor

Project description

x402-conformance-suite

Audit, monitor, and protect endpoints against the x402 strict-v2 standard.

pip install x402-conformance-suite

Quick examples

CLI:

x402-validate https://observer.137-184-67-179.sslip.io

Batch audit:

x402-validate endpoints.txt --output html --parallel 20

MCP server (Claude / Cursor / any MCP client):

echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | x402-mcp

Python:

import asyncio
from x402_conformance_suite._engine import run_audit

async def main():
    report = await run_audit("https://example.com")
    print(report.summary)

asyncio.run(main())

What it checks

Four core checks plus marketplace mode:

Check Purpose
manifest_discovery GET /.well-known/x402 returns a valid JSON manifest
caip2_compliance A payment header carries a valid CAIP-2 network
json_resilience HTTP 402 body is a JSON object, not a primitive
bazaar_compliance The 402 body has a valid extensions.bazaar block

For multi-product catalogs, use mode="marketplace" (see API.md).

Extended tools (separate repo)

Dashboard, API server, Stripe monetization, and proxy middleware: MSSATANASS/x402-conformance-suite-tools

Documentation

License

Apache-2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

x402_conformance_suite-0.5.0.tar.gz (81.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

x402_conformance_suite-0.5.0-py3-none-any.whl (30.9 kB view details)

Uploaded Python 3

File details

Details for the file x402_conformance_suite-0.5.0.tar.gz.

File metadata

  • Download URL: x402_conformance_suite-0.5.0.tar.gz
  • Upload date:
  • Size: 81.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for x402_conformance_suite-0.5.0.tar.gz
Algorithm Hash digest
SHA256 04eeb91463abe4344b60bf1a3855b574787e728cba38451af03be54ce3500982
MD5 7214df5fe2570c2326ab12dde18bb5d1
BLAKE2b-256 bac82bbde5bf90b0d37a8f7f5f22074c4856e54d5c08318e0461fba101d7e872

See more details on using hashes here.

File details

Details for the file x402_conformance_suite-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for x402_conformance_suite-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8226f236d69050bf8c6a9fb566fb1e7785f2e6a7f03bf9437201838b8c49405e
MD5 75e99041150022a0c49716abbadb4234
BLAKE2b-256 310bc36a79517c233f844116ea181ee2f1dcb72e2cddd97df5919811467b7c3b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page