MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / FakeServer

Class FakeServer

tests/unit/api/test_query_router.py:12–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10
11
12class FakeServer:
13 def __init__(self):
14 self.tool_name = None
15 self.arguments = None
16
17 async def handle_tool_call(self, tool_name, arguments):
18 self.tool_name = tool_name
19 self.arguments = arguments
20 return {"rows": [{"count": 1}]}
21
22
23def test_execute_query_passes_cypher_query_argument(monkeypatch):

Calls

no outgoing calls