Cloudflare Agents / Vercel x402-mcp
Cloudflare agents/x402 and Vercel x402-mcp can wrap BRAINIAC MCP servers or HTTP routes.
Verification: Per framework docs, not yet verified end to end with BRAINIAC on 20 Nov 2026.
Install
Use agents/x402 on Cloudflare or x402-mcp with the Vercel AI SDK per their docs.
Wallet and budget
Store the payer key in platform secrets. Cap spend per tool call.
Minimal paid call
Connect an MCP server URL under /mcp/{group} or call a REST path with the x402 client.
Discover
Use /.well-known/mcp and product llms.txt files for tool lists.
Errors
Unpaid tool calls return payment terms in the tool result and do not run.
Idempotency
Optional 64-hex Idempotency-Key on HTTP; MCP tool retries should reuse the same payment meta.