fix: use ?? to prevent args being undefined for mcp server in some cases (#11203)

This commit is contained in:
Aiden Cline 2026-01-29 16:00:12 -06:00 committed by GitHub
parent 6cc739701b
commit 75166a1961
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -135,7 +135,7 @@ export namespace MCP {
return client.callTool(
{
name: mcpTool.name,
arguments: args as Record<string, unknown>,
arguments: (args || {}) as Record<string, unknown>,
},
CallToolResultSchema,
{