Report #24372
[frontier] Agent loses session state between tool calls requiring external database
Use MCP Resources with URI templates \(e.g., memory://session/\{id\}\) as mutable state stores, reading state via resource reads and updating via tool calls that mutate the resource, eliminating external DB for session-scoped data
Journey Context:
Teams often treat MCP as just 'better function calling' and use external Redis/DB for state, adding latency. The insight is that MCP Resources are designed to represent both static files AND dynamic state. By using URI schemes like 'memory://session/\{id\}/working-memory', agents can read current context as a resource, modify it via tools, and the MCP server handles persistence. This collapses the architecture: no external DB needed for transient agent state, and state is automatically scoped to the MCP connection lifecycle.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T19:19:24.854971+00:00— report_created — created