UNPKG

remcode

Version:

Turn your AI assistant into a codebase expert. Intelligent code analysis, semantic search, and software engineering guidance through MCP integration.

57 lines (52 loc) 1.81 kB
#!/usr/bin/env node /** * ⚠️ DEPRECATED: STDIO Bridge for MCP Inspector * * This STDIO bridge is deprecated in favor of direct SSE transport. * * 🚀 NEW APPROACH - MCP Inspector with SSE: * * 1. Start MCP server: * npx remcode inspector * # OR: node bin/remcode.js serve --port 3008 * * 2. Open MCP Inspector: * npx @modelcontextprotocol/inspector * * 3. Configure SSE transport: * Transport: SSE * Server URL: http://localhost:3008/sse * * 4. Connect and test tools! * * Benefits of SSE approach: * - ✅ Direct JSON-RPC 2.0 compatibility * - ✅ No timeout issues * - ✅ Real-time bidirectional communication * - ✅ Standard MCP protocol compliance * - ✅ Better error handling * * This STDIO bridge will be removed in the next version. */ const chalk = require('chalk'); console.log(chalk.yellow('⚠️ DEPRECATED: STDIO Bridge')); console.log(''); console.log(chalk.cyan('🚀 Use the new SSE transport instead:')); console.log(''); console.log(chalk.green('1. Start MCP server:')); console.log(chalk.gray(' npx remcode inspector')); console.log(chalk.gray(' # OR: node bin/remcode.js serve --port 3008')); console.log(''); console.log(chalk.green('2. Open MCP Inspector:')); console.log(chalk.gray(' npx @modelcontextprotocol/inspector')); console.log(''); console.log(chalk.green('3. Configure connection:')); console.log(chalk.gray(' Transport: SSE')); console.log(chalk.gray(' Server URL: http://localhost:3008/sse')); console.log(''); console.log(chalk.green('4. Connect and test all MCP tools!')); console.log(''); console.log(chalk.yellow('✨ Benefits: Direct JSON-RPC 2.0, no timeouts, better performance')); console.log(''); console.log(chalk.red('This STDIO bridge will be removed in the next version.')); process.exit(1);