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

Function replaceBuiltinImage

pkg/parser/mcp.go:394–401  ·  view source on GitHub ↗
(config *RegistryMCPServerConfig, prefix, replacement string)

Source from the content-addressed store, hash-verified

392}
393
394func replaceBuiltinImage(config *RegistryMCPServerConfig, prefix, replacement string) {
395 for i, arg := range config.Args {
396 if strings.HasPrefix(arg, prefix) {
397 config.Args[i] = replacement
398 break
399 }
400 }
401}
402
403func appendBuiltinArgs(config *RegistryMCPServerConfig, argsValue any) {
404 if argsSlice, ok := argsValue.([]any); ok {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected