Troubleshooting¶
This page is the canonical symptom → fix guide.
For installation steps, see Installation.
For exact MCP client syntax, see Configuration Guide.
For a first-run workflow, see Quick Start.
MCP Connection Problems¶
Tools not showing in the client¶
Confirm you used the correct config file for your client.
Confirm the Python path is an absolute path from
which python.Check the config file for JSON/TOML syntax errors.
Restart the client after configuration changes.
Test the server directly:
python -m chatspatial server --help
If you need the exact config file format, go back to the Configuration Guide.
“python not found” or “module not found”¶
Make sure ChatSpatial is installed inside the environment you configured
Re-run
which pythoninside the activated environmentUpdate the MCP config to use that exact path
Data Loading Problems¶
“Dataset not found”¶
Use an absolute path:
❌ ~/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 the directory containing the
spatial/folderHDF5 check:
file yourdata.h5ad
Analysis Problems¶
“Run preprocessing first”¶
Most analyses require preprocessing first.
Preprocess the data
“No significant results”¶
check data quality (>500 spots, >1000 genes)
lower significance thresholds
try a different analysis method
Cell communication fails¶
Use species/resource pairs that match the dataset:
For mouse: species="mouse", liana_resource="mouseconsensus"
For human: species="human", liana_resource="consensus"
Resource Problems¶
System freezes / MemoryError¶
subsample data for testing
reduce batch sizes
monitor memory with
topuse 32GB+ RAM or cloud resources for large datasets
CUDA out of memory¶
set
use_gpu=Falsereduce batch size
clear cached GPU memory if your workflow allows it
Quick Fix Table¶
Problem |
First fix |
|---|---|
Import errors |
Reinstall with |
|
Use |
Client not connecting |
Re-check config and restart the client |
Path errors |
Use absolute paths |
Analysis fails immediately |
Run preprocessing first |
R methods fail |
Install R and the required R packages |
Still Stuck?¶
FAQ — short answers and pointers
Configuration Guide — exact client syntax
Methods Reference — tool parameters and defaults
GitHub Issues — report reproducible bugs