syia-mcp-vessel-accounts
Version:
MCP server for vessel account management including EyeShare API integration, vessel expenses, and purchase orders
24 lines (18 loc) • 585 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 child = spawn('node', [serverPath, ...process.argv.slice(2)], {
stdio: 'inherit',
env: process.env
});
child.on('error', (error) => {
console.error('Failed to start mcp-vessel-accounts server:', error);
process.exit(1);
});
child.on('exit', (code) => {
process.exit(code);
});