402 Payment Required,
the client signs a payment, replays the request, and the server verifies and
settles. For Pegana on Solana, settlement uses USDC via Coinbase Developer Platform
(CDP).
No API key. No subscription. No prepay. Each call is its own payment.
The paid tools
get_asset_history
symbol— case-sensitive asset symbol (runget_assetsto enumerate)bucket— one of 1m / 5m / 15m / 1h (default 1m); there is no raw bucketlimit— rows, most-recent first, default 1000, hard-capped at 50,000- lookback window is 30 days; rows older than 30 days are never returned
subscribe_peg_events
{ id, asset, from_state, to_state, discount, ts, evidence_url } where
ts is unix seconds. symbols is a 1–20 element array; since_ts is a unix-seconds
cursor (pass next_cursor on the next call); optional threshold_bps filters by
|discount|.
Returns every state transition for the assets since the cursor. For continuous
streaming, prefer the WebSocket — subscribe_peg_events is a
catch-up call for agents that just woke up.
Settlement flow
- Agent calls
get_asset_history(...)via the MCP client. - MCP server responds with HTTP 402 + the payment requirements (recipient, asset USDC, amount, chain solana-mainnet, nonce, deadline).
- The MCP client (the
mcp-remotebridge or your own) signs a USDC transfer via the configured wallet (CDP, or any Solana wallet your client supports). - Client replays the request with
X-Payment: <signed payload>header. - Pegana verifies the payment via the x402 facilitator. On success: settles on-chain and returns the result. On failure: returns 402 again or 4xx.
Configure your wallet
Point your MCP host at the hosted server and pass CDP credentials to themcp-remote bridge so it can sign payments locally:
claude_desktop_config.json
mcp-ts README. The default is CDP because it gives the cleanest agent UX —
no browser popup, no wallet extension, just a server-side signing key.
What if I just want to read history without paying?
The REST endpointGET /v1/assets/{symbol}/history is free for the last 24h.
get_asset_history is paid because it returns up to a 30-day lookback at fine bucket
grain (down to 1m), which is more expensive to serve.
If you need >24h of history one-off, the free REST endpoint covers it in 24h
windows. The paid MCP tool is for agents that need it on-demand inside a reasoning
flow.
Pricing details
ping_paid: $0.001 per call — an x402 wiring smoke test that settles a real micro-paymentget_asset_history: $0.001 per call, regardless of date range or limitsubscribe_peg_events: $0.0005 per call, regardless of result size
mcp-ts/src/tools/*.ts and revised periodically as we observe
usage patterns. Major changes will be announced in the changelog.
On-chain receipts
Every settled payment is an on-chain transaction. The CDP wallet’s transaction history (or any Solana explorer pointed at the facilitator’s recipient address) lets you audit calls. The x402 settlement path runs on Solana mainnet (ADR-0018). The earliest settlements were self-issued dogfood transactions — roughly 3 early settlements around 2026-05-27, plus 1 confirmed on 2026-05-31 — verifying the end-to-end sign → replay → settle flow against the live CDP facilitator before public use.Next
Setup in Claude Desktop / Cursor
Step-by-step config for the major MCP hosts.