Revert unnecessary change
This commit is contained in:
parent
30655fc09c
commit
dd19be8d20
1 changed files with 3 additions and 3 deletions
|
|
@ -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 : "",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue