Skip to content

Commit dc46c1d

Browse files
committed
address comments
1 parent 062067b commit dc46c1d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

mcp/streamable.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,6 @@ func (c *streamableServerConn) servePOST(w http.ResponseWriter, req *http.Reques
624624
if protocolVersion == "" {
625625
protocolVersion = protocolVersion20250326
626626
}
627-
protocolVersion = negotiatedVersion(protocolVersion)
628627

629628
if isBatch && protocolVersion >= protocolVersion20250618 {
630629
http.Error(w, fmt.Sprintf("JSON-RPC batching is not supported in %s and later (request version: %s)", protocolVersion20250618, protocolVersion), http.StatusBadRequest)

mcp/transport.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ func (r rwc) Close() error {
283283
//
284284
// See [msgBatch] for more discussion of message batching.
285285
type ioConn struct {
286-
protocolVersion string
286+
protocolVersion string // negotiated version, set during session initialization.
287287

288288
writeMu sync.Mutex // guards Write, which must be concurrency safe.
289289
rwc io.ReadWriteCloser // the underlying stream

0 commit comments

Comments
 (0)