UNPKG

lrc-mcp

Version:
17 lines (15 loc) 426 B
import { toolPaths } from "../tools/paths.js"; /** * Discovers and loads available tools from the tools directory * @returns {Promise<Array>} Array of tool objects */ export async function discoverTools() { const toolPromises = toolPaths.map(async (file) => { const module = await import(`../tools/${file}`); return { ...module.apiTool, path: file, }; }); return Promise.all(toolPromises); }