Fixed Streamable HTTP Example

I tried copying the Streamable HTTP example and it didn't work until I updated these imports.
This commit is contained in:
Matt Ferrante 2025-04-20 23:41:15 -06:00 • committed by GitHub
commit e2db54592e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();