Before troubleshooting: Try our automated setup first:
sh ./scripts/install.shThis often resolves common issues automatically!
Problem: AI tool shows "docker: command not found" or similar errors
Solutions:
- Install Docker Desktop from docker.com
- Make sure Docker Desktop is running
- Restart your computer after Docker installation
- On Linux:
sudo apt install docker.ioor equivalent - Mac alternative: Install Colima for a lighter Docker runtime:
brew install colima colima start docker --version
Problem: Docker commands fail with permission errors
Solutions:
- Add your user to the docker group:
sudo usermod -aG docker $USER - Log out and log back in
- Or run with sudo (not recommended for production)
Problem: Docker container can't connect to your Haiven server
Solutions:
- Make sure Docker Desktop is running
- Check that your API key and URL are correct
- Test the Docker command manually:
docker run -i --rm \ -e HAIVEN_API_KEY="your-api-key" \ -e HAIVEN_API_URL="https://your-haiven-server.com" \ --add-host=host.docker.internal:host-gateway \ ghcr.io/tw-haiven/haiven-mcp-server:latest
Problem: Docker container can't resolve host.docker.internal
Solutions:
- Use
--add-host=host.docker.internal:host-gateway(already in config) - Or replace
host.docker.internalwith your actual IP address - For local development: use
172.17.0.1instead ofhost.docker.internal
Problem: AI tool shows errors like "path not found", "invalid directory", or "command not found"
Solutions:
{
"mcpServers": {
"haiven": {
"command": "/full/path/to/your/haiven-mcp-server/.venv/bin/python",
"args": ["/full/path/to/your/haiven-mcp-server/mcp_server.py"],
"env": {
"HAIVEN_API_URL": "http://localhost:8080",
"HAIVEN_DISABLE_AUTH": "true"
}
}
}
}# In the haiven-mcp-server directory, run:
pwd
# Copy the output and use it to build your absolute paths{
"mcpServers": {
"haiven": {
"command": "C:\\Users\\YourName\\path\\to\\haiven-mcp-server\\.venv\\Scripts\\python.exe",
"args": ["C:\\Users\\YourName\\path\\to\\haiven-mcp-server\\mcp_server.py"],
"env": {
"HAIVEN_API_URL": "http://localhost:8080",
"HAIVEN_DISABLE_AUTH": "true"
}
}
}
}Problem: MCP server connects but fails with authentication errors
Solutions:
- Generate a new API key from the Haiven web interface
- Check API key expiration (keys expire based on duration set)
- Verify API key format (should start with
haiven_sk_) - Test API key manually:
curl -H "Authorization: Bearer <YOUR_API_KEY>" \ https://your-haiven-server.com/api/prompts
Problem: AI tool can't find Python executable
Solutions:
- Check if the command runs with
python3instead ofpython - Install Python 3.11+ from python.org
- On macOS, try:
brew install python@3.11 - Make sure "Add to PATH" was checked during installation
# Test Docker installation
docker --version
docker ps
# Test the Docker image
docker run -i --rm \
-e HAIVEN_API_KEY="your-api-key" \
-e HAIVEN_API_URL="https://your-haiven-server.com" \
ghcr.io/tw-haiven/haiven-mcp-server:latest# Test Python import
python -c "from mcp_server import HaivenMCPServer; print('Import works')"
# Test server startup
python mcp_server.py --help- Common issue: Must restart Claude completely after config changes
- Debug: Check Claude's logs for specific error messages
- Common issue: Extension-specific MCP configuration varies
- Debug: Check VS Code's developer console (Help → Toggle Developer Tools)
- Common issue: Similar to Claude Desktop
- Debug: Check Cursor's logs
| Error Message | Solution |
|---|---|
| "docker: command not found" | Install Docker |
| "Permission denied" (Docker) | Add user to docker group |
| "Connection refused" (Docker) | Check Docker is running |
| "path not found" | Use absolute path |
| "Command not found" | Use full path to Python |
| "Module not found" | Run sh ./scripts/install.sh |
| "Connection refused" | Start Haiven backend first |
| "HTTP error from Haiven API: 307" | Recheck api-key configuration / create and use new API key |
- Try Docker setup first - it's the most reliable option
- Run the automated setup:
sh ./scripts/install.sh - Check the specific error message in your AI tool's logs
- Use absolute paths instead of relative paths
- Verify Haiven backend is running (
curl http://localhost:8080)
Most common fix: Use Docker setup or absolute paths to avoid path-related issues!
MCP Setup Resources:
- VS Code MCP Servers - Comprehensive guide for VS Code
- Claude Code MCP - Official Claude documentation
- Cursor MCP Setup - Cursor-specific instructions
- MCP Protocol Overview - General MCP concepts