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