mcp-bridge-runs-dedicated-event-loop-thread
IN premise
Each `McpBridge` instance runs its own asyncio event loop on a daemon thread; the MCP session stays alive until `close()` signals the shutdown event, bridging the sync/async boundary via `run_coroutine_threadsafe`.
Summary
Every MCP connection gets its own background thread running an async event loop, which lets synchronous code talk to the async MCP protocol without blocking. The connection stays open until explicitly closed, so callers can fire off async MCP calls from regular sync code at any time during the bridge's lifetime.
Details
| Source | entries/2026/05/11/reasons_lib-mcp_client.md |