Class: RubynCode::CLI::Commands::Mcp
- Inherits:
-
Base
- Object
- Base
- RubynCode::CLI::Commands::Mcp
show all
- Defined in:
- lib/rubyn_code/cli/commands/mcp.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
aliases, all_names, hidden?
Class Method Details
.command_name ⇒ Object
7
|
# File 'lib/rubyn_code/cli/commands/mcp.rb', line 7
def self.command_name = '/mcp'
|
.description ⇒ Object
8
|
# File 'lib/rubyn_code/cli/commands/mcp.rb', line 8
def self.description = 'MCP server status'
|
Instance Method Details
#execute(_args, ctx) ⇒ Object
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/rubyn_code/cli/commands/mcp.rb', line 10
def execute(_args, ctx)
configs = load_configs(ctx.project_root)
if configs.empty?
ctx.renderer.info('No MCP servers configured.')
puts ' Add servers to .rubyn-code/mcp.json — see docs/MCP.md for details.'
return
end
ctx.renderer.info("MCP servers (#{configs.size}):")
puts
configs.each { |cfg| render_server(cfg) }
end
|