We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81a8288 commit 79f9f46Copy full SHA for 79f9f46
test/helpers/src/helpers/inMemoryEventStore.ts
@@ -1,4 +1,17 @@
1
-import type { EventStore, JSONRPCMessage } from '@modelcontextprotocol/server';
+import type { JSONRPCMessage } from '@modelcontextprotocol/core';
2
+
3
+/**
4
+ * Interface for storing and replaying events for resumability.
5
+ * This is a copy of the EventStore interface from @modelcontextprotocol/server
6
+ * to avoid circular dependencies in test-helpers.
7
+ */
8
+interface EventStore {
9
+ storeEvent(streamId: string, message: JSONRPCMessage): Promise<string>;
10
+ replayEventsAfter(
11
+ lastEventId: string,
12
+ { send }: { send: (eventId: string, message: JSONRPCMessage) => Promise<void> }
13
+ ): Promise<string>;
14
+}
15
16
/**
17
* Simple in-memory implementation of the EventStore interface for resumability.
0 commit comments