Class: RailsAiBridge::Tools::GetTestInfo
- Defined in:
- lib/rails_ai_bridge/tools/get_test_info.rb
Overview
MCP tool summarizing test framework, factories, fixtures, CI, and coverage setup.
Class Method Summary collapse
-
.call(_server_context: nil) ⇒ MCP::Tool::Response
Markdown test infrastructure summary or an error message.
Methods inherited from BaseTool
cached_context, cached_section, config, rails_app, reset_cache!, text_response
Class Method Details
.call(_server_context: nil) ⇒ MCP::Tool::Response
Returns markdown test infrastructure summary or an error message.
16 17 18 19 20 21 22 23 |
# File 'lib/rails_ai_bridge/tools/get_test_info.rb', line 16 def self.call(_server_context: nil) data = cached_section(:tests) return text_response('Test introspection not available. Add :tests to introspectors.') unless data return text_response("Test introspection failed: #{data[:error]}") if data[:error] formatted_text = ResponseFormatter.new(data).format text_response(formatted_text) end |