File tree Expand file tree Collapse file tree 3 files changed +2
-229
lines changed Expand file tree Collapse file tree 3 files changed +2
-229
lines changed Original file line number Diff line number Diff line change 22
22
get_default_environment ,
23
23
)
24
24
from mcp .client .sse import sse_client
25
+ from mcp .client .stdio import stdio_client
25
26
from mcp .types import JSONRPCMessage , ServerCapabilities
26
27
27
28
from mcp_agent .config import MCPServerSettings
28
29
from mcp_agent .core .exceptions import ServerInitializationError
29
30
from mcp_agent .event_progress import ProgressAction
30
31
from mcp_agent .logging .logger import get_logger
31
32
from mcp_agent .mcp .mcp_agent_client_session import MCPAgentClientSession
32
- from mcp_agent .mcp .stdio import stdio_client_with_rich_stderr
33
33
from mcp_agent .mcp .websocket import websocket_client
34
34
from mcp_agent .context_dependent import ContextDependent
35
35
@@ -276,7 +276,7 @@ def transport_context_factory():
276
276
env = {** get_default_environment (), ** (config .env or {})},
277
277
)
278
278
# Create stdio client config with redirected stderr
279
- return stdio_client_with_rich_stderr (server_params )
279
+ return stdio_client (server_params )
280
280
elif config .transport == "sse" :
281
281
return sse_client (config .url , config .headers )
282
282
elif config .transport == "websocket" :
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -136,7 +136,6 @@ async def start_server(
136
136
env = {** get_default_environment (), ** (config .env or {})},
137
137
)
138
138
139
- # TODO: saqadri (FA1) - Should this be stdio_client_with_rich_stderr
140
139
async with stdio_client (server_params ) as (read_stream , write_stream ):
141
140
session = client_session_factory (
142
141
read_stream ,
You can’t perform that action at this time.
0 commit comments