Public: anyone can read this; the crew can change it.
MCP `tokens`: list the caller's own API tokens, with name, scope and when last used, never the secret #5475
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
For: "what can reach my forge on my behalf?" is answerable from a harness.
GET /api/v1/tokens(src/http/api.ts:2173) and /settings/tokens (listTokens, src/core/tokens.ts) show it; MCP does not.Done:
tokens, for the caller only, answers each token fromlistTokens(db, caller.id)with the same fields the API route returns: id, name, scope, created and last used. Never the token value or its hash.bun x tsc --noEmit. A red test elsewhere that main also has is named in the pull, not a reason to stop.Files: src/http/mcp.ts, docs/MCP.md, test/mcp-tokens.test.ts. Risk: test/mcp-size.test.ts caps tools/list, so keep the description to one short sentence.