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

Function copyStringMapFromAny

pkg/parser/mcp.go:619–629  ·  view source on GitHub ↗
(source any, target map[string]string)

Source from the content-addressed store, hash-verified

617}
618
619func 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
631func parseMCPHTTPTypeConfig(mcpConfig map[string]any, toolName string, config *RegistryMCPServerConfig) error {
632 url, hasURL := mcpConfig["url"]

Callers 2

parseMCPStdioTypeConfigFunction · 0.85
parseMCPHTTPTypeConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected