Class: Otto::MCP::RateLimitMiddleware

Inherits:
Security::RateLimitMiddleware
  • Object
show all
Defined in:
lib/otto/mcp/rate_limiting.rb

Overview

Middleware for applying rate limits to MCP protocol endpoints

Instance Method Summary collapse

Constructor Details

#initialize(app, security_config = nil) ⇒ RateLimitMiddleware

Returns a new instance of RateLimitMiddleware.



215
216
217
218
219
220
# File 'lib/otto/mcp/rate_limiting.rb', line 215

def initialize(app, security_config = nil)
  @app             = app
  @security_config = security_config

  configure_mcp_rate_limiting
end