MCPcopy Index your code
hub / github.com/github/copilot-sdk / TcpRuntimeConnection

Class TcpRuntimeConnection

python/copilot/client.py:375–385  ·  view source on GitHub ↗

Spawns a runtime child process listening on a TCP socket. Construct via :meth:`RuntimeConnection.tcp`.

Source from the content-addressed store, hash-verified

373
374@dataclass
375class TcpRuntimeConnection(ChildProcessRuntimeConnection):
376 """Spawns a runtime child process listening on a TCP socket.
377
378 Construct via :meth:`RuntimeConnection.tcp`.
379 """
380
381 port: int = 0
382 """TCP port to listen on. ``0`` (the default) auto-allocates a free port."""
383
384 connection_token: str | None = None
385 """Shared secret the SDK sends to the spawned runtime. ``None`` auto-generates one."""
386
387
388@dataclass

Callers 1

for_tcpMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…