Skip to content

Commit 437d523

Browse files
Also includes auth step if auth is available
1 parent 545b97f commit 437d523

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/env/node/gk/cli/integration.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,12 @@ export class GkCliIntegrationProvider implements Disposable {
289289
}
290290

291291
await run('gk.exe', ['mcp', 'install', appName, ...isInsiders ? ['--file-path', settingsPath] : []], 'utf8', { cwd: mcpExtractedFolderPath.fsPath });
292+
293+
const gkAuth = (await this.container.subscription.getAuthenticationSession())?.accessToken;
294+
if (gkAuth != null) {
295+
const output = await run('gk.exe', ['auth', 'login', '-t', gkAuth], 'utf8', { cwd: mcpExtractedFolderPath.fsPath });
296+
console.log(output);
297+
}
292298
} catch {
293299
// Try alternative execution methods based on platform
294300
try {

0 commit comments

Comments
 (0)