(client, headers, name, arguments, rid)
| 196 | |
| 197 | |
| 198 | def _call_tool(client, headers, name, arguments, rid) -> str: |
| 199 | resp = client.post("/mcp", headers=headers, json={ |
| 200 | "jsonrpc": "2.0", "id": rid, "method": "tools/call", |
| 201 | "params": {"name": name, "arguments": arguments}, |
| 202 | }) |
| 203 | assert resp.status_code == 200 |
| 204 | return resp.json()["result"]["content"][0]["text"] |
| 205 | |
| 206 | |
| 207 | def test_project_path_is_optional_on_every_tool(tmp_path): |
no test coverage detected