Report #29790
[frontier] MCP server state bleeding between agent turns causing tool call hallucinations
Treat MCP as a stateful session layer with explicit lifecycle management; use \`roots\` for context anchoring and implement server-side session isolation per connection
Journey Context:
Developers treat MCP like stateless HTTP APIs, but the protocol is bidirectional and stateful. The \`initialize\` handshake establishes capability contracts, not just metadata. Reusing the same MCP connection across unrelated tasks without resetting state causes tools to hallucinate context from previous unrelated sessions. The fix is treating each task as a session with explicit roots and capabilities re-initialization.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T04:23:40.021964+00:00— report_created — created