Module: Mewmew::ThorMcpExtension::ClassMethods

Defined in:
lib/mewmew/mcp_integration.rb

Instance Method Summary collapse

Instance Method Details

#add_mcp_command(**server_options) ⇒ Object

Add the mcp command to the Thor class



74
75
76
77
78
79
# File 'lib/mewmew/mcp_integration.rb', line 74

def add_mcp_command(**server_options)
  desc "mcp", "Start MCP (Model Context Protocol) server to expose CLI commands as tools"
  define_method :mcp do
    Mewmew.serve_cli(self.class, **server_options)
  end
end