Skip to content

Commit 91e4e1a

Browse files
committed
chore: add TODO to track protocol version validation in streamable.go
1 parent 7f38d3c commit 91e4e1a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

mcp/streamable.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,6 +1315,8 @@ func (c *streamableServerConn) servePOST(w http.ResponseWriter, req *http.Reques
13151315
// per-request `_meta.protocolVersion` value.
13161316
// The new (>= 2026-06-30) protocol is supported on the HTTP transport
13171317
// only when [StreamableHTTPOptions.Stateless] is true.
1318+
//
1319+
// TODO: this validation can be moved within validateMcpHeaders.
13181320
var metaVersion string
13191321
if meta := extractRequestMeta(jreq.Params); meta != nil {
13201322
metaVersion, _ = meta[MetaKeyProtocolVersion].(string)

0 commit comments

Comments
 (0)