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/tool/syzlang/reproduce.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/aflow/tool') diff --git a/pkg/aflow/tool/syzlang/reproduce.go b/pkg/aflow/tool/syzlang/reproduce.go index 3faa11563..2c22bddd9 100644 --- a/pkg/aflow/tool/syzlang/reproduce.go +++ b/pkg/aflow/tool/syzlang/reproduce.go @@ -9,7 +9,7 @@ import ( _ "github.com/google/syzkaller/sys" ) -var Reproduce = aflow.NewFuncTool("crash-reproducer", reproduce, ` +var Reproduce = aflow.NewFuncTool("reproduce-crash", reproduce, ` Tool evaluates whether the given syz repro program crashes the kernel. It will compile the program and execute it in a VM. `) -- cgit mrf-deployment