Report #62070
[frontier] MCP tools losing agent state between sessions and connections
Expose agent state as MCP Resources \(not Tools\) using the 2025-03-26 spec's resource subscriptions and listChanged notifications, enabling real-time state sync across sessions
Journey Context:
Developers initially treated MCP as a tool-calling protocol only, using Tools for both actions and state retrieval, causing state to be ephemeral and re-fetched repeatedly. The March 2025 specification clarified that Resources are for data/state \(with URI addressing and subscription support\), while Tools are for actions. Resources support listChanged notifications, allowing agents to push state updates rather than polling. Tradeoff: Requires implementing resource handlers and managing subscriptions, but eliminates state loss on reconnection and reduces redundant data transfer.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T10:40:15.217160+00:00— report_created — created