start-server.js•579 B
#!/usr/bin/env node
// Simple script to start the MCP server
import { spawn } from 'child_process';
import { fileURLToPath } from 'url';
import { dirname, join } from 'path';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
// Start the server using tsx
const serverProcess = spawn('npx', ['tsx', 'src/index.ts'], {
stdio: 'inherit',
cwd: __dirname
});
serverProcess.on('error', (error) => {
console.error('Failed to start server:', error);
process.exit(1);
});
serverProcess.on('exit', (code) => {
process.exit(code);
});