Package Exports
- ai-debug-local-mcp
- ai-debug-local-mcp/dist/server.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ai-debug-local-mcp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
AI-Debug MCP Server
🔒 Compiled version - source code available with license
🚀 Quick Install
npm install -g ai-debug-local-mcp
🤖 Automated Setup (Recommended)
We provide automated setup scripts for all major AI coding environments:
Claude Code / Claude Desktop
# Global setup (all projects)
npx ai-debug-setup claude
# OR project-specific setup (recommended)
cd /path/to/your/project
npx ai-debug-setup project
Note: Claude Code (claude.ai/code) and Claude Desktop are the same application
Cursor
# Run the automated setup
npx ai-debug-setup cursor
Windsurf
# Run the automated setup
npx ai-debug-setup windsurf
All Environments
# Setup for all supported environments
npx ai-debug-setup all
📝 Manual Setup Instructions
Claude Code / Claude Desktop
Option 1: Global Setup (All Projects)
Find your Claude config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- Linux:
~/.config/Claude/claude_desktop_config.json
- macOS:
Add AI-Debug to your config:
{
"mcpServers": {
"ai-debug": {
"command": "ai-debug-mcp",
"args": []
}
}
}
Restart Claude Desktop
Verify installation:
// In Claude Code, run:
await get_current_mode()
Option 2: Project-Specific Setup (Recommended)
- Navigate to your project:
cd /path/to/your/project
- Create project config:
mkdir -p .claude
cat > .claude/claude_desktop_config.json << 'EOF'
{
"mcpServers": {
"ai-debug": {
"command": "ai-debug-mcp",
"args": []
}
}
}
EOF
- Open the project in Claude Code
- AI-Debug will be available only for this project
- Can be committed to version control to share with team
Cursor
Open Cursor settings:
- Press
Cmd+,
(Mac) orCtrl+,
(Windows/Linux) - Search for "MCP" or "Model Context Protocol"
- Press
Add AI-Debug configuration:
{
"mcp.servers": {
"ai-debug": {
"command": "ai-debug-mcp",
"args": []
}
}
}
- Restart Cursor
Windsurf
Open Windsurf preferences:
- Go to Preferences → Extensions → MCP
Add new MCP server:
- Name:
ai-debug
- Command:
ai-debug-mcp
- Arguments: (leave empty)
- Name:
Save and restart Windsurf
🎯 Quick Start Guide
Understanding Modes
AI-Debug offers three operation modes:
Direct Mode (Default)
- Access to all 346+ individual debugging tools
- Full control and detailed output
- Best when you know exactly what you need
Orchestrator Mode
- 9 high-level orchestrators that automate complex workflows
- Best for exploring issues when you're not sure where to start
Hybrid Mode (Recommended)
- Both orchestrators and essential tools
- Best balance of automation and control
Basic Usage
// Check current mode
await get_current_mode()
// Switch modes
await switch_mode({ mode: "hybrid" })
// Start debugging a website
const session = await inject_debugging({
url: "http://localhost:3000"
})
// Take a screenshot
await take_screenshot({ sessionId: session.sessionId })
// Get console logs
await get_console_logs({ sessionId: session.sessionId })
// Run comprehensive audit
await run_audit({ sessionId: session.sessionId })
Using Orchestrators
// Debug a specific issue
await debug_orchestrator({
task: "Find why the login button doesn't work",
url: "http://localhost:3000/login"
})
// Performance analysis
await performance_orchestrator({
task: "Analyze and optimize page load time",
url: "http://localhost:3000"
})
// Accessibility audit
await accessibility_orchestrator({
task: "Check WCAG compliance",
url: "http://localhost:3000"
})
🛠️ Troubleshooting
AI-Debug not showing up?
- Verify installation:
which ai-debug-mcp
# Should show: /usr/local/bin/ai-debug-mcp or similar
- Check if command works:
ai-debug-mcp --version
- For Claude Desktop, check logs:
- Open Developer Console:
Cmd+Option+I
(Mac) orCtrl+Shift+I
(Windows) - Look for MCP-related errors
- Open Developer Console:
Common Issues
"command not found"
- Ensure npm global bin is in your PATH
- Try using the full path in config
"Error: Playwright not installed"
# Install browser dependencies
npx playwright install chromium
"Permission denied"
# Fix permissions
chmod +x $(which ai-debug-mcp)
🔒 License
This is a compiled version of AI-Debug. For source code access or commercial licensing, contact: ai-debug@rabbitfound.com
© 2025 Rabbit Found. All rights reserved.