Skip to content

Commit e0b3493

Browse files
committed
GET endpoint can now return 406 Not Acceptable
1 parent 1917ba4 commit e0b3493

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/specification/draft/basic/transports.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ URL like `https://example.com/mcp`.
109109
- The client **MUST** include an `Accept` header, listing `text/event-stream` as a
110110
supported content type.
111111
- The server **MUST** either return `Content-Type: text/event-stream` in response to
112-
this HTTP GET, or else HTTP status code 204 No Content with no body. The client
113-
**MUST** support both these cases.
112+
this HTTP GET, or else error out with HTTP 406 Not Acceptable, indicating that the
113+
server does not offer an SSE stream at this endpoint.
114114
- If the server initiates an SSE stream:
115115
- The server **MAY** close the SSE stream at any time.
116116
- The client **MAY** close the SSE stream at any time.

0 commit comments

Comments
 (0)