Troubleshooting¶
Quick solutions to common problems.
MCP Connection¶
Tools not showing in Claude¶
Check config path:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Verify JSON syntax (missing commas, brackets)
Restart Claude after config changes
Test server:
python -m chatspatial server --help
Data Loading¶
“Dataset not found”¶
Use absolute paths:
❌ ~/data/sample.h5ad
❌ ./data/sample.h5ad
✅ /Users/yourname/data/sample.h5ad
File format not recognized¶
H5AD: Verify with
python -c "import scanpy as sc; sc.read_h5ad('file.h5ad')"Visium: Point to directory containing
spatial/folderCheck file:
file yourdata.h5adshould show “HDF5”
Analysis Errors¶
“Run preprocessing first”¶
Most analyses require preprocessing. Ask Claude:
"Preprocess the data"
“No significant results”¶
Check data quality (>500 spots, >1000 genes)
Lower significance thresholds
Try different methods
Cell communication fails¶
For mouse: species="mouse", liana_resource="mouseconsensus"
For human: species="human", liana_resource="consensus"
Memory Issues¶
System freezes / MemoryError¶
Subsample data for testing
Use smaller batch sizes
Monitor with
topcommandFor large datasets: use 32GB+ RAM or cloud
CUDA out of memory¶
Set
use_gpu=FalseReduce batch size
Run
torch.cuda.empty_cache()
Quick Fixes¶
Problem |
Solution |
|---|---|
Import errors |
|
|
Use |
Claude not connecting |
Restart Claude, check JSON config |
Path errors |
Use absolute paths |
Analysis fails |
Run preprocessing first |
R methods fail |
Install R + packages |
Get Help¶
GitHub Issues — Report bugs
FAQ — Common questions
Next Steps¶
FAQ — Frequently asked questions
Configuration Guide — Detailed MCP setup
Methods Reference — All tools and parameters