Skip to main content
Glama

Integration App MCP Server

Official
by membranehq
logging.ts1.02 kB
import { colors, getStatusColor, getMethodColor, colorize } from '../utils/colors'; export const customMorganFormat = (tokens: any, req: any, res: any) => { const method = tokens.method(req, res); const url = tokens.url(req, res); const status = tokens.status(req, res); const responseTime = tokens['response-time'](req, res); // Truncate URL if it's longer than 100 characters let truncatedUrl = url; if (url && url.length > 100) { truncatedUrl = url.substring(0, 50) + '...'; } const sessionId = req.headers['mcp-session-id']; const chatId = req.headers['x-chat-id']; const userId = req.userId; return ` ${colorize(method, getMethodColor(method))} ${colorize(truncatedUrl, colors.white)} ${colorize(status, getStatusColor(status))} ${colorize(`${responseTime}ms`, colors.gray)} 👤 User: ${colorize(userId, colors.green)} 💬 Chat: ${colorize(chatId, colors.blue)} 🔑 Session: ${colorize(sessionId, colors.cyan)} 🔧 Method: ${colorize(req.body.method, colors.magenta)}`; };

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/membranehq/mcp-server'

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