mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
Avoid console.log for MCP
- Prior to this when attached MCP servers would report content we'd fall back to `console.log` which doesn't work well in an Ink application. Fixes https://github.com/google-gemini/gemini-cli/issues/397
This commit is contained in:
committed by
N. Taylor Mullen
parent
c09bad9393
commit
0e25fdd56e
@@ -221,7 +221,7 @@ export class ToolRegistry {
|
|||||||
transport.stderr.on('data', (data) => {
|
transport.stderr.on('data', (data) => {
|
||||||
// filter out INFO messages logged for each request received
|
// filter out INFO messages logged for each request received
|
||||||
if (!data.toString().includes('] INFO')) {
|
if (!data.toString().includes('] INFO')) {
|
||||||
console.log('MCP STDERR', data.toString());
|
console.debug('MCP STDERR', data.toString());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const result = await mcpClient.listTools();
|
const result = await mcpClient.listTools();
|
||||||
|
|||||||
Reference in New Issue
Block a user