(config *RegistryMCPServerConfig, toolConfig map[string]any)
| 365 | } |
| 366 | |
| 367 | func appendBuiltinAllowedTools(config *RegistryMCPServerConfig, toolConfig map[string]any) { |
| 368 | if toolConfig == nil { |
| 369 | return |
| 370 | } |
| 371 | if allowed, hasAllowed := toolConfig["allowed"]; hasAllowed { |
| 372 | if allowedSlice, ok := allowed.([]any); ok { |
| 373 | for _, item := range allowedSlice { |
| 374 | if str, ok := item.(string); ok { |
| 375 | config.Allowed = append(config.Allowed, str) |
| 376 | } |
| 377 | } |
| 378 | } |
| 379 | } |
| 380 | } |
| 381 | |
| 382 | func applyGitHubBuiltinOverrides(config *RegistryMCPServerConfig, toolConfig map[string]any) { |
| 383 | if toolConfig == nil { |
no outgoing calls
no test coverage detected