UNPKG

dddvchang-mcp-proxy

Version:

Smart MCP proxy with automatic JetBrains IDE discovery, WebSocket support, and intelligent connection naming

24 lines (23 loc) 824 B
#!/usr/bin/env node import { scanForMCPServers } from './simple-scanner.js'; const args = process.argv.slice(2); const command = args[0]; async function main() { if (command === 'mcp-find') { await scanForMCPServers(); } else if (command === '--help' || command === '-h') { console.log('Usage: npx dddvchang-mcp-proxy [command]'); console.log(''); console.log('Commands:'); console.log(' mcp-find Scan for MCP servers and generate WebSocket proxy configurations'); console.log(' --help Show this help message'); console.log(''); console.log('Without any command, starts the MCP proxy server.'); } else { // Default behavior - start the proxy server await import('./index.js'); } } main().catch(console.error);