Skip to content

Commit 0d58c8f

Browse files
committed
feat(lightspeed): Add debug log for MCP notification
Assisted-by: Claude Opus 4.6 Generated-by: Cursor Signed-off-by: Maysun J Faisal <maysunaneek@gmail.com>
1 parent 6121cc7 commit 0d58c8f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

workspaces/lightspeed/plugins/lightspeed-backend/src/service/mcp-server-validator.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,10 @@ export class McpServerValidator {
8888
method: 'notifications/initialized',
8989
}),
9090
signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS),
91-
}).catch(() => {
92-
// notifications may not return a response — ignore errors
91+
}).catch((err: unknown) => {
92+
this.logger.debug(
93+
`MCP initialized notification failed: ${err instanceof Error ? err.message : String(err)}`,
94+
);
9395
});
9496

9597
// Step 3: List tools

0 commit comments

Comments
 (0)