Class: SourceLocationTool

Inherits:
FastMcp::Tool
  • Object
show all
Defined in:
lib/yardmcp.rb

Overview

Tool: Fetch source file and line number for a YARD object

Instance Method Summary collapse

Instance Method Details

#call(path:) ⇒ Object



424
425
426
# File 'lib/yardmcp.rb', line 424

def call(path:)
  { content: YardUtils.instance.source_location(path) }
end