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

Function _setup_mcp

tests/unit/mcp/conftest.py:26–33  ·  view source on GitHub ↗

Set up MCP for an app in tests.

(app)

Source from the content-addressed store, hash-verified

24
25
26def _setup_mcp(app):
27 """Set up MCP for an app in tests."""
28 app_context.set(app)
29 if MCP_DECORATED_FUNCTIONS:
30 app.mcp_decorated_functions = dict(MCP_DECORATED_FUNCTIONS)
31 MCP_DECORATED_FUNCTIONS.clear()
32 app.mcp_callback_map = CallbackAdapterCollection(app)
33 return app
34
35
36def _make_app(**kwargs):

Callers 8

_mcpFunction · 0.90
_mcpFunction · 0.90
_mcpFunction · 0.90
_make_app_with_decoratedFunction · 0.90
_make_appFunction · 0.85
_tools_listFunction · 0.85
_app_with_callbackFunction · 0.85
_call_toolFunction · 0.85

Calls 3

setMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…