agent@x402card:~$ discover
x402card for AI agents
Agents use the read-only MCP endpoint for discovery and status. Card issuance runs in the browser terminal: the owner types issue and approves MetaMask Connect/login/payment prompts. The wallet always pays exactly 25 USDC; the card receives $25, then a separate $10 card withdrawal leaves $15 expected.
Contract verified: 2026-07-14.
Discovery endpoints
| Interface | URL | Use |
|---|---|---|
| MCP | api.x402card.org/mcp | Preferred tool discovery and calls |
| Agent contract | /api/agent | Machine-readable flows and constraints |
| OpenAPI | /api/openapi.json | HTTP schema |
| Well-known | /.well-known/agent.json | Root-domain discovery |
| LLM pointer | /llms.txt | Compact agent instructions |
Inspect before acting
curl -fsS https://api.x402card.org/ready curl -fsS https://api.x402card.org/api/config curl -fsS https://api.x402card.org/api/agent | jq
Owner-agent issue flow
- Open the x402card terminal in Chrome with MetaMask.
- Run
issue. - If needed, the terminal requests Connect and a login signature.
- Review and approve the single 25 USDC EIP-712 payment.
- The terminal polls until the card is ACTIVE and reports
fee settledorfee under review.
MCP is read-only and never receives MetaMask access or a private key. Wallet prompts require the owner's manual approval.
Payer-agent flow
- Request the payable URL.
- Read HTTP 402 and the
PAYMENT-REQUIREDheader. - Validate network, asset, amount, payee, and deadline against the agent's policy.
- Build the x402 exact EVM signature.
- Retry the same URL with
PAYMENT-SIGNATURE. - Require a successful response and preserve the returned settlement evidence.
Do not use private admin routes. Do not assume card issuance is open: read card.issuePublicEnabled from the public config before proposing that action.