Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions crates/rmcp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ reqwest = ["__reqwest", "reqwest?/rustls-tls"]

reqwest-tls-no-provider = ["__reqwest", "reqwest?/rustls-tls-no-provider"]

reqwest-native-tls = ["__reqwest", "reqwest?/native-tls"]

server-side-http = [
"uuid",
"dep:rand",
Expand Down
4 changes: 4 additions & 0 deletions crates/rmcp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,10 @@ RMCP uses feature flags to control which components are included:
- `transport-streamable-http-client-reqwest`: a default `reqwest` implementation of the streamable http client
- `auth`: OAuth2 authentication support
- `schemars`: JSON Schema generation (for tool definitions)
- TLS backend options (for HTTP transports):
- `reqwest`: Uses rustls (pure Rust TLS, recommended default)
- `reqwest-native-tls`: Uses platform native TLS (OpenSSL on Linux, Secure Transport on macOS, SChannel on Windows)
- `reqwest-tls-no-provider`: Uses rustls without a default crypto provider (bring your own)


Comment on lines 277 to 278
Copy link

Copilot AI Jan 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section lists the TLS backend flags, but it doesn’t clarify (a) that they’re intended to be mutually exclusive and (b) that transport-streamable-http-client-reqwest / auth only enable the reqwest dependency (__reqwest) and still require exactly one of these TLS backend features to support https. Adding a short note about the required feature combinations would prevent misconfiguration and surprising runtime errors.

Suggested change
These TLS backend features are intended to be mutually exclusive: enable at most one of them at a time. When using
`transport-streamable-http-client-reqwest` or `auth`, those features only enable the `reqwest` dependency (`__reqwest`)
and do not select a TLS backend for you; to support HTTPS, you must also enable exactly one of the TLS backend features
listed above.

Copilot uses AI. Check for mistakes.
## Transports
Expand Down