From b19feb243f1f2bdb7f04e5c6f3b693ee8cd2a8b7 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 10 Mar 2026 16:09:13 +0100 Subject: pkg/aflow: ensure we don't register MCP tools with duplicate names If we have duplicate names, then only one of the duplicates will be used at random. Add a check that we don't have duplicate names. Currently it's only "crash-reproducer" (both action and a tool). Also ignore "set-results" tool, and all tools created in tests. --- pkg/aflow/flow_test.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pkg/aflow/flow_test.go') diff --git a/pkg/aflow/flow_test.go b/pkg/aflow/flow_test.go index 734781c41..94758c549 100644 --- a/pkg/aflow/flow_test.go +++ b/pkg/aflow/flow_test.go @@ -15,6 +15,11 @@ import ( "google.golang.org/genai" ) +func init() { + // Tests register tools with duplicate names. + registerMCPTools = false +} + func TestWorkflow(t *testing.T) { type flowInputs struct { InFoo int -- cgit mrf-deployment