Method: ActionMCP::Configuration#filtered_prompts
- Defined in:
- lib/action_mcp/configuration.rb
#filtered_prompts ⇒ Object
Filter prompts based on active profile
191 192 193 194 195 196 |
# File 'lib/action_mcp/configuration.rb', line 191 def filtered_prompts return PromptsRegistry.non_abstract if should_include_all?(:prompts) prompt_names = @profiles[active_profile][:prompts] || [] PromptsRegistry.non_abstract.select { |prompt| prompt_names.include?(prompt.name) } end |