Frequently asked questions#
Don’t see what you’re looking for here? Check the
Discourse or use search_knowledge in the MCP server.
Why doesn’t the MCP server run my model?#
By design — this is a knowledge-only server. It returns documentation, code templates, and guidance. To actually train a model, install scvi-tools and run the code that the server provides.
How do I keep the knowledge base up to date?#
GitHub Actions jobs handle this automatically and open PRs when diffs are found:
refresh_knowledge.yaml— merges new Discourse threads and GitHub issues/PRs/discussions into the community snapshots, and syncs the scvi-tools / scviva-tools website blog posts and pagessync_tutorials.yaml— syncs tutorial notebooks from scvi-toolssync_model_knowledge.yaml— updates model docs from the scvi-tools CHANGELOGsync_huggingface_hub.yaml— refreshes the Hugging Face Hub model registry quarterlysync_scviva_tools_knowledge.yaml/sync_scviva_tools_tutorials.yaml— syncs scviva-tools docs + tutorialssync_scib_metrics_knowledge.yaml/sync_scib_metrics_tutorials.yaml— syncs scib-metrics docs + tutorials
You can also trigger them manually via workflow_dispatch or run the scripts locally:
GITHUB_TOKEN=$(gh auth token) python scripts/scrape_external.py # incremental community refresh
python scripts/sync_websites.py
python scripts/convert_notebooks.py --src /path/to/scvi-tutorials --dst src/scvi_tools_mcp/knowledge/tutorials
python scripts/extract_api_docs.py
python scripts/scrape_huggingface_hub.py
python scripts/extract_scviva_api_docs.py --docs-dir /path/to/scviva-tools/docs/user_guide
python scripts/extract_scib_metrics_api_docs.py
What community knowledge is included, and how is it searched?#
The server bundles accumulative snapshots of:
the scvi-tools Discourse forum (scvi-tools category and
scvitag), every thread with all of its posts;GitHub issues, pull requests (including review comments) and discussions of scvi-tools, scvi-tutorials, scviva-tools, scib-metrics, scvi-colab and scvi-hub-models (content written by bots is excluded);
blog posts and pages of the scvi-tools and scviva-tools websites.
Snapshots only grow: each monthly refresh adds new and updated entries, and a Discourse or GitHub entry is only removed once its last activity is more than three years old (website content is never removed).
search_knowledge and get_faq rank the Discourse and GitHub entries individually by relevance and recency, so when
several threads answer the same question the most recent answer comes first, while a clearly better older match can
still win. Website pages are searched by search_knowledge like the other documentation (keyword relevance, no
recency weighting) and are not part of get_faq.
The first run builds a three-year baseline; later runs only fetch what changed since the newest stored entry. To re-fetch GitHub data from a given date (e.g. after adding a new field), or to refresh a single source or repo:
export GITHUB_TOKEN=$(gh auth token) # needed for Discussions (GraphQL) and higher rate limits
python scripts/scrape_external.py --only github --since 2023-11-01T00:00:00Z
python scripts/scrape_external.py --only discourse
python scripts/scrape_external.py --only github --repo scverse/scvi-tools
Which models are covered?#
Run get_model_overview or list_tutorials in the MCP server. The knowledge base currently covers
scVI, scANVI, TotalVI, MultiVI, PeakVI, LinearSCVI, MrVI, Stereoscope, CellAssign, SOLO, GIMVI,
veloVI, ContrastiveVI, SCBASSET, SysVI, DiagVI, and more.
For pretrained model repos on the official scvi-tools Hugging Face organization, use
list_hub_models, get_hub_model, or suggest_hub_models.
The companion spatial toolkit scviva-tools (ResolVI, DestVI, scVIVA, GIMVI, DiagVI, Stereoscope,
Tangram, Harreman) is covered via list_scviva_models and get_scviva_model. Integration-benchmarking
metrics from scib-metrics are covered via list_scib_metrics and get_scib_metric.
What is the uvx command?#
uvx runs a package from PyPI without installing it permanently — provided by
uv. It is the recommended way to run MCP servers because it
always fetches the latest published version.
Can I use this server from R?#
Yes — any MCP-compatible client works. Configure your client to run uvx scvi-tools-mcp and use
the tools from whatever language your client supports. The server itself is language-agnostic.