Skip to main content
Glama

Twenty CRM MCP Server

by denisalmeida
execute.js695 B
import { executeTool } from '../tools/index.js'; import { logger } from '../utils/logger.js'; export function setupExecuteRoute(app, apiClient) { // POST /tools/:toolName - Execute a specific tool app.post("/tools/:toolName", async (req, res) => { try { const toolName = req.params.toolName; const params = req.body; logger.debug(`REST endpoint called: ${toolName}`, params); const result = await executeTool(toolName, params, apiClient); res.json({ success: true, data: result }); } catch (error) { logger.error(`REST endpoint error:`, error.message); res.status(500).json({ success: false, error: error.message }); } }); }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/denisalmeida/twenty-crm-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server