Skip to content

Commit 40ff7f9

Browse files
committed
added the comments back
1 parent c09ce32 commit 40ff7f9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

agentic_security/mcp/client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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!"}

0 commit comments

Comments
 (0)