UNPKG

vibe-coder-mcp

Version:

Production-ready MCP server with complete agent integration, multi-transport support, and comprehensive development automation tools for AI-assisted workflows.

42 lines (41 loc) 1.53 kB
#!/usr/bin/env node import { executeVibeTasksCLI } from './commands/index.js'; import logger from '../../../logger.js'; async function main() { try { process.on('unhandledRejection', (reason, promise) => { logger.error({ reason, promise }, 'Unhandled promise rejection in CLI'); console.error('An unexpected error occurred. Please check the logs for details.'); process.exit(1); }); process.on('uncaughtException', (error) => { logger.error({ err: error }, 'Uncaught exception in CLI'); console.error('A critical error occurred. Please check the logs for details.'); process.exit(1); }); process.on('SIGINT', () => { logger.info('CLI interrupted by user'); console.log('\nOperation cancelled by user.'); process.exit(0); }); await executeVibeTasksCLI(); } catch (error) { logger.error({ err: error }, 'CLI execution failed'); if (error instanceof Error) { console.error(`Error: ${error.message}`); } else { console.error('An unexpected error occurred'); } process.exit(1); } } if (import.meta.url === `file://${process.argv[1]}`) { main().catch((error) => { logger.error({ err: error }, 'Failed to start CLI'); console.error('Failed to start Vibe Task Manager CLI'); process.exit(1); }); } export { executeVibeTasksCLI } from './commands/index.js';