Class: Chatwerk::Tools::PackageViolationsTool

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

Overview

Package violations (violations TO this package) tool

Class Method Summary collapse

Class Method Details

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



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

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

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