Reference documentation for get_nbm and get_ads functions
get_nbm
and get_ads
functions are essential utility functions in the scmcphub ecosystem that provide access to the backend managers during MCP server execution. These functions are used to retrieve the appropriate backend context based on the execution mode.
AdataManager
for AnnData operationsNotebookManager
for Jupyter notebook operationsget_ads()
AdataManager
instance from the current request context.
AdataManager
tool-mode
)AdataManager
get_nbm()
NotebookManager
instance from the current request context.
NotebookManager
code-mode
)NotebookManager
AdataManager
is responsible for managing AnnData objects in tool mode.
NotebookManager
is responsible for managing Jupyter notebooks in code mode.
get_context()
retrieves the current request context