We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5724d4 commit 0c4b61cCopy full SHA for 0c4b61c
.changeset/nice-eyes-say.md
@@ -0,0 +1,5 @@
1
+---
2
+"agents": patch
3
4
+
5
+mcp client: result schema and options are optional
packages/agents/src/mcp/client.ts
@@ -201,10 +201,10 @@ export class MCPClientManager {
201
*/
202
callTool(
203
params: CallToolRequest["params"] & { serverId: string },
204
- resultSchema:
+ resultSchema?:
205
| typeof CallToolResultSchema
206
| typeof CompatibilityCallToolResultSchema,
207
- options: RequestOptions
+ options?: RequestOptions
208
) {
209
const unqualifiedName = params.name.replace(`${params.serverId}.`, "");
210
return this.mcpConnections[params.serverId].client.callTool(
0 commit comments