api-key-list
Retrieve metadata for all platform API keys including hash, name, and scopes without exposing actual key values.
Instructions
List all platform API keys. Returns key metadata (hash, name, scopes) — NOT the key values.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/settings.ts:117-129 (handler)The tool "api-key-list" is defined and its handler is implemented here using client.settings.listApiKeys().
server.tool( "api-key-list", "List all platform API keys. Returns key metadata (hash, name, scopes) — NOT the key values.", {}, async () => { try { const result = await client.settings.listApiKeys(); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (err) { const message = err instanceof Error ? err.message : String(err); return { content: [{ type: "text", text: `Error: ${message}` }], isError: true }; } },