MCPcopy Create free account
hub / github.com/1jehuang/jcode / send

Method send

scripts/test_memory.py:57–64  ·  view source on GitHub ↗
(self, cmd, session_id=None)

Source from the content-addressed store, hash-verified

55 self.sock.close()
56
57 def send(self, cmd, session_id=None):
58 req = {"type": "debug_command", "id": 1, "command": cmd}
59 if session_id:
60 req["session_id"] = session_id
61 self.sock.send((json.dumps(req) + '\n').encode())
62 data = self.sock.recv(65536).decode()
63 resp = json.loads(data)
64 return resp.get('ok'), resp.get('output', '')
65
66def run_tests(client, providers):
67 results = {"passed": 0, "failed": 0}

Callers 12

send_cmd_blockingFunction · 0.45
cmdFunction · 0.45
send_cmdFunction · 0.45
send_cmdFunction · 0.45
send_requestFunction · 0.45
send_debug_cmdFunction · 0.45
send_cmdFunction · 0.45
run_testsFunction · 0.45
send_cmdFunction · 0.45
send_cmdFunction · 0.45
debug_cmdFunction · 0.45
mainFunction · 0.45

Calls 4

encodeMethod · 0.80
decodeMethod · 0.80
recvMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected