From c98b3573161dbe9a0b4f2798cb8a33e37a2be475 Mon Sep 17 00:00:00 2001 From: Greg Methvin Date: Tue, 25 Nov 2025 11:28:46 -0800 Subject: [PATCH] Select active key by default in setup --- src/install.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/install.ts b/src/install.ts index cdfb89e..be78e2f 100644 --- a/src/install.ts +++ b/src/install.ts @@ -385,6 +385,8 @@ export const setupMcpServer = async (): Promise => { ]); if (useExisting) { const { formatKeychainChoiceLabel } = await import("./utils/ui.js"); + // Find the active key to use as default + const activeKey = keys.find((k) => k.isActive); const { chosenId } = await inquirer.prompt([ { type: "list", @@ -400,6 +402,7 @@ export const setupMcpServer = async (): Promise => { value: k.id, short: k.name, })), + default: activeKey?.id, pageSize: Math.min(10, keys.length), }, ]);