@@ -610,6 +610,39 @@ claude mcp list
610610
611611## 🐛 Troubleshooting
612612
613+ ### Claude Code Crashes / Interruptions
614+
615+ ** Symptoms:**
616+ - Claude shows "Interrupted: What should Claude do instead?"
617+ - MCP tools execute but Claude stops working
618+ - Commands succeed but Claude freezes
619+
620+ ** Solution:** v3.1.1 includes automatic fixes:
621+ - ✅ Output auto-truncated to prevent context overflow
622+ - ✅ Timeout increased to 2 minutes (default), max 5 minutes
623+ - ✅ Standardized error responses
624+
625+ ** Performance Tuning** (add to ` .env ` ):
626+ ``` bash
627+ # Reduce output size (default: 10000 characters)
628+ MCP_SSH_MAX_OUTPUT_LENGTH=5000
629+
630+ # Increase timeout for slow commands (default: 120000ms)
631+ MCP_SSH_DEFAULT_TIMEOUT=180000
632+
633+ # Use compact JSON to save tokens (default: false)
634+ MCP_SSH_COMPACT_JSON=true
635+ ```
636+
637+ ** For large outputs:**
638+ ``` bash
639+ # Instead of: cat huge-log.txt
640+ # Use: tail -n 100 huge-log.txt
641+ # Or: grep ERROR huge-log.txt | tail -n 50
642+ ```
643+
644+ See [ docs/TROUBLESHOOTING.md] ( docs/TROUBLESHOOTING.md ) for complete guide.
645+
613646### MCP Tools Not Available
614647
6156481 . Ensure MCP is installed: ` claude mcp list `
@@ -618,7 +651,7 @@ claude mcp list
618651
619652### Connection Failed
620653
621- 1 . Test connection: ` python tools/ test-connection.py [server_name]`
654+ 1 . Test connection: ` ssh-manager server test [server_name]`
6226552 . Verify network connectivity
6236563 . Check firewall rules
6246574 . Ensure SSH service is running on remote server
0 commit comments