Skip to content

Commit 1532f87

Browse files
committed
updatee
1 parent c88351b commit 1532f87

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmd/mcptools/commands/shell.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,9 @@ func callCommand(thisCmd *cobra.Command, mcpClient *client.Client, commandArgs [
231231
var toolResponse *mcp.CallToolResult
232232
request := mcp.CallToolRequest{}
233233
request.Params.Name = entityName
234-
request.Params.Arguments = params
234+
if len(params) > 0 {
235+
request.Params.Arguments = params // fix unittest "tool_name without params"
236+
}
235237
toolResponse, execErr = mcpClient.CallTool(context.Background(), request)
236238
if execErr == nil && toolResponse != nil {
237239
resp = ConvertJSONToMap(toolResponse)

0 commit comments

Comments
 (0)