Call a tool via the dispatch pipeline and return the CallToolResult.
(app, tool_name, arguments=None)
| 98 | |
| 99 | |
| 100 | def _call_tool(app, tool_name, arguments=None): |
| 101 | """Call a tool via the dispatch pipeline and return the CallToolResult.""" |
| 102 | _setup_mcp(app) |
| 103 | with app.server.test_request_context(): |
| 104 | return call_tool(tool_name, arguments or {}) |
no test coverage detected
searching dependent graphs…