Skip to content

Commit 064cd9c

Browse files
authored
Merge branch 'main' into add-tuui-client
2 parents 8ed912b + cfdfc11 commit 064cd9c

File tree

3 files changed

+32
-8
lines changed

3 files changed

+32
-8
lines changed

docs/docs/concepts/transports.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,14 @@ Use stdio when:
129129

130130
### Server-Sent Events (SSE)
131131

132+
<Warning>
133+
134+
The SSE Transport has been [**replaced**](http://modelcontextprotocol.io/specification/2025-03-26/changelog#major-changes) with a more
135+
flexible [Streamable HTTP](http://modelcontextprotocol.io/specification/2025-03-26/basic/transports) transport. Refer to the [Specification](http://modelcontextprotocol.io/specification/2025-03-26/basic/transports)
136+
and latest SDKs for the most recent information.
137+
138+
</Warning>
139+
132140
SSE transport enables server-to-client streaming with HTTP POST requests for client-to-server communication.
133141

134142
Use SSE when:

docs/specification/draft/basic/lifecycle.mdx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,12 @@ supports. This **SHOULD** be the _latest_ version supported by the server.
138138
If the client does not support the version in the server's response, it **SHOULD**
139139
disconnect.
140140

141+
<Note>
141142
If using HTTP, the client **MUST** include the `MCP-Protocol-Version:
142-
<protocol-version>` HTTP header during any subsequent requests to the MCP
143-
server, allowing the MCP server to respond based on the MCP protocol version.
144-
145-
The protocol version sent by the client **SHOULD** be the one negotiated during [initialization](https://modelcontextprotocol.io/specification/draft/basic/lifecycle#initialization).
146-
147-
If the server receives a request with a missing, invalid, or unsupported
148-
MCP-Protocol-VERSION, it **MUST** respond with `400 Bad Request`.
149-
For example: `MCP-Protocol-Version: 2024-11-05`
143+
<protocol-version>` HTTP header on all subsequent requests to the MCP
144+
server.
145+
For details, see [the Protocol Version Header section in Transports](/specification/draft/basic/transports#protocol-version-header).
146+
</Note>
150147

151148
#### Capability Negotiation
152149

docs/specification/draft/basic/transports.mdx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,25 @@ sequenceDiagram
237237
238238
```
239239

240+
### Protocol Version Header
241+
242+
If using HTTP, the client **MUST** include the `MCP-Protocol-Version:
243+
<protocol-version>` HTTP header on all subsequent requests to the MCP
244+
server, allowing the MCP server to respond based on the MCP protocol version.
245+
246+
For example: `MCP-Protocol-Version: 2025-03-26`
247+
248+
The protocol version sent by the client **SHOULD** be the one [negotiated during
249+
initialization](/specification/draft/basic/lifecycle#version-negotiation).
250+
251+
For backwards compatibility, if the server does _not_ receive an `MCP-Protocol-Version`
252+
header, and has no other way to identify the version - for example, by relying on the
253+
protocol version negotiated during initialization - the server **SHOULD** assume protocol
254+
version `2025-03-26`.
255+
256+
If the server receives a request with an invalid or unsupported
257+
`MCP-Protocol-Version`, it **MUST** respond with `400 Bad Request`.
258+
240259
### Backwards Compatibility
241260

242261
Clients and servers can maintain backwards compatibility with the deprecated [HTTP+SSE

0 commit comments

Comments
 (0)