get tools working
This commit is contained in:
parent
88df0cd453
commit
bfc9e6e882
1 changed files with 92 additions and 21 deletions
|
|
@ -45,11 +45,10 @@ wss.on("connection", (ws: WebSocket) => {
|
|||
command.name &&
|
||||
command.params
|
||||
) {
|
||||
const result = await mcpClient.callTool(
|
||||
command.name + "asdf",
|
||||
command.params,
|
||||
const result = await mcpClient.callTool(command.name, command.params);
|
||||
ws.send(
|
||||
JSON.stringify({ type: "toolResult", data: result.toolResult }),
|
||||
);
|
||||
ws.send(JSON.stringify({ type: "toolResult", data: result }));
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("Error:", error);
|
||||
|
|
|
|||
Loading…
Reference in a new issue