Skip to main content
Glama

Evolution API WhatsApp MCP Server

by luiso2
simple-webhook-test.js1.19 kB
import axios from 'axios'; async function testWebhook() { console.log('🚀 Probando webhook simple...'); const webhookData = { "event": "messages.upsert", "instance": "TestInstance", "data": { "key": { "remoteJid": "5511999887766@s.whatsapp.net", "fromMe": false, "id": "TEST123456789" }, "pushName": "Usuario Test", "message": { "conversation": "/status" }, "messageType": "conversation", "messageTimestamp": Math.floor(Date.now() / 1000) } }; try { console.log('📤 Enviando datos:', JSON.stringify(webhookData, null, 2)); const response = await axios.post('http://localhost:3000/api/webhook', webhookData, { headers: { 'Content-Type': 'application/json' }, timeout: 5000 }); console.log('✅ Respuesta exitosa:'); console.log('Status:', response.status); console.log('Data:', response.data); } catch (error) { console.log('❌ Error:', error.message); if (error.response) { console.log('Status:', error.response.status); console.log('Data:', error.response.data); } } } testWebhook();

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/luiso2/mcp-evolution-api'

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