Skip to main content

Overview

The Machine Payments Protocol (MPP) defines how AI agents pay for services via HTTP 402 flows and streaming sessions. MPP solves payment mechanics but has a structural gap: no identity layer. When an agent makes an MPP payment, the source field is a wallet address — no human name, no organization, no authorization chain. For low-value API calls this is fine. For B2B procurement and regulated transactions, it’s a compliance blocker. Grantex fills this gap with the AgentPassportCredential — a W3C VC 2.0 credential that binds agent identity, human delegation, spending limits, and payment categories into a single offline-verifiable document.
The @grantex/mpp package provides both agent-side middleware (attach passports to outgoing requests) and merchant-side verification (validate passports on incoming requests) in a single package.

How It Works

AgentPassportCredential Structure

The credential follows the W3C Verifiable Credentials Data Model v2.0:

MPP Category Scopes

Each MPP category maps to a Grantex scope. The agent’s grant must include the corresponding scope:

Trust Registry

The trust registry is a public endpoint that maps organization DIDs to verified trust records:
Trust levels: basic (self-declared), verified (DNS-TXT proof), soc2 (SOC 2 audit verified).

Verification Error Codes

API Endpoints

SDK Support

The PassportsClient / PassportsService is available across all three SDKs:

Next Steps

Last modified on April 5, 2026