@@ -90,17 +90,19 @@ MCP endpoint.
90902 . The client ** MUST** include an ` Accept ` header, listing both ` application/json ` and
9191 ` text/event-stream ` as supported content types.
92923 . The body of the POST request ** MUST** be a single JSON-RPC _ request_ , _ notification_ , or _ response_ .
93- 4 . If the input is a JSON-RPC _ response_ or _ notification_ :
94- - If the server accepts the input, the server ** MUST** return HTTP status code 202
95- Accepted with no body.
96- - If the server cannot accept the input, it ** MUST** return an HTTP error status code
97- (e.g., 400 Bad Request). The HTTP response body ** MAY** comprise a JSON-RPC _ error
98- response_ that has no ` id ` .
99- 5 . If the input is a JSON-RPC _ request_ , the server ** MUST** either
93+ 4 . If the server cannot accept the input, it ** MUST** return an HTTP error status code
94+ (e.g., 400 Bad Request).
95+ - If the input is not accepted due to unmet ` Accept ` header or body requirements, the error
96+ ** MUST** be of HTTP status code 400 Bad Request.
97+ - If the input is a JSON-RPC _ response_ or _ notification_ , the HTTP response body
98+ ** MAY** comprise a JSON-RPC _ error response_ that has no ` id ` .
99+ 5 . If the input is a JSON-RPC _ response_ or _ notification_ , the server ** MUST** return
100+ HTTP status code 202 Accepted with no body.
101+ 6 . If the input is a JSON-RPC _ request_ , the server ** MUST** either
100102 return ` Content-Type: text/event-stream ` , to initiate an SSE stream, or
101103 ` Content-Type: application/json ` , to return one JSON object. The client ** MUST**
102104 support both these cases.
103- 6 . If the server initiates an SSE stream:
105+ 7 . If the server initiates an SSE stream:
104106 - The SSE stream ** SHOULD** eventually include JSON-RPC _ response_ for the
105107 JSON-RPC _ request_ sent in the POST body.
106108 - The server ** MAY** send JSON-RPC _ requests_ and _ notifications_ before sending the
0 commit comments