list_credentials
View credential metadata for a wallet including names, types, and expiry dates without exposing sensitive values.
Instructions
List credential metadata for a wallet (names, types, expiry -- never shows values).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet_id | No | Wallet ID. Auto-resolved for single-wallet sessions. |
Implementation Reference
- The handler function that executes the API call to list credential metadata.
async (args) => { const walletId = args.wallet_id || 'default'; const result = await apiClient.get(`/v1/wallets/${walletId}/credentials`); return toToolResult(result); }, ); - packages/mcp/src/tools/list-credentials.ts:13-33 (registration)Registration function that defines the 'list_credentials' tool and its schema.
export function registerListCredentials( server: McpServer, apiClient: ApiClient, walletContext?: WalletContext, ): void { server.tool( 'list_credentials', withWalletPrefix( 'List credential metadata for a wallet (names, types, expiry -- never shows values).', walletContext?.walletName, ), { wallet_id: z.string().optional().describe('Wallet ID. Auto-resolved for single-wallet sessions.'), }, async (args) => { const walletId = args.wallet_id || 'default'; const result = await apiClient.get(`/v1/wallets/${walletId}/credentials`); return toToolResult(result); }, ); }