Gathering detailed insights and metrics for ghost-dev
Gathering detailed insights and metrics for ghost-dev
Gathering detailed insights and metrics for ghost-dev
Gathering detailed insights and metrics for ghost-dev
npm install ghost-dev
Typescript
Module System
Min. Node Version
Node Version
NPM Version
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
10
Voice output layer for Cursor - enables natural voice interaction with your AI coding assistant using ElevenLabs TTS with intelligent fallbacks and robust error handling.
Install Ghost Dev globally:
1npm install -g ghost-dev
Add to your .cursor/mcp.json
:
1{ 2 "mcpServers": { 3 "ghost-dev": { 4 "command": "npx", 5 "args": ["-y", "--package=ghost-dev", "ghost-dev-mcp"], 6 "env": { 7 "ELEVENLABS_API_KEY": "your_elevenlabs_api_key_here" 8 } 9 } 10 } 11}
Get your ElevenLabs API key:
your_elevenlabs_api_key_here
in the config aboveRestart Cursor to load the MCP server
Test your setup:
In Cursor, try: Hey Ghost, say hello world!
Ghost Dev includes a comprehensive diagnostic system to help troubleshoot any issues:
Run diagnostics in Cursor:
The ghost_doctor
tool automatically checks:
Common Issues & Solutions:
File Permission Errors:
1# Option 1: Grant write permissions to your project directory 2chmod 755 /path/to/your/project 3 4# Option 2: Create a dedicated ghost-dev directory 5mkdir -p ~/.ghost-dev && chmod 755 ~/.ghost-dev
Audio Playback Issues:
1# macOS: Install/update Xcode command line tools 2xcode-select --install 3 4# Linux: Install ffmpeg 5sudo apt install ffmpeg # Ubuntu/Debian 6sudo yum install ffmpeg # CentOS/RHEL
API Connection Issues:
Once configured as an MCP server, Ghost Dev provides these tools in Cursor:
ghost_speak
Convert text to speech with TTS optimization and automatic fallbacks.
Features:
say
, Linux espeak
, Windows PowerShell)1// Parameters: 2{ 3 text: string, // Required: Text to convert 4 voiceId?: string, // Optional: ElevenLabs voice ID 5 outputPath?: string, // Optional: Save location 6 stability?: number, // Optional: 0.0-1.0 7 similarityBoost?: number // Optional: 0.0-1.0 8}
ghost_list_voices
List all available ElevenLabs voices with details.
ghost_test_connection
Test API connection and show account info (characters used/remaining).
ghost_doctor
NEW! Comprehensive system diagnostics and health check.
Checks performed:
Example output:
🔧 Ghost Dev Diagnostic Report
✅ Ghost Dev is healthy and ready to rock, mate!
📊 Results:
✅ ElevenLabs API Key: API key found and appears valid
✅ ElevenLabs Connection: Connected successfully (0/10000 characters used)
✅ Audio Playback: Audio players available: afplay
✅ File Permissions: Write access available: Temp Directory, System Temp
✅ MCP Configuration: MCP configuration file found and readable
✅ Node.js Version: Node.js v20.19.2 is compatible
🎉 All systems go!
Ghost Dev is ready for action. Try: "Hey Ghost, say hello world!"
Ghost Dev includes robust error handling to ensure reliable operation:
Automatic Fallbacks:
Error Types Handled:
User Experience:
Ghost Dev is designed to work seamlessly with "Hey Ghost" prompts in Cursor. When you start a prompt with "Hey Ghost", the AI can automatically use the ghost_speak
tool to provide voice responses.
Examples:
Hey Ghost, explain how async/await works in JavaScript
Hey Ghost, review this code and suggest improvements
Hey Ghost, what's the difference between let and const?
The AI will respond with both text and automatically generate speech using Ghost Dev, with fallback to system TTS if needed.
Ghost Dev automatically optimizes text for TTS by:
ghost-dev speak "Hello world"
- Convert text to speechghost-dev voices
- List available voicesghost-dev test-tts
- Test TTS functionalityghost-dev debug-api
- Debug API connection1# Install dependencies 2pnpm install 3 4# Build the project 5pnpm build 6 7# Run in development mode 8pnpm dev 9 10# Run tests 11pnpm test 12 13# Lint code 14pnpm lint
ISC
Enjoy coding with voice! 🎤✨
Ghost Dev makes your AI assistant truly conversational. Perfect for accessibility, multitasking, or just because hearing your code explained is awesome!
No vulnerabilities found.
No security vulnerabilities found.