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

Function createClient

nodejs/test/e2e/rpc_server_misc.e2e.test.ts:22–33  ·  view source on GitHub ↗
(extraEnv: Record<string, string | undefined> = {})

Source from the content-addressed store, hash-verified

20 }
21
22 function createClient(extraEnv: Record<string, string | undefined> = {}): CopilotClient {
23 return new CopilotClient({
24 workingDirectory: workDir,
25 env: {
26 ...env,
27 ...extraEnv,
28 },
29 logLevel: "error",
30 connection: RuntimeConnection.forStdio({ path: process.env.COPILOT_CLI_PATH }),
31 gitHubToken: DEFAULT_GITHUB_TOKEN,
32 });
33 }
34
35 async function createIsolatedStartedClient(): Promise<{
36 client: CopilotClient;

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…