Class: Sidekiq::Mcp::Routes

Inherits:
Object
  • Object
show all
Defined in:
lib/sidekiq/mcp/routes.rb

Class Method Summary collapse

Class Method Details

.mount(app, path: "/sidekiq-mcp") ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/sidekiq/mcp/routes.rb', line 6

def self.mount(app, path: "/sidekiq-mcp")
  # Configure the MCP path
  Sidekiq::Mcp.configure do |config|
    config.path = path
  end
  
  # Add the middleware to the Rack stack
  app.use Sidekiq::Mcp::Middleware
end