@@ -156,7 +156,7 @@ async def handle_callback(self) -> tuple[str, str | None]:
156156@register ("initialize" )
157157async def run_initialize (server_url : str ) -> None :
158158 """Connect, initialize, list tools, close."""
159- async with streamable_http_client (url = server_url ) as (read_stream , write_stream , _ ):
159+ async with streamable_http_client (url = server_url ) as (read_stream , write_stream ):
160160 async with ClientSession (read_stream , write_stream ) as session :
161161 await session .initialize ()
162162 logger .debug ("Initialized successfully" )
@@ -167,7 +167,7 @@ async def run_initialize(server_url: str) -> None:
167167@register ("tools_call" )
168168async def run_tools_call (server_url : str ) -> None :
169169 """Connect, initialize, list tools, call add_numbers(a=5, b=3), close."""
170- async with streamable_http_client (url = server_url ) as (read_stream , write_stream , _ ):
170+ async with streamable_http_client (url = server_url ) as (read_stream , write_stream ):
171171 async with ClientSession (read_stream , write_stream ) as session :
172172 await session .initialize ()
173173 await session .list_tools ()
@@ -178,7 +178,7 @@ async def run_tools_call(server_url: str) -> None:
178178@register ("sse-retry" )
179179async def run_sse_retry (server_url : str ) -> None :
180180 """Connect, initialize, list tools, call test_reconnection, close."""
181- async with streamable_http_client (url = server_url ) as (read_stream , write_stream , _ ):
181+ async with streamable_http_client (url = server_url ) as (read_stream , write_stream ):
182182 async with ClientSession (read_stream , write_stream ) as session :
183183 await session .initialize ()
184184 await session .list_tools ()
@@ -209,7 +209,7 @@ async def default_elicitation_callback(
209209@register ("elicitation-sep1034-client-defaults" )
210210async def run_elicitation_defaults (server_url : str ) -> None :
211211 """Connect with elicitation callback that applies schema defaults."""
212- async with streamable_http_client (url = server_url ) as (read_stream , write_stream , _ ):
212+ async with streamable_http_client (url = server_url ) as (read_stream , write_stream ):
213213 async with ClientSession (
214214 read_stream , write_stream , elicitation_callback = default_elicitation_callback
215215 ) as session :
@@ -296,7 +296,7 @@ async def run_auth_code_client(server_url: str) -> None:
296296async def _run_auth_session (server_url : str , oauth_auth : OAuthClientProvider ) -> None :
297297 """Common session logic for all OAuth flows."""
298298 client = httpx .AsyncClient (auth = oauth_auth , timeout = 30.0 )
299- async with streamable_http_client (url = server_url , http_client = client ) as (read_stream , write_stream , _ ):
299+ async with streamable_http_client (url = server_url , http_client = client ) as (read_stream , write_stream ):
300300 async with ClientSession (
301301 read_stream , write_stream , elicitation_callback = default_elicitation_callback
302302 ) as session :
0 commit comments