@ovra/mpp plugs Ovra in as the wallet on the agent side (or the verifier on the service side).
What is MPP?
The Machine Payments Protocol is an open standard for machine-to-machine payments. When a service wants to be paid before it returns data, it can respond with HTTP 402 Payment Required and a structured challenge (amount, currency, recipient, supported methods, and so on). Your agent does not need to hand-parse every header by hand: an MPP client (built withmppx) retries the request, satisfies the challenge with a credential, and continues once the service is satisfied. Ovra’s charge method is one such payment method — but the protocol is bigger than any single provider.
How Ovra + MPP work together
Here is the happy path when a service accepts Ovra and returns a 402: The agent code stays high level: fetch the URL. The stack turns 402 responses into intents, credentials, and settled transactions behind the scenes.Quick start (agent / client)
Install@ovra/mpp and the mppx peer dependency, then wrap fetch with an MPP-aware client:
For service providers
If you operate the API and want to accept Ovra over MPP, use the server entry point. You still configure the Ovracharge method, but verification and settlement run on your side when a client presents a credential:
