You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add SSE polling Phase 2 and Phase 3 tests (SEP-1699)
Add two new test phases to the SSE polling scenario:
Phase 2: Event Replay Test (test_event_replay)
- Tests that server properly stores and replays events sent during disconnect
- Server sends notification1, closes stream, sends notification2 and notification3
- Client should receive all notifications via event replay
Phase 3: Multiple Reconnections Test (test_multiple_reconnections)
- Tests that server can close stream multiple times during single tool call
- Validates proper event store management across multiple reconnections
Also adds corresponding tools to everything-server.ts.
Copy file name to clipboardExpand all lines: examples/servers/typescript/everything-server.ts
+135Lines changed: 135 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -389,6 +389,141 @@ function createMcpServer() {
389
389
}
390
390
);
391
391
392
+
// SEP-1699: Event replay test tool - closes stream mid-call, sends more events, tests replay
393
+
mcpServer.registerTool(
394
+
'test_event_replay',
395
+
{
396
+
description:
397
+
'Tests SSE event replay after disconnection (SEP-1699). Sends notification1, closes stream, sends notification2 and notification3, then returns. Client should receive all notifications via event replay.',
0 commit comments