{"repo":"tempoxyz/mpp-rs","free":true,"listed":false,"github":"https://github.com/tempoxyz/mpp-rs","clone":"git clone https://github.com/tempoxyz/mpp-rs.git","description":"Rust SDK for the Machine Payments Protocol","language":"Rust","stars":89,"topics":["machine-payments","machine-payments-protocol","mpp","payments","tempo","rust","sdk"],"license":"Apache-2.0","category":"auth-billing-email","readme_excerpt":"mpp Rust SDK for the Machine Payments Protocol MPP (the Machine Payments Protocol) is an open standard for machine-to-machine payments, co-authored by Tempo and Stripe. Paying for a resource over HTTP typically requires API keys, billing accounts, or checkout flows set up ahead of time. MPP lets any client, including an AI agent, an app, or a person, pay as part of the HTTP exchange using the native 402 Payment Required response. This crate is the Rust SDK for MPP. It supports developers building either side of a paid HTTP exchange: servers that charge for access with Tempo or Stripe, and clients that automatically handle 402 payment challenges. Typical scenarios include gating an API behind per-call payments or building an agent that pays for tools or data as it works. See the quickstart for server and client patterns. MPP SDKs MPP has official SDKs in multiple languages: Language Repository ---------- ------------ Rust mpp-rs (this repository) Go tempoxyz/mpp-go Python tempoxyz/pympp TypeScript wevm/mppx Ruby stripe/mpp-rb Install Quick Start Server (Tempo) Server (Stripe) Client (Tempo) Client (Stripe) WebSocket WSS (WebSocket Secure) is handled at the connection layer. The transport itself is protocol-agnostic. On the server, terminate TLS via a reverse proxy (nginx, Cloudflare) or use axum-server with rustls. On the client, tokio-tungstenite supports wss:// URLs via its native-tls or rustls features: Feature Flags Feature Description --------- ------------- client Client","default_branch":null,"files":null,"tree":[],"storefront":"/r/tempoxyz","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tempoxyz/mpp-rs/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}