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

Function appendBuiltinArgs

pkg/parser/mcp.go:403–414  ·  view source on GitHub ↗
(config *RegistryMCPServerConfig, argsValue any)

Source from the content-addressed store, hash-verified

401}
402
403func appendBuiltinArgs(config *RegistryMCPServerConfig, argsValue any) {
404 if argsSlice, ok := argsValue.([]any); ok {
405 for _, arg := range argsSlice {
406 if argStr, ok := arg.(string); ok {
407 config.Args = append(config.Args, argStr)
408 }
409 }
410 }
411 if argsSlice, ok := argsValue.([]string); ok {
412 config.Args = append(config.Args, argsSlice...)
413 }
414}
415
416// ParseMCPConfig parses MCP configuration from various formats (map or JSON string)
417func ParseMCPConfig(toolName string, mcpSection any, toolConfig map[string]any) (RegistryMCPServerConfig, error) {

Callers 4

configureMCPStdioCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected