Skip to content

Commit 271d703

Browse files
committed
Have to support the client replying in batch too
1 parent 838a7b6 commit 271d703

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

docs/specification/draft/basic/transports.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,13 @@ MCP endpoint.
7979
1. The client **MUST** use HTTP POST to send JSON-RPC messages to the MCP endpoint.
8080
2. The client **MUST** include an `Accept` header, listing both `application/json` and
8181
`text/event-stream` as supported content types.
82-
3. The body of the POST request **MUST** be a single JSON-RPC _request_, _notification_,
83-
or _response_—or a [JSON-RPC _batch_](https://www.jsonrpc.org/specification#batch)
84-
containing one or more _requests and/or notifications_.
85-
4. If the input consists solely of one JSON-RPC _response_ or any number of JSON-RPC
82+
3. The body of the POST request **MUST** be:
83+
- A single JSON-RPC _request_, _notification_, or _response_
84+
- An array [batching](https://www.jsonrpc.org/specification#batch) one or more
85+
_requests and/or notifications_
86+
- An array [batching](https://www.jsonrpc.org/specification#batch) one or more
87+
_responses_
88+
4. If the input consists solely of (any number of) JSON-RPC _responses_ or
8689
_notifications_:
8790
- If the server accepts the input, the server **MUST** return HTTP status code 202
8891
Accepted with no body.

0 commit comments

Comments
 (0)