From 8fac9a5ad5105c5b32edd13a4bb73a7d4dee61b0 Mon Sep 17 00:00:00 2001 From: Alon Girmonsky <1990761+alongir@users.noreply.github.com> Date: Mon, 9 Feb 2026 13:03:51 -0800 Subject: [PATCH] Fix MCP Hub API tool call field name (#1842) The Hub API expects 'name' field but the MCP server was sending 'tool'. This caused all Hub-forwarded tools (list_l4_flows, get_l4_flow_summary, list_api_calls, etc.) to fail with 'tool name is required' error. Local tools like check_kubeshark_status were unaffected as they don't call the Hub API. --- cmd/mcpRunner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/mcpRunner.go b/cmd/mcpRunner.go index 0a826e100..2a02102b2 100644 --- a/cmd/mcpRunner.go +++ b/cmd/mcpRunner.go @@ -671,7 +671,7 @@ func (s *mcpServer) callHubTool(toolName string, args map[string]any) (string, b // Build the request body requestBody := map[string]any{ - "tool": toolName, + "name": toolName, "arguments": args, }