Method: ActionMCP::Configuration#eager_load_if_needed
- Defined in:
- lib/action_mcp/configuration.rb
#eager_load_if_needed ⇒ Object
263 264 265 266 267 268 269 270 271 272 273 274 275 |
# File 'lib/action_mcp/configuration.rb', line 263 def eager_load_if_needed profile = @profiles[active_profile] return unless profile # Check if any component type includes "all" needs_eager_load = profile[:tools]&.include?("all") || profile[:prompts]&.include?("all") || profile[:resources]&.include?("all") return unless needs_eager_load ensure_mcp_components_loaded end |