Skip to content

Commit a43b104

Browse files
authored
chore: remove comments related to JSON-Batching (#514)
1 parent 617fcf1 commit a43b104

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

client/transport/streamable_http.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ func WithSession(sessionID string) StreamableHTTPCOption {
9090
// https://modelcontextprotocol.io/specification/2025-03-26/basic/transports
9191
//
9292
// The current implementation does not support the following features:
93-
// - batching
9493
// - resuming stream
9594
// (https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#resumability-and-redelivery)
9695
// - server -> client request
@@ -407,8 +406,6 @@ func (c *StreamableHTTP) handleSSEResponse(ctx context.Context, reader io.ReadCl
407406
defer close(responseChan)
408407

409408
c.readSSE(ctx, reader, func(event, data string) {
410-
// (unsupported: batching)
411-
412409
var message JSONRPCResponse
413410
if err := json.Unmarshal([]byte(data), &message); err != nil {
414411
c.logger.Errorf("failed to unmarshal message: %v", err)

server/streamable_http.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ func WithLogger(logger util.Logger) StreamableHTTPOption {
115115
// or `hooks.onRegisterSession` will not be triggered for POST messages.
116116
//
117117
// The current implementation does not support the following features from the specification:
118-
// - Batching of requests/notifications/responses in arrays.
119118
// - Stream Resumability
120119
type StreamableHTTPServer struct {
121120
server *MCPServer

0 commit comments

Comments
 (0)