(source any, target map[string]string)
| 617 | } |
| 618 | |
| 619 | func copyStringMapFromAny(source any, target map[string]string) { |
| 620 | sourceMap, ok := source.(map[string]any) |
| 621 | if !ok { |
| 622 | return |
| 623 | } |
| 624 | for key, value := range sourceMap { |
| 625 | if valueStr, ok := value.(string); ok { |
| 626 | target[key] = valueStr |
| 627 | } |
| 628 | } |
| 629 | } |
| 630 | |
| 631 | func parseMCPHTTPTypeConfig(mcpConfig map[string]any, toolName string, config *RegistryMCPServerConfig) error { |
| 632 | url, hasURL := mcpConfig["url"] |
no outgoing calls
no test coverage detected