Skip to content

Commit 75166a1

Browse files
authored
fix: use ?? to prevent args being undefined for mcp server in some cases (#11203)
1 parent 6cc7397 commit 75166a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/opencode/src/mcp/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export namespace MCP {
135135
return client.callTool(
136136
{
137137
name: mcpTool.name,
138-
arguments: args as Record<string, unknown>,
138+
arguments: (args || {}) as Record<string, unknown>,
139139
},
140140
CallToolResultSchema,
141141
{

0 commit comments

Comments
 (0)