Csaba Apagyi

Results 109 comments of Csaba Apagyi

The underlying exception: ``` MCP exception: ArgumentError - wrong number of arguments (given 1, expected 2) Backtrace: /app/app/controllers/application_controller.rb:29:in 'block in mcp2' /usr/local/bundle/bundler/gems/ruby-sdk-da7603eb4d67/lib/mcp/server.rb:345:in 'MCP::Server#call_tool_with_args' /usr/local/bundle/bundler/gems/ruby-sdk-da7603eb4d67/lib/mcp/server.rb:288:in 'MCP::Server#call_tool' /usr/local/bundle/bundler/gems/ruby-sdk-da7603eb4d67/lib/mcp/server.rb:215:in 'Method#call' ``` Apparently this...

Thanks @koic. The class definition example doesn't work either.. Fails: ```rb def self.call(message:, server_context:) MCP::Tool::Response.new([{ type: "text", text: "1337", }]) end def self.call(message, server_context:) MCP::Tool::Response.new([{ type: "text", text: "1337", }])...

Nevermind, looks like `self.call` is passed the inputs defined in `input_schema` plus `server_context`.

@lessthanjacob Any update? :)

@lessthanjacob Done, thank you

Thanks @Burgestrand! I would specifically like to audit access-denied scenarios (i.e. raised authorization errors). Any suggestions for this?

@Burgestrand Yes but the issue there is using integrations that already rescue this, such as ActiveAdmin. This is why it would be great if pundit could do the logging internally.