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

Function _make_subprocess_client

python/e2e/test_suspend_e2e.py:29–44  ·  view source on GitHub ↗
(ctx: E2ETestContext, *, use_stdio: bool = True)

Source from the content-addressed store, hash-verified

27
28
29def _make_subprocess_client(ctx: E2ETestContext, *, use_stdio: bool = True) -> CopilotClient:
30 github_token = (
31 "fake-token-for-e2e-tests" if os.environ.get("GITHUB_ACTIONS") == "true" else None
32 )
33 if use_stdio:
34 connection = RuntimeConnection.for_stdio(path=ctx.cli_path)
35 else:
36 connection = RuntimeConnection.for_tcp(
37 path=ctx.cli_path, connection_token="py-tcp-shared-test-token"
38 )
39 return CopilotClient(
40 connection=connection,
41 working_directory=ctx.work_dir,
42 env=ctx.get_env(),
43 github_token=github_token,
44 )
45
46
47def _make_tool(name: str, handler) -> Tool:

Calls 5

CopilotClientClass · 0.90
for_stdioMethod · 0.80
for_tcpMethod · 0.80
getMethod · 0.45
get_envMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…