Class: SimpleCovMcp::Tools::VersionTool

Inherits:
BaseTool
  • Object
show all
Defined in:
lib/simplecov_mcp/tools/version_tool.rb

Constant Summary

Constants inherited from BaseTool

BaseTool::COMMON_PROPERTIES, BaseTool::ERROR_MODE_PROPERTY, BaseTool::FILE_INPUT_SCHEMA, BaseTool::PATH_PROPERTY, BaseTool::TRACKED_GLOBS_PROPERTY

Class Method Summary collapse

Methods inherited from BaseTool

coverage_schema, handle_mcp_error, input_schema_def, respond_json, with_error_handling

Class Method Details

.call(error_mode: 'log', server_context: nil, **_args) ⇒ Object



22
23
24
25
26
27
28
# File 'lib/simplecov_mcp/tools/version_tool.rb', line 22

def call(error_mode: 'log', server_context: nil, **_args)
  with_error_handling('VersionTool', error_mode: error_mode) do
    ::MCP::Tool::Response.new([
      { 'type' => 'text', 'text' => "SimpleCovMcp version: #{SimpleCovMcp::VERSION}" }
    ])
  end
end