From e2db54592ee19bf4989f85f1ae869f6dbbd0baa8 Mon Sep 17 00:00:00 2001 From: Matt Ferrante Date: Sun, 20 Apr 2025 23:41:15 -0600 Subject: [PATCH] Fixed Streamable HTTP Example I tried copying the Streamable HTTP example and it didn't work until I updated these imports. --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 200cfab6..c19d5e3b 100644 --- a/README.md +++ b/README.md @@ -221,7 +221,8 @@ import express from "express"; import { randomUUID } from "node:crypto"; import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js"; -import { InMemoryEventStore } from "@modelcontextprotocol/sdk/inMemory.js"; +import { InMemoryEventStore } from "@modelcontextprotocol/sdk/examples/shared/inMemoryEventStore.js"; +import { isInitializeRequest } from "@modelcontextprotocol/sdk/types.js" const app = express();