mcp-is-optional-dependency
IN premise
The `mcp` package is guarded by try/except at import time; `_require_mcp()` defers the `ImportError` to `McpBridge` construction so the module can be imported unconditionally without the SDK installed.
Summary
The MCP integration is designed so that the SDK doesn't need to be installed for the rest of the system to work. The import is wrapped in a try/except so the module loads fine without the dependency, and the actual error only surfaces if someone tries to create an McpBridge instance without the SDK present.
Details
| Source | entries/2026/05/11/reasons_lib-mcp_client.md |