Skip to content

Commit e1c4e65

Browse files
committed
Fix + improve types following #1367
1 parent 7c5f6c6 commit e1c4e65

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

packages/mcp-client/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
},
5454
"dependencies": {
5555
"@huggingface/inference": "workspace:^",
56+
"@huggingface/tasks": "workspace:^",
5657
"@modelcontextprotocol/sdk": "^1.9.0"
5758
}
5859
}

packages/mcp-client/pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/mcp-client/src/McpClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export class McpClient {
8080
}
8181
for (const toolCall of toolCalls) {
8282
const toolName = toolCall.function.name;
83-
const toolArgs = JSON.parse(`${toolCall.function.arguments}`);
83+
const toolArgs = JSON.parse(toolCall.function.arguments);
8484

8585
/// Get the appropriate session for this tool
8686
const client = this.clients.get(toolName);

0 commit comments

Comments
 (0)