Class: ActiveMcp::BaseController

Inherits:
ActionController::Base
  • Object
show all
Includes:
Authenticatable, RequestHandlable, ResourceReadable, ToolExecutable
Defined in:
app/controllers/active_mcp/base_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



19
20
21
22
23
24
25
# File 'app/controllers/active_mcp/base_controller.rb', line 19

def index
  if json_rpc_request?
    handle_mcp_client_request
  else
    handle_mcp_server_request
  end
end