Class: ListGemsTool

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

Overview

Tool: List all gems with .yardoc files

Instance Method Summary collapse

Instance Method Details

#callObject



333
334
335
336
# File 'lib/yardmcp.rb', line 333

def call
  gems = YardUtils.instance.list_gems
  { content: gems.map { |gem| { text: gem, type: 'gem' } } }
end