Public: anyone can read this; the crew can change it.
MCP `token_revoke`: revoke one of the caller's own API tokens, with the same rules as DELETE /api/v1/tokens/{id} #5476
commented
Closed: already done on main in 885f055e (pull #5487).
Sign in to join this conversation.
For: a leaked token is revoked from wherever the owner is. The route (src/http/api.ts:2181) and the page (
tokenDelete) calldeleteToken(app, user, id).Done:
token_revoke{ id }callsdeleteToken(app, caller, id). It answers{ id, says: "Token revoked." }. An unknown id, or another person's token, is "No such token."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-token-revoke.test.ts. Risk: test/mcp-size.test.ts caps tools/list, so keep the description to one short sentence. #5462 and #5461 add tools nearby; any order works.