Skip to main content
Glama

MCP Documentation Server

by mahawi1992
index.ts1.02 kB
import { DocumentationServer } from './server'; import logger from './utils/logger'; async function main() { const server = new DocumentationServer(); // Handle graceful shutdown process.on('SIGTERM', async () => { logger.info('Received SIGTERM signal'); await server.stop(); process.exit(0); }); process.on('SIGINT', async () => { logger.info('Received SIGINT signal'); await server.stop(); process.exit(0); }); // Handle uncaught errors process.on('uncaughtException', (error) => { logger.error('Uncaught exception:', error); process.exit(1); }); process.on('unhandledRejection', (reason) => { logger.error('Unhandled rejection:', reason); process.exit(1); }); try { await server.start(); logger.info('Server started successfully'); } catch (error) { logger.error('Failed to start server:', error); process.exit(1); } } // Start the server main();

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

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