mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
Don't print MCP server logs. It's too noisy. (#3867)
This commit is contained in:
committed by
GitHub
parent
62ebd51e11
commit
166f5eaa66
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user