Set up MCP for an app in tests.
(app)
| 24 | |
| 25 | |
| 26 | def _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 | |
| 36 | def _make_app(**kwargs): |
no test coverage detected
searching dependent graphs…