@@ -117,7 +117,7 @@ async def list_tools_from_server(workload: dict[str, Any]) -> dict[str, Any]:
117117 }
118118 elif proxy_mode == "streamable-http" or transport_type == "streamable-http" :
119119 # Use streamable HTTP client
120- async with streamablehttp_client (url ) as (read , write , get_session_id ):
120+ async with streamablehttp_client (url ) as (read , write , _ ):
121121 async with ClientSession (read , write ) as session :
122122 await session .initialize ()
123123 tools_response = await session .list_tools ()
@@ -204,7 +204,7 @@ async def get_tool_details_from_server(
204204 "inputSchema" : tool .inputSchema ,
205205 }
206206 elif proxy_mode == "streamable-http" or transport_type == "streamable-http" :
207- async with streamablehttp_client (url ) as (read , write , get_session_id ):
207+ async with streamablehttp_client (url ) as (read , write , _ ):
208208 async with ClientSession (read , write ) as session :
209209 await session .initialize ()
210210 tools_response = await session .list_tools ()
@@ -286,7 +286,7 @@ async def call_tool(
286286 result = await session .call_tool (tool_name , arguments = arguments )
287287 return result
288288 elif proxy_mode == "streamable-http" or transport_type == "streamable-http" :
289- async with streamablehttp_client (url ) as (read , write , get_session_id ):
289+ async with streamablehttp_client (url ) as (read , write , _ ):
290290 async with ClientSession (read , write ) as session :
291291 await session .initialize ()
292292 result = await session .call_tool (tool_name , arguments = arguments )
0 commit comments