---
name: mpp
description: Support MPP (Machine Payment Protocol) for agent payments
---

# MPP — Machine Payment Protocol

Publish payable operations via OpenAPI `x-payment-info` extensions.

## Requirements

- Publish an OpenAPI document at `/openapi.json`
- Annotate payable operations with `x-payment-info`:
  - `intent` — `charge` or `session`
  - `method` — `tempo`, `stripe`, `lightning`, `card`
  - `amount`, `currency`
- Use the MPP SDK middleware (`mppx` for TypeScript, `pympp` for Python)

## Example

```yaml
paths:
  /generate:
    post:
      x-payment-info:
        intent: charge
        method: stripe
        amount: 5
        currency: USD
```

## References

- [Payment Discovery draft](https://paymentauth.org/draft-payment-discovery-00.txt) (spec)
- [mpp.dev](https://mpp.dev) (proposal site)
