File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,11 @@ async def run() -> None:
1818 logger .info ("Starting stdio client session with server parameters: %s" , server_params )
1919 async with stdio_client (server_params ) as (read , write ):
2020 async with ClientSession (read , write ) as session :
21+ # Initialize the connection --> connection does not work
2122 logger .info ("Initializing client session..." )
2223 await session .initialize ()
23-
24+
25+ # List available prompts, resources, and tools --> no avalialbe tools
2426 logger .info ("Listing available prompts..." )
2527 prompts = await session .list_prompts ()
2628 logger .info (f"Available prompts: { prompts } " )
@@ -33,6 +35,7 @@ async def run() -> None:
3335 tools = await session .list_tools ()
3436 logger .info (f"Available tools: { tools } " )
3537
38+ # Call the echo tool --> echo tool issue
3639 logger .info ("Calling echo_tool with message..." )
3740 echo_result = await session .call_tool (
3841 "echo_tool" , arguments = {"message" : "Hello from client!" }
You can’t perform that action at this time.
0 commit comments