Skip to main content
Glama
index.ts823 B
import { LamlMcpServer } from './server/index.js'; async function main() { try { const server = new LamlMcpServer(); await server.run(); } catch (error) { console.error('Failed to start MCP server:', error); process.exit(1); } } // Handle process signals for graceful shutdown process.on('SIGINT', () => { console.log('\nReceived SIGINT, shutting down gracefully...'); process.exit(0); }); process.on('SIGTERM', () => { console.log('\nReceived SIGTERM, shutting down gracefully...'); process.exit(0); }); // Аналог require.main === module для ESM - запускаем только при прямом выполнении if (import.meta.url === `file://${process.argv[1]}`) { main().catch((error) => { console.error('Unhandled error:', error); process.exit(1); }); }

Latest Blog Posts

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/EgorKluch/mcp-laml'

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