Skip to content

Commit 10b0d60

Browse files
authored
Refactor key selection flow and allow updating keys (#13)
1 parent e9efc5d commit 10b0d60

14 files changed

+1604
-871
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"engines": {
3131
"node": ">=20.0.0"
3232
},
33-
"packageManager": "pnpm@10.20.0",
33+
"packageManager": "pnpm@10.23.0",
3434
"publishConfig": {
3535
"access": "public"
3636
},

src/config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { logger } from "@iterable/api";
22

33
import { getKeyManager } from "./key-manager.js";
4+
import { COMMAND_NAME } from "./utils/command-info.js";
45
import { sanitizeString } from "./utils/sanitize.js";
56

67
/**
@@ -117,7 +118,7 @@ export async function loadMcpServerConfig(): Promise<McpServerConfig> {
117118

118119
if (!apiKey) {
119120
throw new Error(
120-
"No API key found. Please run 'iterable-mcp setup' or set ITERABLE_API_KEY environment variable."
121+
`No API key found. Please run '${COMMAND_NAME} setup' or set ITERABLE_API_KEY environment variable.`
121122
);
122123
}
123124

0 commit comments

Comments
 (0)