MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / _send

Method _send

scripts/mcp_probe/probe.py:133–136  ·  view source on GitHub ↗
(self, msg: dict)

Source from the content-addressed store, hash-verified

131 return self._id
132
133 def _send(self, msg: dict) -> None:
134 assert self.proc.stdin is not None
135 self.proc.stdin.write((json.dumps(msg) + "\n").encode())
136 self.proc.stdin.flush()
137
138 def _readline_blocking(self, timeout: float) -> dict | None:
139 """Read one JSON-RPC message, respecting `timeout`. Returns

Callers 2

__init__Method · 0.95
callMethod · 0.95

Calls 2

writeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected