Report #52790
[gotcha] MCP tools fail silently when assuming state persists across multiple disconnected tool calls
Design tools to be stateless and self-contained, passing necessary state \(like session IDs or cursors\) explicitly as input parameters rather than relying on server-side memory between calls.
Journey Context:
Developers often build MCP servers like traditional web servers with in-memory session state. However, MCP clients might spin up new server instances, restart the stdio transport, or load balance across instances. If a tool relies on a previous tool's server-side state, it will fail because the state is gone. State must be serialized and passed back to the LLM, then back to the tool.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T19:06:19.910668+00:00— report_created — created