File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,6 @@ import { Client } from "@modelcontextprotocol/sdk/client/index.js";
85
85
import { StdioClientTransport } from " @modelcontextprotocol/sdk/client/stdio.js" ;
86
86
import Anthropic from " @anthropic-ai/sdk" ;
87
87
import dotenv from " dotenv" ;
88
- import { Tool } from " @anthropic-ai/sdk/resources/messages.js" ;
89
88
import {
90
89
CallToolResultSchema ,
91
90
ListToolsResultSchema ,
@@ -181,7 +180,7 @@ Now add the core functionality for processing queries and handling tool calls:
181
180
ListToolsResultSchema
182
181
);
183
182
184
- const availableTools : Tool [] = toolsResponse .tools .map ((tool : any ) => ({
183
+ const availableTools = toolsResponse .tools .map ((tool : any ) => ({
185
184
name: tool .name ,
186
185
description: tool .description ,
187
186
input_schema: tool .inputSchema ,
@@ -211,7 +210,7 @@ Now add the core functionality for processing queries and handling tool calls:
211
210
method: " tools/call" ,
212
211
params: {
213
212
name: toolName ,
214
- args : toolArgs ,
213
+ arguments : toolArgs ,
215
214
},
216
215
},
217
216
CallToolResultSchema
You can’t perform that action at this time.
0 commit comments