@@ -28,8 +28,6 @@ use crate::{
2828
2929type 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.
3331fn 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.
6259fn 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.
8578fn negotiate_version_headers (
8679 init_response : & ServerJsonRpcMessage ,
8780 base : HashMap < HeaderName , HeaderValue > ,
0 commit comments