Bazaar is the AI-agent discovery layer built on top of the x402 protocol — a machine-readable catalog that indexes x402-compatible API endpoints (URLs, prices, accepted payment methods, and input/output schemas) so AI agents can autonomously discover, pay for, and consume APIs without manual setup or API keys.
Bazaar is shipped as @x402/extensions and provides:
withBazaar — wraps an x402-protected route with structured metadata describing inputs, outputs, and schema so AI agents can discover and invoke it
bazaarResourceServerExtension — registers the resource server with the Bazaar discovery network
declareDiscoveryExtension / extractDiscoveryInfo — HTTP and MCP extension points for agent-facing discovery
- Discovery endpoints:
https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources (prod) and https://x402.org/facilitator/discovery/resources (testnet)
Current State
@x402/extensions/bazaar is pulled into this repo as a dependency (via @x402/express), but it is not wired up for Stellar. The Dockerfile comments explicitly note: @x402/extensions dynamic import is in a try/catch (bazaar not used).
Upstream Status
Stellar support is fully merged upstream. The x402 protocol repo has moved to x402-foundation/x402 and PR #711 merged the complete @x402/stellar package, including:
ExactStellarScheme for client, server, and facilitator
- Soroban auth-entry signing and SEP-41 token support
- Network identifiers (
stellar:testnet, stellar)
- Fee sponsorship via fee-bump transactions
- Full integration into the
all_networks examples and e2e test suite
This unblocks Bazaar integration for Stellar.
Goal
Wire up Bazaar support in this repo now that @x402/stellar is available upstream — enabling Stellar-backed x402 endpoints to be discoverable and invocable by AI agents through the Bazaar network.
Tasks
Context
The @x402/extensions package lives in the x402-foundation/x402 monorepo. Bazaar listing for Stellar may still require CDP facilitator support for Stellar settlement — this should be validated as part of the work.
Bazaar is the AI-agent discovery layer built on top of the x402 protocol — a machine-readable catalog that indexes x402-compatible API endpoints (URLs, prices, accepted payment methods, and input/output schemas) so AI agents can autonomously discover, pay for, and consume APIs without manual setup or API keys.
Bazaar is shipped as
@x402/extensionsand provides:withBazaar— wraps an x402-protected route with structured metadata describing inputs, outputs, and schema so AI agents can discover and invoke itbazaarResourceServerExtension— registers the resource server with the Bazaar discovery networkdeclareDiscoveryExtension/extractDiscoveryInfo— HTTP and MCP extension points for agent-facing discoveryhttps://api.cdp.coinbase.com/platform/v2/x402/discovery/resources(prod) andhttps://x402.org/facilitator/discovery/resources(testnet)Current State
@x402/extensions/bazaaris pulled into this repo as a dependency (via@x402/express), but it is not wired up for Stellar. TheDockerfilecomments explicitly note:@x402/extensions dynamic import is in a try/catch (bazaar not used).Upstream Status
Stellar support is fully merged upstream. The x402 protocol repo has moved to
x402-foundation/x402and PR #711 merged the complete@x402/stellarpackage, including:ExactStellarSchemefor client, server, and facilitatorstellar:testnet,stellar)all_networksexamples and e2e test suiteThis unblocks Bazaar integration for Stellar.
Goal
Wire up Bazaar support in this repo now that
@x402/stellaris available upstream — enabling Stellar-backed x402 endpoints to be discoverable and invocable by AI agents through the Bazaar network.Tasks
@x402/stellarand latest@x402/extensionsfromx402-foundation/x402@x402/extensionsBazaar API — confirmwithBazaaris payment-network-agnostic (not EVM-coupled)withBazaaron theexamples/simple-paywall/serverStellar routes/discovery/resourcesendpoint from this repo's facilitator, compatible with the Bazaar specDockerfileto remove thebazaar not usedcomment once wiredContext
The
@x402/extensionspackage lives in thex402-foundation/x402monorepo. Bazaar listing for Stellar may still require CDP facilitator support for Stellar settlement — this should be validated as part of the work.