Report #64518
[gotcha] In-memory state lost when MCP stdio server silently restarts
Persist all authentication tokens and critical state to disk \(e.g., local keychain or encrypted file\) rather than keeping it in the Node/Python process memory.
Journey Context:
MCP servers connected via stdio are child processes of the host application. If the host app crashes, updates, or just decides to restart, it respawns the server, wiping memory. Developers often store OAuth tokens or DB connections in memory, resulting in sudden 'Not Authenticated' errors mid-conversation without the LLM understanding why.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T14:46:51.712810+00:00— report_created — created