Bug Report: Unsupported mcp==2.x module 'streamablehttp_client'

Author: sathishswCreated Aug 12, 2026Updated Sep 24, 2026

Which component is this bug for?

Traceloop SDK

Description

https://github.com/traceloop/openllmetry/blob/main/packages/opentelemetry-instrumentation-mcp/opentelemetry/instrumentation/mcp/instrumentation.py

python
register_post_import_hook(
            lambda _: wrap_function_wrapper(
                "mcp.client.streamable_http",
                "streamablehttp_client",
                self._transport_wrapper(tracer),
            ),
            "mcp.client.streamable_http",
        )

The mcp.client.streamable_http module is removed from mcp-sdk 2.x

With mcp==2.0.0 version, the traceloop fail to bootstrap with error

Error initializing MCP instrumentor: module 'mcp.client.streamable_http' has no attribute 'streamablehttp_client'

Reproduction steps

mcp>=2.0.0 Traceloop==0.62.3 opentelemetry-api==1.44.0 opentelemetry-sdk==1.44.0

Start mcp server

Expected behavior

Start stable with instrumentation enabled

Actual Behavior with Screenshots

Error initializing MCP instrumentor: module 'mcp.client.streamable_http' has no attribute 'streamablehttp_client'

Python Version

3.12

Provide any additional context for the Bug.

No response

Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find similar issue

Are you willing to submit PR?

Yes I am willing to submit a PR!