File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1-
21import asyncio
3- from agentic_security .logutils import logger
42
53from mcp import ClientSession , StdioServerParameters
64from mcp .client .stdio import stdio_client
75
6+ from agentic_security .logutils import logger
7+
88# Create server parameters for stdio connection
99server_params = StdioServerParameters (
1010 command = "python" , # Executable
1515
1616async def run () -> None :
1717 try :
18- logger .info ("Starting stdio client session with server parameters: %s" , server_params )
18+ logger .info (
19+ "Starting stdio client session with server parameters: %s" , server_params
20+ )
1921 async with stdio_client (server_params ) as (read , write ):
2022 async with ClientSession (read , write ) as session :
2123 # Initialize the connection --> connection does not work
2224 logger .info ("Initializing client session..." )
2325 await session .initialize ()
24-
26+
2527 # List available prompts, resources, and tools --> no avalialbe tools
2628 logger .info ("Listing available prompts..." )
2729 prompts = await session .list_prompts ()
Original file line number Diff line number Diff line change 88import httpx
99import pandas as pd
1010from cache_to_disk import cache_to_disk
11- from datasets import load_dataset
1211
1312from agentic_security .logutils import logger
1413from agentic_security .probe_data import stenography_fn
2019 inspect_ai_tool ,
2120 rl_model ,
2221)
22+ from datasets import load_dataset
2323
2424# Type aliases for clarity
2525T = TypeVar ("T" )
Original file line number Diff line number Diff line change 11import pytest
2- from datasets import load_dataset
32
43from agentic_security .probe_data import REGISTRY
4+ from datasets import load_dataset
55
66
77@pytest .mark .slow
You can’t perform that action at this time.
0 commit comments