File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
docs/specification/draft/basic Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -87,8 +87,13 @@ URL like `https://example.com/mcp`.
87
87
_ response_ .
88
88
- After the JSON-RPC _ response_ has been sent, the server ** MAY** close the SSE
89
89
stream at any time.
90
- - The client ** MAY** close the SSE stream at any time. The server ** SHOULD**
91
- interpret this as the client cancelling the request, if it is still in-flight.
90
+ - Disconnection ** MAY** occur at any time (e.g., due to network conditions).
91
+ Therefore:
92
+ - Disconnection ** SHOULD NOT** be interpreted as the client cancelling its
93
+ request.
94
+ - To cancel, the client ** SHOULD** explicitly send an MCP ` CancelledNotification ` .
95
+ - To avoid message loss due to disconnection, the server ** MAY** make the stream
96
+ [ resumable] ( #resumability-and-redelivery ) .
92
97
93
98
3 . When the client sends a JSON-RPC _ notification_ or _ response_ to the MCP endpoint via
94
99
POST:
@@ -120,7 +125,7 @@ URL like `https://example.com/mcp`.
120
125
1 . The client ** MAY** remain connected to multiple SSE streams simultaneously.
121
126
2 . The server ** MUST** send each of its JSON-RPC messages on only one of the connected
122
127
streams; that is, it ** MUST NOT** broadcast the same message across multiple streams.
123
- - The risk of message loss can be mitigated by making the stream
128
+ - The risk of message loss ** MAY ** be mitigated by making the stream
124
129
[ resumable] ( #resumability-and-redelivery ) .
125
130
126
131
### Resumability and Redelivery
You can’t perform that action at this time.
0 commit comments