Skip to content

Commit 136ab11

Browse files
committed
.
1 parent f24b49c commit 136ab11

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

main.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import os
2-
31
from fastmcp import FastMCP
42

53
import mcp_client

mcp_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)