Skip to main content
Glama

WhatsApp Web MCP

by fyimail
import { Request, Response, NextFunction } from 'express'; import logger from '../logger'; /** * Express middleware to handle errors */ export const errorHandler = ( err: Error, req: Request, res: Response, _next: NextFunction, ): void => { // Log the error logger.error(`Error processing request: ${req.method} ${req.originalUrl}`, err); // Determine status code const statusCode = res.statusCode !== 200 ? res.statusCode : 500; // Send error response res.status(statusCode).json({ message: err.message, stack: process.env.NODE_ENV === 'production' ? '🥞' : err.stack, }); };

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/fyimail/whatsapp-mcp2'

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