Skip to content

Commit e2db545

Browse files
authored
Fixed Streamable HTTP Example
I tried copying the Streamable HTTP example and it didn't work until I updated these imports.
1 parent 3ef9023 commit e2db545

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ import express from "express";
221221
import { randomUUID } from "node:crypto";
222222
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
223223
import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js";
224-
import { InMemoryEventStore } from "@modelcontextprotocol/sdk/inMemory.js";
224+
import { InMemoryEventStore } from "@modelcontextprotocol/sdk/examples/shared/inMemoryEventStore.js";
225+
import { isInitializeRequest } from "@modelcontextprotocol/sdk/types.js"
225226

226227

227228
const app = express();

0 commit comments

Comments
 (0)