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.1.tar.gz (76.5 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.1-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: x402_conformance_suite-0.4.1.tar.gz
  • Upload date:
  • Size: 76.5 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.1.tar.gz
Algorithm Hash digest
SHA256 f82461cdd76c617076925139b53cfaf39ff1a4b30cb80307bef0d6b5ca17c3bb
MD5 17dcb369ae16e40777e7c1e414b932c6
BLAKE2b-256 ef85a60f8ed178ed18d19c1512a72e97a3e2d77f3fd786cbd9346022bcd0be08

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for x402_conformance_suite-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 de1f7407630edc1fb90963b24dd42a2e42f868e7fa382e8862bc1ea711d29add
MD5 2ba6d0cd03e9ecd97f625e1b0ce69cb0
BLAKE2b-256 8467f11e74f58805e606c6c51e121b9c4f35b28c79080f2d278a47adf5712da6

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