mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-08 01:52:33 +00:00
fix: use ?? to prevent args being undefined for mcp server in some cases (#11203)
This commit is contained in:
parent
6cc739701b
commit
75166a1961
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue