You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ac69692
Browse filesBrowse the repository at this point in the historyBrowse files
feat(transport): support Base64 sentinel header encoding for Mcp-Name and return -32020 HeaderMismatch
* Encode non-ASCII and sentinel-matching Mcp-Name values in Base64 sentinel
format (=?base64?...?=) in HttpClientStreamableHttpTransport to prevent
JDK HttpClient IllegalArgumentException on non-Latin-1 characters.
* Decode Base64 sentinel Mcp-Name values on HttpServletStreamableServerTransportProvider
and HttpServletStatelessServerTransport prior to body validation.
* Add HEADER_MISMATCH (-32020) error code to McpSchema.ErrorCodes per SEP-2243
and return it on header/body mismatches.
* Add unit and integration tests for Base64 sentinel encoding/decoding and
-32020 mismatch error codes.
Co-authored-by: Nikita Kibitkin <nikita.n.kibitkin@gmail.com>
Copy file name to clipboardExpand all lines: mcp-core/src/main/java/io/modelcontextprotocol/server/transport/HttpServletStreamableServerTransportProvider.java
0 commit comments