Don't print MCP server logs. It's too noisy. (#3867)

This commit is contained in:
Tommaso Sciortino 2025-07-11 07:42:43 -07:00 committed by GitHub
parent 62ebd51e11
commit 166f5eaa66
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 10 deletions

View File

@ -264,16 +264,6 @@ async function connectAndDiscover(
updateMCPServerStatus(mcpServerName, MCPServerStatus.DISCONNECTED); updateMCPServerStatus(mcpServerName, MCPServerStatus.DISCONNECTED);
}; };
if (transport instanceof StdioClientTransport && transport.stderr) {
transport.stderr.on('data', (data) => {
const stderrStr = data.toString();
// Filter out verbose INFO logs from some MCP servers
if (!stderrStr.includes('] INFO')) {
console.debug(`MCP STDERR (${mcpServerName}):`, stderrStr);
}
});
}
try { try {
const mcpCallableTool = mcpToTool(mcpClient); const mcpCallableTool = mcpToTool(mcpClient);
const tool = await mcpCallableTool.tool(); const tool = await mcpCallableTool.tool();