Class: Chatwerk::Tools::PackageTool

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

Overview

Show package details tool

Class Method Summary collapse

Class Method Details

.call(package_path:, server_context:) ⇒ Object



27
28
29
30
31
32
33
34
35
# File 'lib/chatwerk/tools/package_tool.rb', line 27

def call(package_path:, server_context:)
  Helpers.chdir
  result = Api.package(package_path: package_path)

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