aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/aflow/flow
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2026-03-10 16:09:13 +0100
committerDmitry Vyukov <dvyukov@google.com>2026-03-10 15:36:44 +0000
commitb19feb243f1f2bdb7f04e5c6f3b693ee8cd2a8b7 (patch)
tree44c8b4434fffffde7b2a55f21a371b4f0a390ad3 /pkg/aflow/flow
parent9eee85817edcc7ad7e20ffadf0e43e1ba748cb35 (diff)
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.
Diffstat (limited to 'pkg/aflow/flow')
-rw-r--r--pkg/aflow/flow/flows_test.go14
1 files changed, 13 insertions, 1 deletions
diff --git a/pkg/aflow/flow/flows_test.go b/pkg/aflow/flow/flows_test.go
index 3c01596b5..a66479d14 100644
--- a/pkg/aflow/flow/flows_test.go
+++ b/pkg/aflow/flow/flows_test.go
@@ -3,4 +3,16 @@
package flow
-// An empty test that runs registration and verification of all registered workflows via init functions.
+import (
+ "testing"
+
+ "github.com/google/syzkaller/pkg/aflow"
+)
+
+// Note: this test also runs registration and verification of all registered workflows via init functions.
+
+func TestMCPTools(t *testing.T) {
+ for tool := range aflow.MCPTools {
+ t.Log(tool.Name)
+ }
+}