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.
This commit is contained in:
Alon Girmonsky
2026-02-09 13:03:51 -08:00
committed by GitHub
parent 76c5eb6b59
commit 8fac9a5ad5

View File

@@ -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,
}