Class: Chatwerk::Tools::PackageTodosTool

Inherits:
MCP::Tool
  • Object
show all
Defined in:
lib/chatwerk/tools/package_todos_tool.rb

Overview

Package todos (violations FROM this package) tool

Class Method Summary collapse

Class Method Details

.call(package_path:, server_context:, constant_name: nil) ⇒ Object



38
39
40
41
42
43
44
45
46
# File 'lib/chatwerk/tools/package_todos_tool.rb', line 38

def call(package_path:, server_context:, constant_name: nil)
  Helpers.chdir
  result = Api.package_todos(package_path: package_path, constant_name: constant_name)

  MCP::Tool::Response.new([{
                            type: 'text',
                            text: result
                          }])
end