Troubleshooting
Common issues and solutions for Distill
Troubleshooting
Solutions to common issues when using Distill.
Installation Issues
Node.js Version Error
Error: Node.js 18+ required
Solution: Update Node.js to version 18 or higher:
# Using nvm
nvm install 18
nvm use 18
# Or download from nodejs.orgPermission Denied
Error: EACCES: permission denied
Solution: Use npm with a different prefix or fix permissions:
# Option 1: Use npx instead of global install
npx distill-mcp serve
# Option 2: Fix npm permissions (macOS/Linux)
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATHCommand Not Found
Error: distill-mcp: command not found
Solution: The global npm bin is not in your PATH:
# Find where npm installs global packages
npm config get prefix
# Add to PATH (add to ~/.bashrc or ~/.zshrc)
export PATH="$(npm config get prefix)/bin:$PATH"IDE Configuration Issues
MCP Server Not Starting
Symptoms: IDE doesn't show Distill tools
Solutions:
-
Check config file exists:
- Claude Code:
~/.claude/mcp.json - Cursor:
~/.cursor/mcp.json - Windsurf:
~/.codeium/windsurf/mcp_config.json
- Claude Code:
-
Validate JSON syntax:
cat ~/.claude/mcp.json | python -m json.tool -
Test server manually:
distill-mcp serve --verbose -
Run doctor:
distill-mcp doctor -
Re-run setup:
distill-mcp setup --force
Tools Not Appearing
Symptoms: Server starts but tools don't show up
Solutions:
- Restart your IDE completely (not just reload)
- Check IDE logs for MCP errors
- Verify the server name matches in config
Runtime Issues
Out of Memory
Error: JavaScript heap out of memory
Solution: For very large files, increase Node.js memory:
{
"mcpServers": {
"distill": {
"command": "node",
"args": ["--max-old-space-size=4096", "/path/to/distill-mcp", "serve"]
}
}
}Find your distill-mcp path with: which distill-mcp
Slow File Parsing
Symptoms: smart_file_read takes too long
Solutions:
- Use
skeleton=truefor large files - Target specific functions with
targetparameter - Use
linesparameter for specific ranges
Parser Errors
Error: Failed to parse file
Solutions:
- Check file is valid syntax for its language
- Use native
Readtool as fallback - Report issue with file sample on GitHub
Tool-Specific Issues
auto_optimize Not Compressing
Symptoms: Output is same size as input
Solutions:
- Content may already be optimized
- Try specific tool (analyze_build_output, summarize_logs)
- Use
hintparameter to specify content type
smart_file_read Returns Empty
Symptoms: No structure found in file
Solutions:
- File may not have extractable elements
- Check language is supported (TS, JS, Python, Go, Rust, PHP, Swift)
- Use native
Readfor config files
Getting Help
If you can't resolve an issue:
- Run
distill-mcp doctorand include output - Check GitHub Issues
- Open a new issue with:
- Distill version (
distill-mcp --version) - Node.js version (
node --version) - IDE and version
- Error messages
- Steps to reproduce
- Distill version (