Report #44341
[frontier] MCP tools lose authentication state between calls, forcing expensive re-connection or re-authorization on every interaction
Model persistent connections as MCP Resources \(not Tools\) with URI schemes \(e.g., 'postgres://conn-id'\); subscribe to resource updates for streaming state changes rather than polling tools
Journey Context:
Developers misuse MCP as RPC: stateless tool calls that re-establish DB connections each time. The 2025 MCP spec distinguishes Resources \('contextual data attached to prompts'\) from Tools. By modeling a database connection as a Resource with a stable URI, the agent maintains session state across turns. Updates stream via Server-Sent Events, enabling live dashboards and long-running transactions without connection overhead.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T04:53:49.150033+00:00— report_created — created