module Riffer::Mcp::ToolFactory
Generates anonymous Riffer::Tool subclasses from MCP tool definitions. Generated tools delegate call to the MCP client and skip Rifferβs param validation β the MCP server validates inputs.
Public Instance Methods
Source
# File lib/riffer/mcp/tool_factory.rb, line 15 def build(manifest_name, client, tool_defs) tool_defs.map { |td| build_tool_class(manifest_name, client, td) } end
Builds one Riffer::Tool subclass per tool definition, prefixing names with the manifest name to avoid cross-server collisions (e.g. jira__search); the server-side name stays on .mcp_server_tool_name.