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:
Taylor Mullen 2025-05-16 21:17:51 -07:00 committed by N. Taylor Mullen
parent c09bad9393
commit 0e25fdd56e
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ export class ToolRegistry {
transport.stderr.on('data', (data) => {
// filter out INFO messages logged for each request received
if (!data.toString().includes('] INFO')) {
console.log('MCP STDERR', data.toString());
console.debug('MCP STDERR', data.toString());
}
});
const result = await mcpClient.listTools();