mcpCommand wires `cam mcp` and `cam mcp server *` against the bundled MCP registry and per-client config writers.
(state *globalState)
| 16 | // mcpCommand wires `cam mcp` and `cam mcp server *` against the bundled |
| 17 | // MCP registry and per-client config writers. |
| 18 | func (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. |
no test coverage detected