{"record":{"id":"2af17933cadbdc72","repo":"BerriAI/litellm","slug":"streamable-http-client-is-not-available-please-in","errorCode":null,"errorMessage":"streamable_http_client is not available. Please install mcp with HTTP support.","messagePattern":"streamable_http_client is not available\\. Please install mcp with HTTP support\\.","errorType":"exception","errorClass":"ImportError","httpStatus":null,"severity":"error","filePath":"litellm/experimental_mcp_client/client.py","lineNumber":290,"sourceCode":"                args=self.stdio_config.get(\"args\", []),\n                env=self._get_safe_stdio_env(self.stdio_config.get(\"env\")),\n            )\n            return stdio_client(server_params), None\n        if self.transport_type == MCPTransport.sse:\n            headers = self._get_auth_headers()\n            httpx_client_factory = self._create_httpx_client_factory()\n            return (\n                sse_client(\n                    url=self.server_url,\n                    timeout=self.timeout,\n                    headers=headers,\n                    httpx_client_factory=httpx_client_factory,\n                ),\n                None,\n            )\n        # HTTP transport (default)\n        if streamable_http_client is None:\n            raise ImportError(\"streamable_http_client is not available. Please install mcp with HTTP support.\")\n        headers = self._get_auth_headers()\n        httpx_client_factory = self._create_httpx_client_factory()\n        verbose_logger.debug(\"litellm headers for streamable_http_client: %s\", headers)\n        http_client = httpx_client_factory(\n            headers=headers,\n            timeout=httpx.Timeout(self.timeout),\n        )\n        transport_ctx: Final = streamable_http_client(\n            url=self.server_url,\n            http_client=http_client,\n        )\n        return transport_ctx, http_client\n\n    def _get_safe_stdio_env(self, provided_env: dict[str, str] | None) -> dict[str, str] | None:\n        \"\"\"\n        Return a safe environment for the stdio subprocess.\n\n        If provided_env is set, we use it as-is.","sourceCodeStart":272,"sourceCodeEnd":308,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/experimental_mcp_client/client.py#L272-L308","documentation":"The MCP client selected the streamable-HTTP transport but the installed `mcp` package does not expose streamable_http_client, i.e. it lacks HTTP support and must be reinstalled with the appropriate extra.","triggerScenarios":"Thrown at litellm/experimental_mcp_client/client.py:290 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Install the mcp package with HTTP support so streamable_http_client is available.","Update the mcp package to a version that includes the streamable HTTP client."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}