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

Function appendContainerMounts

pkg/parser/mcp.go:583–599  ·  view source on GitHub ↗
(config *RegistryMCPServerConfig, mountsValue any)

Source from the content-addressed store, hash-verified

581}
582
583func appendContainerMounts(config *RegistryMCPServerConfig, mountsValue any) {
584 mountsSlice, ok := mountsValue.([]any)
585 if !ok {
586 return
587 }
588 var mountStrings []string
589 for _, mount := range mountsSlice {
590 if mountStr, ok := mount.(string); ok {
591 mountStrings = append(mountStrings, mountStr)
592 config.Mounts = append(config.Mounts, mountStr)
593 }
594 }
595 sort.Strings(mountStrings)
596 for _, mountStr := range mountStrings {
597 config.Args = append(config.Args, "-v", mountStr)
598 }
599}
600
601func appendNetworkProxyArgs(networkValue any, proxyArgs *[]string) {
602 networkMap, ok := networkValue.(map[string]any)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected