Class: RailsInformant::Mcp::Tools::ResolveError

Inherits:
BaseTool
  • Object
show all
Defined in:
lib/rails_informant/mcp/tools/resolve_error.rb

Class Method Summary collapse

Class Method Details

.call(id:, server_context:, environment: nil) ⇒ Object



16
17
18
19
20
# File 'lib/rails_informant/mcp/tools/resolve_error.rb', line 16

def self.call(id:, server_context:, environment: nil)
  with_client(server_context:, environment:) do |client|
    text_response(client.update_error(id, { status: "resolved" }))
  end
end