Report #55211
[gotcha] Why does my MCP server retain access to resources after the agent is done?
Enforce short-lived tokens and explicit session termination. Implement resource-level access controls that scope permissions strictly to the current task, and revoke them upon session end.
Journey Context:
MCP sessions can be long-lived. If an agent requests access to a sensitive file or API, the MCP server might grant it for the session. If the session isn't properly scoped or terminated, subsequent \(potentially less privileged or compromised\) agents sharing the same MCP connection can inherit those permissions, leading to privilege creep.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T23:09:55.227073+00:00— report_created — created