SDK & Tools
SDK overview
Client and server SDKs, CLI, MCP server, and verifiable receipts.
One toolkit for both sides of a machine payment: agents that pay for endpoints, and builders that charge for them. TypeScript-first, x402-compatible, non-custodial end to end.
The public SDKs live in their own repositories: mpp-client and mpp-server.
What's available
| Tool | Status | What it does |
|---|---|---|
mpp-client | Available | Pay any MPP or x402 endpoint with one fetch call. Catches the 402 challenge, signs the stablecoin authorization, and retries: the wallet only ever needs USDG or USDC. |
mpp-server | Available | Charge for your own routes. Wrap a handler with a price and a recipient wallet and it speaks HTTP 402: challenges, verification, and on-chain settlement handled for you. |
| MCP server | In progress | Let agents discover and pay merchants natively from Claude and other MCP hosts: browse the marketplace, price a call, and settle in USDG without leaving the conversation. |
| CLI | Planned | Scaffold, test, and publish merchants from the terminal: create a product, hit your own 402 endpoint with a test wallet, ship to the marketplace in one command. |
| Receipts API | Planned | Signed payment receipts that third parties can verify: prove an agent paid for a request, reconcile revenue, build reputation on top of settlement history. |
| More networks | Planned | The same client, more rails: additional settlement networks and stablecoins beyond USDG on Robinhood Chain and USDC on Base, with no code changes on either side. |
Pay any endpoint · today
import { createClient } from "@meshgateway/mpp-client";
const mpp = createClient({ signer, maxAmount: "0.10" });
const res = await mpp.fetch("https://api.meshgateway.co/m/acme/v1/quote");
// 402 caught, authorization signed, request retried: done.