feat: expand mcp transports and skill execution

This commit is contained in:
lpf
2026-03-08 11:08:41 +08:00
parent db86b3471d
commit f043de5384
21 changed files with 1447 additions and 84 deletions

View File

@@ -17,7 +17,7 @@ func TestExpandToolAllowlistEntries_GroupPrefix(t *testing.T) {
}
func TestExpandToolAllowlistEntries_BareGroupAndAlias(t *testing.T) {
got := ExpandToolAllowlistEntries([]string{"memory_all", "@subagents"})
got := ExpandToolAllowlistEntries([]string{"memory_all", "@subagents", "skill"})
contains := map[string]bool{}
for _, item := range got {
contains[item] = true
@@ -28,4 +28,7 @@ func TestExpandToolAllowlistEntries_BareGroupAndAlias(t *testing.T) {
if !contains["spawn"] || !contains["subagents"] || !contains["subagent_profile"] {
t.Fatalf("subagents alias expansion missing subagent tools: %v", got)
}
if !contains["skill_exec"] {
t.Fatalf("skills alias expansion missing skill_exec: %v", got)
}
}