MCPcopy Create free account
hub / github.com/github/gh-aw / appendMCPScriptsTools

Function appendMCPScriptsTools

pkg/workflow/claude_tools.go:407–412  ·  view source on GitHub ↗
(allowedTools []string, mcpScripts *MCPScriptsConfig)

Source from the content-addressed store, hash-verified

405}
406
407func appendMCPScriptsTools(allowedTools []string, mcpScripts *MCPScriptsConfig) []string {
408 if HasMCPScripts(mcpScripts) {
409 allowedTools = append(allowedTools, "mcp__"+string(constants.MCPScriptsMCPServerID))
410 }
411 return allowedTools
412}
413
414func dedupeAllowedTools(allowedTools []string) []string {
415 return sliceutil.Deduplicate(allowedTools)

Callers 1

Calls 1

HasMCPScriptsFunction · 0.85

Tested by

no test coverage detected