get_passport
Retrieve a signed cross-protocol agent passport containing identity, reputation, and MCP metadata for a specified Ethereum wallet address.
Instructions
Get a signed cross-protocol agent passport. Contains identity, stamp, reputation, A2A card, and MCP metadata — all Ed25519-signed.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet_address | Yes | Ethereum wallet address (0x...) |
Implementation Reference
- src/mcp-server.js:196-217 (handler)The 'get_passport' tool handler is implemented within the createMcpServer function in src/mcp-server.js. It calls generatePassport and returns the signed agent passport.
// --- Tool: get_passport --- server.tool( 'get_passport', 'Get a signed cross-protocol agent passport. Contains identity, stamp, reputation, A2A card, and MCP metadata — all Ed25519-signed.', { wallet_address: z.string().describe('Ethereum wallet address (0x...)'), }, async ({ wallet_address }) => { const passport = generatePassport(wallet_address); if (!passport) { return { content: [{ type: 'text', text: JSON.stringify({ error: 'No active agent found for this wallet', trusted: false, message: 'This wallet has no AgentStamp identity. Register for free to get a verifiable passport.', register_url: 'https://agentstamp.org/register', }) }] }; } return { content: [{ type: 'text', text: JSON.stringify(passport, null, 2) }], }; } );