(client)
| 188 | |
| 189 | |
| 190 | def _init_session(client) -> dict: |
| 191 | init = client.post("/mcp", headers=_MCP_HEADERS, json=_INIT_BODY) |
| 192 | assert init.status_code == 200 |
| 193 | headers = {**_MCP_HEADERS, "mcp-session-id": init.headers.get("mcp-session-id")} |
| 194 | client.post("/mcp", headers=headers, json={"jsonrpc": "2.0", "method": "notifications/initialized"}) |
| 195 | return headers |
| 196 | |
| 197 | |
| 198 | def _call_tool(client, headers, name, arguments, rid) -> str: |
no test coverage detected