voyage-and-consumption-mcp-server
Version:
Voyage and consumption management server handling vessel voyages, fuel consumption, performance monitoring, and operational data with ERP access for data extraction
25 lines (19 loc) • 578 B
JavaScript
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);
});