UNPKG

mcp-context-manager

Version:

Simple AI Context for Better Code Generation - Persistent context system for AI coding assistants

21 lines 628 B
#!/usr/bin/env node import { fileURLToPath } from 'url'; import { dirname, join } from 'path'; import { spawn } from 'child_process'; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); // Get the server path const serverPath = join(__dirname, 'server.js'); // Start the server with stdio inheritance const child = spawn('node', [serverPath], { stdio: 'inherit', env: process.env }); child.on('error', (err) => { console.error('Failed to start server:', err); process.exit(1); }); child.on('exit', (code) => { process.exit(code || 0); }); //# sourceMappingURL=cli.js.map