Module: Coatepec::MCP

Defined in:
lib/coatepec/mcp.rb,
lib/coatepec/mcp/tools.rb,
lib/coatepec/mcp/response.rb

Overview

Wires the rails_spec_run, rails_runtime_status, rails_routes, and rails_model tools into an ::MCP::Server instance backed by the given project's worker manager.

Defined Under Namespace

Modules: Response Classes: ModelTool, RoutesTool, RuntimeStatusTool, SpecRunTool

Class Method Summary collapse

Class Method Details

.build_server(project:, worker_manager:) ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/coatepec/mcp.rb', line 13

def self.build_server(project:, worker_manager:)
  ::MCP::Server.new(
    name: "coatepec",
    version: Coatepec::VERSION,
    tools: [SpecRunTool, RuntimeStatusTool, RoutesTool, ModelTool],
    server_context: { worker_manager: worker_manager, project_root: project.root }
  )
end