MCPcopy Create free account
hub / github.com/github/copilot-sdk / _make_authed_client

Function _make_authed_client

python/e2e/test_rpc_server_e2e.py:78–86  ·  view source on GitHub ↗
(ctx: E2ETestContext, token: str)

Source from the content-addressed store, hash-verified

76
77
78def _make_authed_client(ctx: E2ETestContext, token: str) -> CopilotClient:
79 env = ctx.get_env()
80 env["COPILOT_DEBUG_GITHUB_API_URL"] = ctx.proxy_url
81 return CopilotClient(
82 connection=RuntimeConnection.for_stdio(path=ctx.cli_path),
83 working_directory=ctx.work_dir,
84 env=env,
85 github_token=token,
86 )
87
88
89def _make_client_with_env(ctx: E2ETestContext, env_overrides: dict[str, str]) -> CopilotClient:

Calls 3

CopilotClientClass · 0.90
for_stdioMethod · 0.80
get_envMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…