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.4.0.tar.gz (73.1 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.4.0-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: x402_conformance_suite-0.4.0.tar.gz
  • Upload date:
  • Size: 73.1 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.4.0.tar.gz
Algorithm Hash digest
SHA256 c7d0ac68ec2b18ca028eb88873d9afee8ef2cc4a9b981c7f4c19b3811f8cd220
MD5 40a10451b9ba883d93314f623dfbc9d9
BLAKE2b-256 cf188693c4073ce53b2ce40a8cd4bbe13c15890045d09b1ecc2fcc766af18d2f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for x402_conformance_suite-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0deeb6fa779ef736a494d1c7a6aa49b218855f8c210cc799396e3732235b16d0
MD5 fa1d77e9ef325f01f713eff2e1f0606e
BLAKE2b-256 97e9352f2039ac2a4505590c14959cccc3cef05737359b51b24a5b732d60cba0

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