Skip to content

Commit 0c4b61c

Browse files
mcp client: result schema and options are optional (#206)
1 parent a5724d4 commit 0c4b61c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/nice-eyes-say.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,10 @@ export class MCPClientManager {
201201
*/
202202
callTool(
203203
params: CallToolRequest["params"] & { serverId: string },
204-
resultSchema:
204+
resultSchema?:
205205
| typeof CallToolResultSchema
206206
| typeof CompatibilityCallToolResultSchema,
207-
options: RequestOptions
207+
options?: RequestOptions
208208
) {
209209
const unqualifiedName = params.name.replace(`${params.serverId}.`, "");
210210
return this.mcpConnections[params.serverId].client.callTool(

0 commit comments

Comments
 (0)