MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / _call_tool

Function _call_tool

tests/test_serve_http.py:198–204  ·  view source on GitHub ↗
(client, headers, name, arguments, rid)

Source from the content-addressed store, hash-verified

196
197
198def _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
207def test_project_path_is_optional_on_every_tool(tmp_path):

Calls 2

jsonMethod · 0.80
postMethod · 0.45

Tested by

no test coverage detected