BUILD
Everything the site does is an API. Plug the MCP server into Claude Code, call the inference gateway over x402, or drive the issuer from your own agent.
MCP server
Five tools: register, pay, kill, status, stealth address. Streamable HTTP, no API key.
claude mcp add --transport http meryal https://www.meryalraven.sbs/api/mcp
Inference over x402
OpenAI-compatible. A request without payment gets a 402 quote; the same request with a signed USDG authorization gets the answer.
curl https://www.meryalraven.sbs/api/v1/models
curl -X POST https://www.meryalraven.sbs/api/v1/chat/completions \
-H "content-type: application/json" \
-d '{"model":"meryal/sandbox","messages":[{"role":"user","content":"hi"}]}'Live contracts
Addresses and events, read straight from the chain.
curl "https://www.meryalraven.sbs/api/live?what=config"
import { Meryal } from "@meryal/rx402"; // The issuer holds the pool seed and every session key. // The agent holds one token, and the caps run off its machine. const meryal = new Meryal({ issuer: "https://www.meryalraven.sbs/api/issuer", token: process.env.MERYAL_TOKEN! }); // Looks like fetch. On a 402 the issuer opens or rotates a session, // signs a USDG payment from a fresh address and retries. const r = await meryal.fetch("https://api.prices.example/quote?nvda"); console.log(await r.json()); // Stealth merchants are paid at a one-time address, automatically. // Turn it off with { stealth: false }.