MCP server development guide for scmcphub
BaseMCPManager
is the core class for creating MCP servers in scmcphub. It provides a standardized way to manage multiple MCP modules with built-in filtering capabilities.
For a complete reference documentation, see BaseMCPManager Reference.
get_ads
and get_nbm
functions are essential for accessing backend managers within MCP tools. These functions provide access to the appropriate backend based on the execution mode.
For complete documentation, see Backend Functions Reference.
get_ads()
- Tool Mode BackendAdataManager
for AnnData operationstool-mode
)AdataManager
instanceget_nbm()
- Code Mode BackendNotebookManager
for Jupyter notebook operationscode-mode
)NotebookManager
instanceget_ads
and get_nbm
depends on your server configuration:
get_ads()
for tool-modeget_nbm()
for code-modeAdataManager
is the primary backend manager for handling AnnData objects in tool mode. It provides centralized management of multiple AnnData objects with different data types and sample IDs.
NotebookManager
is the primary backend manager for handling Jupyter notebooks in code mode. It provides centralized management of multiple notebook instances with different kernels, making it essential for interactive analysis workflows.
For complete documentation, see NotebookManager Reference.