mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-18 16:54:10 +02:00
update
This commit is contained in:
@@ -28,7 +28,7 @@ app.post('/mcp', async (req: Request, res: Response) => {
|
||||
transport = new StreamableHTTPServerTransport({
|
||||
sessionIdGenerator: () => randomUUID(),
|
||||
eventStore, // Enable resumability
|
||||
onsessioninitialized: (sessionId) => {
|
||||
onsessioninitialized: (sessionId: string) => {
|
||||
// Store the transport by session ID when session is initialized
|
||||
// This avoids race conditions where requests might come in before the session is stored
|
||||
console.error(`Session initialized with ID: ${sessionId}`);
|
||||
|
||||
Reference in New Issue
Block a user