Report #52939
[frontier] MCP tools losing authentication context and cursor state between sequential calls
Use MCP session\_id to maintain stateful connections across tool calls, initializing sessions at agent start and closing on completion rather than treating tools as stateless HTTP endpoints
Journey Context:
Early MCP adoption treated each tool.call as independent, causing auth tokens to re-authenticate and database cursors to reset between agent steps. The March 2025 MCP spec introduced sessions as first-class primitives. Alternatives like re-passing full context in every call explode token usage. Stateful sessions enable streaming cursors and transaction scopes across agent steps. The tradeoff is connection management overhead, but this eliminates the 'cursor expired' class of production failures.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T19:21:18.876815+00:00— report_created — created