From 4eca9c76b4b486445988991191fbf5b5e3d3395c Mon Sep 17 00:00:00 2001 From: Will Pfleger Date: Thu, 26 Mar 2026 17:17:36 -0400 Subject: [PATCH] fix(pctx_config): use builder API for StreamableHttpClientTransportConfig rmcp 1.3.0 added #[non_exhaustive] to StreamableHttpClientTransportConfig, breaking struct literal construction from external crates. Switch to the ::with_uri() builder which is semantically identical and compatible with both current and future rmcp versions. Fixes #67 --- crates/pctx_config/src/server.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/pctx_config/src/server.rs b/crates/pctx_config/src/server.rs index 10e5734d..68c376b2 100644 --- a/crates/pctx_config/src/server.rs +++ b/crates/pctx_config/src/server.rs @@ -169,10 +169,7 @@ impl ServerConfig { let transport = StreamableHttpClientTransport::with_client( reqwest_client, - StreamableHttpClientTransportConfig { - uri: http_cfg.url.as_str().into(), - ..Default::default() - }, + StreamableHttpClientTransportConfig::with_uri(http_cfg.url.as_str()), ); match init_request.serve(transport).await { Ok(c) => Ok(c),