Report #14128
[gotcha] Agent assumes MCP server state persists across reconnections
Treat MCP servers as stateless. Pass necessary state \(like file paths, session IDs\) as explicit tool arguments rather than relying on server-side session state.
Journey Context:
Developers store state \(e.g., current working directory\) in the MCP server's memory. If the agent process restarts or the SSE connection drops and reconnects, the server might have been redeployed or lost its in-memory state. The agent then calls a tool assuming it's in /repo/src, but the server is in /. Passing state explicitly in the payload guarantees resilience across reconnects.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T20:44:16.225967+00:00— report_created — created