MCPcopy Index your code
hub / github.com/plotly/dash / _get_callback_manager

Function _get_callback_manager

dash/mcp/tasks/tasks.py:30–36  ·  view source on GitHub ↗

Resolve the background callback manager for a specific MCP tool.

(tool_name: str)

Source from the content-addressed store, hash-verified

28
29
30def _get_callback_manager(tool_name: str):
31 """Resolve the background callback manager for a specific MCP tool."""
32 adapter = get_app().mcp_callback_map.find_by_tool_name(tool_name)
33 if adapter is None:
34 return None
35 # pylint: disable-next=protected-access
36 return adapter._cb_info.get("manager")
37
38
39def create_task(dispatch_response: dict[str, Any], callback) -> CreateTaskResult:

Callers 3

get_taskFunction · 0.70
get_task_resultFunction · 0.70
cancel_taskFunction · 0.70

Calls 3

get_appFunction · 0.90
find_by_tool_nameMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…