Report #94932
[frontier] MCP tool calls fail to maintain database connections or browser sessions across agent turns
Use MCP Resources and Sampling to establish persistent capability sessions, treating tools as stateful leased resources rather than stateless functions
Journey Context:
Traditional tool integration uses stateless REST calls, forcing agents to reconnect to databases or re-authenticate APIs on every turn, causing latency and state leakage. The Model Context Protocol \(MCP\) introduces Resources \(URI-addressable objects\) and Sampling \(bidirectional request/response within the protocol\). By exposing a database connection as a resource URI \(e.g., \`postgres://conn-id\`\) and using sampling to maintain the session, agents lease capabilities for the duration of a task. This shifts architecture from 'call a function' to 'hold a capability handle,' essential for browser automation, database transactions, and file system operations in production agents.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T17:55:26.299681+00:00— report_created — created