From 18d13ac66b931536c1bc616f91839034f00f61fd Mon Sep 17 00:00:00 2001 From: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Date: Tue, 10 Dec 2024 19:51:33 -0800 Subject: [PATCH] Add comment --- src/services/mcp/McpHub.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/services/mcp/McpHub.ts b/src/services/mcp/McpHub.ts index 04a75f4..dd8af24 100644 --- a/src/services/mcp/McpHub.ts +++ b/src/services/mcp/McpHub.ts @@ -220,6 +220,7 @@ export class McpHub { console.error(`Server "${name}" stderr:`, errorOutput) const connection = this.connections.find((conn) => conn.server.name === name) if (connection) { + // NOTE: we do not set server status to "disconnected" because stderr logs do not necessarily mean the server crashed or disconnected, it could just be informational. In fact when the server first starts up, it immediately logs " server running on stdio" to stderr. this.appendErrorMessage(connection, errorOutput) await this.notifyWebviewOfServerChanges() }