Method: ActionMCP::Configuration#initialize
- Defined in:
- lib/action_mcp/configuration.rb
#initialize ⇒ Configuration
Returns a new instance of Configuration.
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/action_mcp/configuration.rb', line 54 def initialize @logging_enabled = false @list_changed = true @logging_level = :warning @resources_subscribe = false @elicitation_enabled = false @verbose_logging = false @active_profile = :primary @profiles = default_profiles # Authentication defaults - empty means all configured identifiers will be tried @authentication_methods = [] @protocol_version = "2025-06-18" # Default to stable version for backwards compatibility # Tasks defaults (MCP 2025-11-25) @tasks_enabled = false @tasks_list_enabled = true @tasks_cancel_enabled = true # Schema validation - disabled by default for backward compatibility @validate_structured_content = false # Gateway - resolved lazily to account for Zeitwerk autoloading @gateway_class_name = nil # Session Store @session_store_type = Rails.env.production? ? :active_record : :volatile @client_session_store_type = nil # defaults to session_store_type @server_session_store_type = nil # defaults to session_store_type end |