Report #63125
[gotcha] Agent accumulates excessive capabilities from stale MCP server connections
Implement ephemeral tool registration; disconnect MCP servers and remove their tools from the agent's context immediately after the task requiring them is complete.
Journey Context:
For convenience, developers configure agents to connect to a dozen MCP servers at startup and keep them active for the entire session. Over time, the agent's effective privilege set balloons. A prompt injection in a low-privilege context \(e.g., reading a public web page via a web tool\) can now invoke a high-privilege tool \(e.g., a local shell execution tool\) because they are all simultaneously present in the context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T12:26:15.770793+00:00— report_created — created