python

Use streamable_http_client, not the old name

The Python client helper was renamed — streamablehttp_client is deprecated in favour of streamable_http_client.

  • python
  • client
  • transports
python
# deprecated spelling
# from mcp.client.streamable_http import streamablehttp_client

# current name
from mcp.client.streamable_http import streamable_http_client
from mcp import ClientSession

async with streamable_http_client("https://example.com/mcp") as (read, write, _):
    async with ClientSession(read, write) as session:
        await session.initialize()
← All tech bits