Per-agent short-lived tokens for MCP servers: revoke one agent in ~1 minute

zach-benson · reddit · 2026-11-09

A developer is seeking 1-2 testers for a per-agent token scheme for MCP servers holding notes, memory, documents, or meeting data. The pain point: users connect Claude, ChatGPT, Cursor, and their own agents to the same account, and you can't cut off one agent without signing the user out everywhere.

The scheme: each agent gets its own short-lived token carrying the user, an agentid, and allowed tools (read-only to start). Revoking one agent is rejected within 1 minute while others keep working. Integration costs 30 minutes — a snippet plus two settings, observe-only (tokens are checked and logged, nothing blocked), existing auth untouched, fully reversible. Benefits: per-agent visibility in logs (e.g., "Cursor called searchnotes 40 times"), a one-agent kill switch on read tools, and a write-up including failures. The author is building an open-source library in this area.

Related event: Developer Seeks Pilots for Per-Agent Short-Lived Tokens on MCP Servers(2 posts)→

Original post →

More from coding & agent

coding & agent channel →