Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
init message to follow normal request path
  • Loading branch information
ihrpr committed Apr 8, 2025
commit 84ca647d0d1e8e2f91359daeb3aaf648b8118ee1
12 changes: 0 additions & 12 deletions src/server/streamableHttp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,19 +197,7 @@ export class StreamableHTTPServerTransport implements Transport {
}
this.sessionId = this.sessionIdGenerator();
this._initialized = true;
const headers: Record<string, string> = {};

if (this.sessionId !== undefined) {
headers["mcp-session-id"] = this.sessionId;
}

// Process initialization messages before responding
for (const message of messages) {
this.onmessage?.(message);
}

res.writeHead(200, headers).end();
return;
}
// If an Mcp-Session-Id is returned by the server during initialization,
// clients using the Streamable HTTP transport MUST include it
Expand Down
Loading