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

Method mcpCommand

internal/cli/mcp.go:18–30  ·  view source on GitHub ↗

mcpCommand wires `cam mcp` and `cam mcp server *` against the bundled MCP registry and per-client config writers.

(state *globalState)

Source from the content-addressed store, hash-verified

16// mcpCommand wires `cam mcp` and `cam mcp server *` against the bundled
17// MCP registry and per-client config writers.
18func (a *App) mcpCommand(state *globalState) *cobra.Command {
19 cmd := &cobra.Command{
20 Use: "mcp",
21 Aliases: []string{"m"},
22 Short: "Manage MCP servers",
23 }
24 cmd.AddCommand(a.mcpListCommand(state))
25 cmd.AddCommand(a.mcpAddCommand(state))
26 cmd.AddCommand(a.mcpRemoveCommand(state))
27 cmd.AddCommand(a.mcpSearchCommand())
28 cmd.AddCommand(a.mcpServerCommand())
29 return cmd
30}
31
32// `cam mcp list` lists local installs grouped by client. When --client is
33// given, only that client is shown.

Callers 1

rootCommandMethod · 0.95

Calls 5

mcpListCommandMethod · 0.95
mcpAddCommandMethod · 0.95
mcpRemoveCommandMethod · 0.95
mcpSearchCommandMethod · 0.95
mcpServerCommandMethod · 0.95

Tested by

no test coverage detected