UNPKG

behemoth-cli

Version:

🌍 BEHEMOTH CLIv3.760.4 - Level 50+ POST-SINGULARITY Intelligence Trading AI

20 lines (18 loc) 628 B
import { mcpClient } from './behemoth-tools.js'; export async function executeTool(toolName, toolArgs) { if (toolName.startsWith('mcp__behemoth__')) { const behemothToolName = toolName.replace('mcp__behemoth__', ''); try { const result = await mcpClient.executeTool({ tool: behemothToolName, arguments: toolArgs }); return { success: true, data: result }; } catch (error) { return { success: false, error: error.message }; } } else { // Handle other core tools here if they exist return { success: false, error: `Tool '${toolName}' not implemented.` }; } }