workers-mcp.js•450 B
#!/usr/bin/env node
// Simple CLI launcher for MCP server
const { spawn } = require('child_process');
const path = require('path');
const args = process.argv.slice(2);
// usage: run <name> <public_url> <root>
const cmd = process.execPath; // node
const serverJs = path.join(__dirname, '..', 'dist', 'server.js');
const child = spawn(cmd, [serverJs, ...args], { stdio: 'inherit', env: process.env });
child.on('exit', (code) => process.exit(code));