(name string)
| 311 | } |
| 312 | |
| 313 | func requireClient(name string) (mcp.ClientSpec, error) { |
| 314 | if name == "" { |
| 315 | return mcp.ClientSpec{}, fmt.Errorf("--client is required") |
| 316 | } |
| 317 | c, ok := mcp.ClientByName(name) |
| 318 | if !ok { |
| 319 | return mcp.ClientSpec{}, fmt.Errorf("unsupported client: %s (try one of: %s)", name, strings.Join(mcp.ClientNames(), ", ")) |
| 320 | } |
| 321 | return c, nil |
| 322 | } |
| 323 | |
| 324 | func parseEnv(entries []string) map[string]string { |
| 325 | if len(entries) == 0 { |
no test coverage detected