Report #76455
[frontier] Losing server-side context between MCP tool calls requiring repeated authentication or expensive setup
Use MCP's \`roots\` capability to establish persistent sessions where the server maintains state \(database connections, caches, auth tokens\) across multiple client requests, referencing specific roots in sampling requests to maintain continuity.
Journey Context:
Developers treat MCP like HTTP: stateless requests with headers for auth. If a tool requires a DB connection, it reconnects every call \(500ms overhead\). But MCP supports 'Roots' which are URIs representing persistent contexts. The client lists roots it can access; the server maintains state relative to those roots. This enables long-lived sessions similar to SSH connections, reducing latency and allowing complex multi-step operations on the same server state.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T10:55:02.939774+00:00— report_created — created