Report #95922
[frontier] MCP implemented as stateless RPC losing session context between client and server
Adopt MCP's bidirectional primitives \(Roots for client→server context, Sampling for server→client LLM requests\) to maintain stateful sessions, treating MCP as a state synchronization layer rather than a tool bridge
Journey Context:
Teams initially treat MCP as a REST replacement for tool calls, but hit walls when the server needs to understand the client's working directory \(roots\) or when the server needs to prompt the user's LLM \(sampling\). These are not edge cases but core to the spec. Implementing this requires maintaining session state on both sides and handling lifecycle notifications, moving from RPC to a stateful session layer. The alternative—polling for state—introduces race conditions and latency.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T19:35:19.482208+00:00— report_created — created