Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/controllers/action_mcp/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def create
result = json_rpc_handler.call(jsonrpc_params)
process_handler_results(result, session, session_initially_missing, is_initialize_request)
rescue StandardError => e
Rails.logger.error "Unified POST Error: #{e.class} - #{e.message}\n#{e.backtrace.join("\n")}"
Rails.error.report(e, handled: true, severity: :error)
id = begin
jsonrpc_params.respond_to?(:id) ? jsonrpc_params.id : nil
rescue StandardError
Expand Down Expand Up @@ -129,7 +129,7 @@ def destroy
Rails.logger.info "Unified DELETE: Terminated session: #{session.id}" if ActionMCP.configuration.verbose_logging
head :no_content
rescue StandardError => e
Rails.logger.error "Unified DELETE: Error terminating session #{session.id}: #{e.class} - #{e.message}"
Rails.error.report(e, handled: true, severity: :error)
render_internal_server_error("Failed to terminate session.")
end
end
Expand Down Expand Up @@ -330,7 +330,7 @@ def authenticate_gateway!
rescue ActionMCP::UnauthorizedError => e
render_unauthorized(e.message)
rescue StandardError => e
Rails.logger.error "Gateway authentication error: #{e.class} - #{e.message}"
Rails.error.report(e, handled: true, severity: :error)
render_unauthorized("Authentication system error")
end
end
Expand Down