MCP/AI Integration
The Wallet Server's holder API is a good fit for AI agents that need to act as a credential holder. Every operation is a plain, synchronous HTTP call, so it can be exposed as tools in a Model Context Protocol (MCP) server or any other agent framework:
Create a holder wallet —
POST /agent/holder(choosedid:keyordid:web)Process a URI —
POST /holders/:holderId/processclaims a credential offer or answers a presentation request from QR-code contentList stored credentials —
GET /holders/:holderId/credentialsandGET /holders/:holderId/credentials/decoded
Typical Agent Tasks
"Create a holder wallet and tell me its DID."
"Process this credential-offer URI and confirm the credential was stored."
"Scan the verifier QR and present the matching credential."
Setup Notes for Agents
Authenticate with
Authorization: Bearer <JWT>; the token'ssubidentifies the agent/user and scopes holder ownershipKeep tokens short-lived; refresh as needed
Point agents to Swagger UI at
/api-docsor the OpenAPI JSON at/api-docs-jsonto discover operations
Local Development
For local development set AUTH_DISABLED=true; every request is then treated as an authenticated admin, so no token is needed. Never enable this outside local development.
Last updated