Commit c16b5f5
committed
fix(test): correct taskResumability test to use GET-based resumption
The test was incorrectly calling client.request() with resumptionToken
expecting a POST response. Per the spec's "Resumability and Redelivery"
section, resumption uses GET with Last-Event-ID header:
> If the client wishes to resume after a broken connection, it SHOULD
> issue an HTTP GET to the MCP endpoint, and include the Last-Event-ID
> header to indicate the last event ID it received.
See: https://modelcontextprotocol.io/specification/2025-06-18/basic/transports#resumability-and-redelivery
When resumptionToken is provided, the client's send() method only
reconnects the GET SSE stream and returns early - it never sends the
POST request. Fix by using transport.send() with a notification (no
response expected) to properly trigger GET-based SSE reconnection.1 parent 0ad8154 commit c16b5f5
1 file changed
+17
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
| 239 | + | |
| 240 | + | |
240 | 241 | | |
241 | 242 | | |
242 | | - | |
| 243 | + | |
243 | 244 | | |
244 | 245 | | |
245 | 246 | | |
| |||
249 | 250 | | |
250 | 251 | | |
251 | 252 | | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
270 | 260 | | |
271 | 261 | | |
272 | | - | |
273 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
274 | 269 | | |
275 | 270 | | |
276 | 271 | | |
| |||
0 commit comments