UNPKG

@rashidazarang/aptly-mcp

Version:

Model Context Protocol server for Aptly package repository management - enables AI assistants to manage Debian repositories

28 lines 826 B
#!/usr/bin/env node import { AptlyMcpServer } from './server.js'; async function main() { const server = new AptlyMcpServer(); // Handle process signals for 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); }); try { await server.run(); } catch (error) { console.error('Failed to start Aptly MCP server:', error); process.exit(1); } } if (import.meta.url === `file://${process.argv[1]}`) { main().catch((error) => { console.error('Unhandled error:', error); process.exit(1); }); } //# sourceMappingURL=index.js.map