Skip to content
Open
Changes from all commits
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
6 changes: 6 additions & 0 deletions src/scenarios/client/initialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ export class InitializeScenario implements Scenario {
this.handleInitialize(request, res);
} else if (request.method === 'tools/list') {
this.handleToolsList(request, res);
} else if (request.method === 'notifications/initialized') {
// Per MCP spec 2025-11-25 section 2.1 (Sending Messages to the Server),
// point 4: "If the input is a JSON-RPC response or notification ...
// the server MUST return HTTP status code 202 Accepted with no body."
res.writeHead(202);
res.end();
} else {
res.writeHead(200, { 'Content-Type': 'application/json' });
res.end(
Expand Down