Class: Hitch::MCP::Internal::RegistryRuntime::RuntimeTool

Inherits:
Data
  • Object
show all
Defined in:
app/models/hitch/mcp/internal/registry_runtime.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#entryObject (readonly)

Returns the value of attribute entry

Returns:

  • (Object)

    the current value of entry



40
41
42
# File 'app/models/hitch/mcp/internal/registry_runtime.rb', line 40

def entry
  @entry
end

#tool_classObject (readonly)

Returns the value of attribute tool_class

Returns:

  • (Object)

    the current value of tool_class



40
41
42
# File 'app/models/hitch/mcp/internal/registry_runtime.rb', line 40

def tool_class
  @tool_class
end

Instance Method Details

#annotationsObject



45
# File 'app/models/hitch/mcp/internal/registry_runtime.rb', line 45

def annotations = entry.annotations

#call(server_context:, **arguments) ⇒ Object



48
49
50
# File 'app/models/hitch/mcp/internal/registry_runtime.rb', line 48

def call(server_context:, **arguments)
  tool_class.call(server_context:, **arguments)
end

#descriptionObject



42
# File 'app/models/hitch/mcp/internal/registry_runtime.rb', line 42

def description = entry.description

#input_schemaObject



43
# File 'app/models/hitch/mcp/internal/registry_runtime.rb', line 43

def input_schema = entry.input_schema

#nameObject



41
# File 'app/models/hitch/mcp/internal/registry_runtime.rb', line 41

def name = entry.name

#output_schemaObject



44
# File 'app/models/hitch/mcp/internal/registry_runtime.rb', line 44

def output_schema = entry.output_schema

#sdk_toolObject



46
# File 'app/models/hitch/mcp/internal/registry_runtime.rb', line 46

def sdk_tool = entry.sdk_tool