Skip to content

Commit e1d4349

Browse files
committed
chore: remove redundant streamable HTTP client comments
1 parent 27df5ba commit e1d4349

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

crates/rmcp/src/transport/streamable_http_client.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ use crate::{
2828

2929
type BoxedSseStream = BoxStream<'static, Result<Sse, SseError>>;
3030

31-
/// Clones `base` and, when the negotiated version requires SEP-2243 headers, adds the
32-
/// `Mcp-Method` / `Mcp-Name` / `Mcp-Param-*` headers derived from the outgoing message.
3331
fn build_request_headers(
3432
base: &HashMap<HeaderName, HeaderValue>,
3533
message: &ClientJsonRpcMessage,
@@ -58,7 +56,6 @@ fn build_request_headers(
5856
headers
5957
}
6058

61-
/// Caches tool input schemas from a `tools/list` response for later `Mcp-Param-*` emission.
6259
fn cache_tools_from_response(
6360
cache: &mut HashMap<String, Arc<JsonObject>>,
6461
message: &ServerJsonRpcMessage,
@@ -78,10 +75,6 @@ fn cache_tools_from_response(
7875
}
7976
}
8077

81-
/// Derives the negotiated protocol version and base request headers from an
82-
/// initialize response: returns `base` with `MCP-Protocol-Version` injected
83-
/// (per MCP 2025-06-18) plus the version used to gate SEP-2243 headers,
84-
/// defaulting to a pre-SEP version when the response can't be parsed.
8578
fn negotiate_version_headers(
8679
init_response: &ServerJsonRpcMessage,
8780
base: HashMap<HeaderName, HeaderValue>,

0 commit comments

Comments
 (0)