From 0af116c73c32091a50cbfc85489a3f4b1c51678a Mon Sep 17 00:00:00 2001 From: "Prof. - Xadk3!#2580" <151055211+profxadke@users.noreply.github.com> Date: Thu, 2 Apr 2026 22:13:16 +0545 Subject: [PATCH] fix to recent posted issue. as mentioned --- crates/openfang-runtime/src/mcp.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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);