@@ -2127,12 +2127,12 @@ Run from the repository root:
21272127import asyncio
21282128
21292129from mcp import ClientSession
2130- from mcp.client.streamable_http import streamablehttp_client
2130+ from mcp.client.streamable_http import streamable_http_client
21312131
21322132
21332133async def main ():
21342134 # Connect to a streamable HTTP server
2135- async with streamablehttp_client (" http://localhost:8000/mcp" ) as (
2135+ async with streamable_http_client (" http://localhost:8000/mcp" ) as (
21362136 read_stream,
21372137 write_stream,
21382138 _,
@@ -2260,7 +2260,7 @@ from pydantic import AnyUrl
22602260
22612261from mcp import ClientSession
22622262from mcp.client.auth import OAuthClientProvider, TokenStorage
2263- from mcp.client.streamable_http import streamablehttp_client
2263+ from mcp.client.streamable_http import streamable_http_client
22642264from mcp.shared.auth import OAuthClientInformationFull, OAuthClientMetadata, OAuthToken
22652265
22662266
@@ -2314,7 +2314,7 @@ async def main():
23142314 callback_handler = handle_callback,
23152315 )
23162316
2317- async with streamablehttp_client (" http://localhost:8001/mcp" , auth = oauth_auth) as (read, write, _):
2317+ async with streamable_http_client (" http://localhost:8001/mcp" , auth = oauth_auth) as (read, write, _):
23182318 async with ClientSession(read, write) as session:
23192319 await session.initialize()
23202320
0 commit comments