UNPKG

mcp-server-zapsign

Version:

MCP Server for ZapSign API Integration - Complete electronic signature solution

28 lines (26 loc) 769 B
import { toolPaths } from '../tools/paths.js'; /** * Discovers and loads available tools from the tools directory * @returns {Array} Array of tool objects */ export function discoverTools () { try { const tools = []; for (const toolPath of toolPaths) { try { // Note: Dynamic imports are handled at runtime when tools are actually used // For now, we'll return the tool paths for discovery tools.push({ name: toolPath.split('/').pop().replace('.js', ''), path: toolPath, }); } catch (error) { console.error(`Failed to load tool from ${toolPath}:`, error); } } return tools; } catch (error) { console.error('Error discovering tools:', error); return []; } }