(config *RegistryMCPServerConfig, argsValue any)
| 401 | } |
| 402 | |
| 403 | func 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) |
| 417 | func ParseMCPConfig(toolName string, mcpSection any, toolConfig map[string]any) (RegistryMCPServerConfig, error) { |
no outgoing calls
no test coverage detected