Class: ActiveMcp::Generators::ToolGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/active_mcp/tool/tool_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_tool_fileObject



6
7
8
# File 'lib/generators/active_mcp/tool/tool_generator.rb', line 6

def create_tool_file
  template "tool.rb.erb", File.join("app/tools", "#{file_name}_tool.rb")
end