MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / clientsForList

Function clientsForList

internal/cli/mcp.go:303–311  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

301}
302
303func clientsForList(name string) []mcp.ClientSpec {
304 if name == "" {
305 return mcp.SupportedClients
306 }
307 if c, ok := mcp.ClientByName(name); ok {
308 return []mcp.ClientSpec{c}
309 }
310 return nil
311}
312
313func requireClient(name string) (mcp.ClientSpec, error) {
314 if name == "" {

Callers 1

mcpListCommandMethod · 0.85

Calls 1

ClientByNameFunction · 0.92

Tested by

no test coverage detected