Skip to main content
Glama

DSP Booking MCP Server

by hrz8
lambda.ts903 B
import type { TransportMap } from './transports/types.js'; import { RUN_IN_LAMBDA, AWS_LWA_PORT } from './utils/config.js'; import { createExpressApp } from './app/index.js'; const transports: TransportMap = new Map(); // unused since no persistence storage in the stateless/lambda mode const app = createExpressApp(transports); if (RUN_IN_LAMBDA) { app.listen(AWS_LWA_PORT, () => { console.info(`listening on http://localhost:${AWS_LWA_PORT}`); }); } else { console.error('Cannot proceed inside non-lambda environment'); process.exit(1); } async function cleanup() { console.info('Shutting down server...'); process.exit(0); } process.on('uncaughtException', (error) => { console.error('Uncaught Exception:', error); cleanup(); }); process.on('unhandledRejection', (reason, promise) => { console.error('Unhandled Rejection at:', promise, 'reason:', reason); cleanup(); });

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/hrz8/mcp-openapi'

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