Architecture#
The block diagram below summarizes the scvi-tools-mcp package layers: MCP client consumers,
FastMCP server, nine tool-module groups, shared utilities, the bundled Markdown/JSON knowledge base,
and the offline build-script pipeline that populates it. The Hugging Face Hub source is refreshed quarterly
and exposed through dedicated hub tools without runtime network calls. The scviva-tools and scib-metrics
sources are refreshed monthly from their upstream repos and exposed through dedicated tool modules, also
without runtime network calls. Community knowledge (Discourse threads and GitHub issues, PRs and discussions of
six repos) and the scvi-tools / scviva-tools websites are refreshed monthly into accumulative snapshots that
search_knowledge and get_faq rank per entry, weighting recent answers higher.