diff --git a/core/context/mcp/index.ts b/core/context/mcp/index.ts index 0a2e63494..9a14e49cd 100644 --- a/core/context/mcp/index.ts +++ b/core/context/mcp/index.ts @@ -105,9 +105,6 @@ class MCPConnection { try { await this.connectPromise; - } catch (error) { - // Handle connection error if needed - throw error; } finally { // Reset the promise so future attempts can try again if necessary this.connectPromise = null; @@ -133,7 +130,6 @@ class MCPConnection { throw new Error("Operation aborted"); } if (!error.message.startsWith("StdioClientTransport already started")) { - console.error("Failed to connect client:", error); return { fatal: false, message: `Failed to connect to MCP ${mcpId}: ${error.message}`, diff --git a/core/indexing/CodeSnippetsIndex.ts b/core/indexing/CodeSnippetsIndex.ts index bd1f08cf9..f207f096b 100644 --- a/core/indexing/CodeSnippetsIndex.ts +++ b/core/indexing/CodeSnippetsIndex.ts @@ -228,7 +228,6 @@ export class CodeSnippetsCodebaseIndex implements CodebaseIndex { ); } catch (e) { // If can't parse, assume malformatted code - console.error(`Error parsing ${compute.path}:`, e); } // Add snippets to sqlite @@ -293,7 +292,6 @@ export class CodeSnippetsCodebaseIndex implements CodebaseIndex { ); } catch (e) { // If can't parse, assume malformatted code - console.error(`Error parsing ${addTag.path}:`, e); } for (const snippet of snippets) {