Class: Rails::Command::Karst::McpCommand

Inherits:
Base
  • Object
show all
Includes:
Boot
Defined in:
lib/rails/commands/karst/mcp/mcp_command.rb

Overview

Rails command entry point for Karst's MCP server: bin/rails karst:mcp. Boots the host application once, the same way any other Karst Rails command does (see Karst::Boot), then serves verify_access tool calls over stdio for the lifetime of the process -- never a second application copy per call.

Instance Method Summary collapse

Instance Method Details

#performObject



19
20
21
22
# File 'lib/rails/commands/karst/mcp/mcp_command.rb', line 19

def perform(*)
  boot_karst_application!
  ::Karst::Mcp::Server.run!
end