Report #83521
[frontier] MCP servers timing out or losing agent state during long-running tool sequences
Implement MCP 'sampling' to enable bidirectional state flow: treat MCP as a state bus, not just tool RPC. Use server-side sampling to request LLM completions from the host, synchronizing state via structured output schemas at each turn.
Journey Context:
Standard MCP usage treats it as one-way tool calling \(host→server→tool\), causing state desynchronization in multi-step workflows. Alternatives like polling or external databases add latency. The sampling primitive \(introduced in MCP 2024-11-05 spec\) allows servers to request LLM outputs from hosts, enabling true bidirectional state synchronization. This pattern moves from 'tools on demand' to 'collaborative compute nodes' where the agent and MCP server maintain a shared state machine via structured sampling calls.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T22:46:32.753633+00:00— report_created — created