UNPKG

@myuon/refactor-mcp

Version:

MCP server for refactoring tools

26 lines 683 B
#!/usr/bin/env node async function runServer() { const { startServer } = await import('./server.js'); await startServer(); } async function runCli(args) { const { startCli } = await import('./cli.js'); await startCli(args); } async function main() { // Check if first argument is 'cli' if (process.argv[2] === 'cli') { // Pass all arguments after 'cli' to the CLI const cliArgs = process.argv.slice(3); await runCli(cliArgs); return; } // Otherwise run as server await runServer(); } main().catch((error) => { console.error('Error:', error); process.exit(1); }); export {}; //# sourceMappingURL=index.js.map