@kylewadegrove/cutline-mcp-cli 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -123,7 +123,7 @@ async function loginCommand(options) {
123
123
  catch (error) {
124
124
  console.warn(chalk_1.default.yellow(' ⚠️ Could not save to Keychain (skipping)'));
125
125
  }
126
- // Save to file config (cross-platform) - don't store API key anymore
126
+ // Save to file config (cross-platform)
127
127
  try {
128
128
  (0, config_store_js_1.saveConfig)({
129
129
  refreshToken,
@@ -20,6 +20,9 @@ function saveConfig(config) {
20
20
  ensureConfigDir();
21
21
  const current = loadConfig();
22
22
  const newConfig = { ...current, ...config };
23
+ // Remove legacy fields that are no longer stored (e.g. firebaseApiKey)
24
+ // to prevent stale values from causing cross-project auth mismatches
25
+ delete newConfig.firebaseApiKey;
23
26
  fs_1.default.writeFileSync(CONFIG_FILE, JSON.stringify(newConfig, null, 2), { mode: 0o600 });
24
27
  }
25
28
  function loadConfig() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kylewadegrove/cutline-mcp-cli",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "CLI tool for authenticating with Cutline MCP servers",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -148,7 +148,7 @@ export async function loginCommand(options: { staging?: boolean; signup?: boolea
148
148
  console.warn(chalk.yellow(' ⚠️ Could not save to Keychain (skipping)'));
149
149
  }
150
150
 
151
- // Save to file config (cross-platform) - don't store API key anymore
151
+ // Save to file config (cross-platform)
152
152
  try {
153
153
  saveConfig({
154
154
  refreshToken,
@@ -22,6 +22,9 @@ export function saveConfig(config: McpConfig) {
22
22
  ensureConfigDir();
23
23
  const current = loadConfig();
24
24
  const newConfig = { ...current, ...config };
25
+ // Remove legacy fields that are no longer stored (e.g. firebaseApiKey)
26
+ // to prevent stale values from causing cross-project auth mismatches
27
+ delete (newConfig as any).firebaseApiKey;
25
28
  fs.writeFileSync(CONFIG_FILE, JSON.stringify(newConfig, null, 2), { mode: 0o600 });
26
29
  }
27
30