Files
obra__episodic-memory/cli/mcp-server
Jesse Vincent 218a14ec85 Replace bash CLI scripts with Node.js wrappers
- Convert all CLI entry points (episodic-memory, index-conversations,
  search-conversations, mcp-server) from bash to Node.js
- Add search-conversations.js to complete Node.js CLI coverage
- Update SessionStart hook to call node directly
- Eliminates bash dependency for full cross-platform support
  (Windows, NixOS, etc.)

Obsoletes PRs #29, #17, #11 which all modified bash scripts.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-14 21:06:48 +00:00

14 lines
413 B
JavaScript
Executable File

#!/usr/bin/env node
import { spawn } from 'child_process';
import { fileURLToPath } from 'url';
import { dirname, join } from 'path';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const child = spawn(process.execPath, [join(__dirname, 'mcp-server-wrapper.js'), ...process.argv.slice(2)], {
stdio: 'inherit'
});
child.on('exit', (code) => process.exit(code ?? 0));