UNPKG

crew-management-mcp-server

Version:

Crew management server handling crew records, certifications, scheduling, payroll, and vessel assignments with ERP access for data extraction

25 lines (19 loc) 578 B
#!/usr/bin/env node import { spawn } from 'child_process'; import { fileURLToPath } from 'url'; import { dirname, join } from 'path'; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); const serverPath = join(__dirname, '..', 'dist', 'index.js'); const args = process.argv.slice(2); const child = spawn('node', [serverPath, ...args], { stdio: 'inherit', shell: true }); child.on('error', (error) => { console.error('Error starting server:', error); process.exit(1); }); child.on('exit', (code) => { process.exit(code); });