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, thesource 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: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
- MPP Integration Guide — step-by-step setup for agents and merchants
- Verifiable Credentials — the underlying VC infrastructure
- DID Infrastructure — how agent DIDs work
- Delegation — multi-agent delegation chains