diff --git a/crates/openfang-runtime/src/mcp.rs b/crates/openfang-runtime/src/mcp.rs index b9f5f3819f..5fc9853b60 100644 --- a/crates/openfang-runtime/src/mcp.rs +++ b/crates/openfang-runtime/src/mcp.rs @@ -307,11 +307,7 @@ impl McpConnection { } } - let config = StreamableHttpClientTransportConfig { - uri: Arc::from(url), - custom_headers, - ..Default::default() - }; + let config = StreamableHttpClientTransportConfig::with_uri(Arc::from(url)).custom_headers(custom_headers); let transport = StreamableHttpClientTransport::from_config(config);