Lightweight coding agent that runs in your terminal
Rust
[MCP] Don't require experimental_use_rmcp_client for no-auth http servers (#4689)
Gabriel Peald13ee79c412c
diff --git a/codex-rs/core/src/mcp_connection_manager.rs b/codex-rs/core/src/mcp_connection_manager.rsindex 2f06f370c6..76738a03ae 100644--- a/codex-rs/core/src/mcp_connection_manager.rs+++ b/codex-rs/core/src/mcp_connection_manager.rs@@ -108,9 +108,6 @@ impl McpClientAdapter {params: mcp_types::InitializeRequestParams,startup_timeout: Duration,) -> Result<Self> {- info!(- "new_stdio_client use_rmcp_client: {use_rmcp_client} program: {program:?} args: {args:?} env: {env:?} params: {params:?} startup_timeout: {startup_timeout:?}"- );if use_rmcp_client {let client = Arc::new(RmcpClient::new_stdio_client(program, args, env).await?);client.initialize(params, Some(startup_timeout)).await?;@@ -205,17 +202,6 @@ impl McpConnectionManager {continue;}- if matches!(- cfg.transport,- McpServerTransportConfig::StreamableHttp { .. }- ) && !use_rmcp_client- {- info!(- "skipping MCP server `{server_name}` because the legacy MCP client only supports stdio servers",- );- continue;- }-let startup_timeout = cfg.startup_timeout_sec.unwrap_or(DEFAULT_STARTUP_TIMEOUT);let tool_timeout = cfg.tool_timeout_sec.unwrap_or(DEFAULT_TOOL_TIMEOUT);