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

Function appendNetworkProxyArgs

pkg/parser/mcp.go:601–617  ·  view source on GitHub ↗
(networkValue any, proxyArgs *[]string)

Source from the content-addressed store, hash-verified

599}
600
601func appendNetworkProxyArgs(networkValue any, proxyArgs *[]string) {
602 networkMap, ok := networkValue.(map[string]any)
603 if !ok {
604 return
605 }
606 proxyValue, hasProxyArgs := networkMap["proxy-args"]
607 if !hasProxyArgs {
608 return
609 }
610 if proxyArgsSlice, ok := proxyValue.([]any); ok {
611 for _, arg := range proxyArgsSlice {
612 if argStr, ok := arg.(string); ok {
613 *proxyArgs = append(*proxyArgs, argStr)
614 }
615 }
616 }
617}
618
619func copyStringMapFromAny(source any, target map[string]string) {
620 sourceMap, ok := source.(map[string]any)

Callers 1

parseMCPStdioTypeConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected