We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e0c283 commit 84ca647Copy full SHA for 84ca647
src/server/streamableHttp.ts
@@ -197,19 +197,7 @@ export class StreamableHTTPServerTransport implements Transport {
197
}
198
this.sessionId = this.sessionIdGenerator();
199
this._initialized = true;
200
- const headers: Record<string, string> = {};
201
202
- if (this.sessionId !== undefined) {
203
- headers["mcp-session-id"] = this.sessionId;
204
- }
205
-
206
- // Process initialization messages before responding
207
- for (const message of messages) {
208
- this.onmessage?.(message);
209
210
211
- res.writeHead(200, headers).end();
212
- return;
213
214
// If an Mcp-Session-Id is returned by the server during initialization,
215
// clients using the Streamable HTTP transport MUST include it
0 commit comments