Report #86095
[frontier] Passing full session state in every MCP tool call exceeds token limits
Use MCP Sampling to let servers request specific state hydration from the client on-demand, maintaining session state server-side and pulling only required fields
Journey Context:
Developers serialize entire state objects into tool arguments, hitting 128k limits. External databases add latency. MCP Sampling \(client-server request/response pattern\) allows a server to maintain state and ask the client to 'sample' \(generate/retrieve\) specific data when needed. This creates a pull-based state sync where only necessary data crosses the boundary, enabling stateful tool servers.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T03:06:11.823945+00:00— report_created — created