fix(server): trim OWS from standard MCP headers (#2453)
This commit is contained in:
parent
7e697354de
commit
0ab5d1471d
1 changed files with 85 additions and 3 deletions
6
.changeset/standard-header-ows.md
Normal file
6
.changeset/standard-header-ows.md
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
'@modelcontextprotocol/server': patch
|
||||
'@modelcontextprotocol/core-internal': patch
|
||||
---
|
||||
|
||||
Strip RFC 9110 optional whitespace around inbound `MCP-Protocol-Version`, `Mcp-Method`, and `Mcp-Name` values before classifying and validating modern HTTP requests. This keeps valid requests portable across Fetch runtimes that expose raw leading or trailing SP/HTAB through `Headers.get()`.
|
||||
Loading…
Reference in a new issue