UNPKG

random-org-mcp-server

Version:

MCP Server for api.random.org integration - Generate true random numbers, strings, UUIDs and more

26 lines 714 B
#!/usr/bin/env node import { RandomOrgMCPServer } from './server.js'; async function main() { try { const server = new RandomOrgMCPServer(); await server.run(); } catch (error) { console.error('Failed to start Random.org MCP server:', error); process.exit(1); } } // Handle graceful shutdown process.on('SIGINT', () => { console.error('Received SIGINT, shutting down gracefully...'); process.exit(0); }); process.on('SIGTERM', () => { console.error('Received SIGTERM, shutting down gracefully...'); process.exit(0); }); main().catch((error) => { console.error('Unhandled error:', error); process.exit(1); }); //# sourceMappingURL=index.js.map