Revert unnecessary change

This commit is contained in:
Alex Akimov 2025-11-09 18:25:47 +01:00
commit dd19be8d20

View file

@ -69,7 +69,7 @@ class MCPClient {
}); });
console.log( console.log(
"Connected to server with tools:", "Connected to server with tools:",
this.tools.map(({ name }) => name) this.tools.map(({ name }) => name),
); );
} catch (e) { } catch (e) {
console.log("Failed to connect to MCP server: ", e); console.log("Failed to connect to MCP server: ", e);
@ -115,7 +115,7 @@ class MCPClient {
arguments: toolArgs, arguments: toolArgs,
}); });
finalText.push( finalText.push(
`[Calling tool ${toolName} with args ${JSON.stringify(toolArgs)}]` `[Calling tool ${toolName} with args ${JSON.stringify(toolArgs)}]`,
); );
// Continue conversation with tool results // Continue conversation with tool results
@ -132,7 +132,7 @@ class MCPClient {
}); });
finalText.push( finalText.push(
response.content[0].type === "text" ? response.content[0].text : "" response.content[0].type === "text" ? response.content[0].text : "",
); );
} }
} }