Skip to content

fix(pctx_config): use builder API for StreamableHttpClientTransportConfig#68

Merged
eliasposen merged 1 commit intoportofcontext:mainfrom
wpfleger96:fix/rmcp-non-exhaustive-compat
Mar 26, 2026
Merged

fix(pctx_config): use builder API for StreamableHttpClientTransportConfig#68
eliasposen merged 1 commit intoportofcontext:mainfrom
wpfleger96:fix/rmcp-non-exhaustive-compat

Conversation

@wpfleger96
Copy link
Copy Markdown
Contributor

Summary

  • Replace struct literal construction of StreamableHttpClientTransportConfig with ::with_uri() builder in crates/pctx_config/src/server.rs

rmcp 1.3.0 added #[non_exhaustive] to StreamableHttpClientTransportConfig (rust-sdk#715, #768), which breaks struct literal construction from external crates. ::with_uri() is semantically identical and compatible with both rmcp 1.2.0 and 1.3.0+.

Fixes #67

Test plan

  • cargo check -p pctx_config passes
  • cargo test -p pctx_config — all 23 tests pass

…nfig

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 portofcontext#67
@eliasposen eliasposen merged commit 4330173 into portofcontext:main Mar 26, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pctx_config 0.1.4 fails to compile with rmcp >= 1.3.0 due to #[non_exhaustive] on StreamableHttpClientTransportConfig

2 participants