@codebakers/cli 3.3.6 → 3.3.8

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.
@@ -656,12 +656,14 @@ async function init() {
656
656
  (0, fs_1.writeFileSync)((0, path_1.join)(cwd, '.cursorrules'), CURSORRULES_TEMPLATE);
657
657
  // Write .cursorignore
658
658
  (0, fs_1.writeFileSync)((0, path_1.join)(cwd, '.cursorignore'), CURSORIGNORE_TEMPLATE);
659
- // Create .cursor/mcp.json for MCP server configuration
660
- const cursorDir = (0, path_1.join)(cwd, '.cursor');
661
- if (!(0, fs_1.existsSync)(cursorDir)) {
662
- (0, fs_1.mkdirSync)(cursorDir, { recursive: true });
659
+ // Create GLOBAL ~/.cursor/mcp.json for MCP server configuration
660
+ // Cursor reads MCP config from global location, not project-local
661
+ const homeDir = process.env.USERPROFILE || process.env.HOME || '';
662
+ const globalCursorDir = (0, path_1.join)(homeDir, '.cursor');
663
+ if (!(0, fs_1.existsSync)(globalCursorDir)) {
664
+ (0, fs_1.mkdirSync)(globalCursorDir, { recursive: true });
663
665
  }
664
- const mcpConfigPath = (0, path_1.join)(cursorDir, 'mcp.json');
666
+ const mcpConfigPath = (0, path_1.join)(globalCursorDir, 'mcp.json');
665
667
  const isWindows = process.platform === 'win32';
666
668
  const mcpConfig = {
667
669
  mcpServers: {
@@ -699,7 +701,7 @@ async function init() {
699
701
  (0, fs_1.writeFileSync)(existingSettingsPath, JSON.stringify(VSCODE_SETTINGS_TEMPLATE, null, 2));
700
702
  }
701
703
  cursorSpinner.succeed('Cursor configuration installed!');
702
- console.log(chalk_1.default.green(' ✓ MCP server configured (.cursor/mcp.json)'));
704
+ console.log(chalk_1.default.green(' ✓ MCP server configured (~/.cursor/mcp.json)'));
703
705
  }
704
706
  catch (error) {
705
707
  cursorSpinner.warn('Could not install Cursor files (continuing anyway)');
@@ -153,8 +153,10 @@ function showFinalInstructions() {
153
153
  console.log(chalk_1.default.yellow(' ⚠️ Claude Code not detected (that\'s OK if using Cursor)\n'));
154
154
  }
155
155
  }
156
- // Install MCP for Cursor IDE (create .cursor/mcp.json)
157
- const cursorDir = (0, path_1.join)(cwd, '.cursor');
156
+ // Install MCP for Cursor IDE (create GLOBAL ~/.cursor/mcp.json)
157
+ // Cursor reads MCP config from global location, not project-local
158
+ const homeDir = process.env.USERPROFILE || process.env.HOME || '';
159
+ const cursorDir = (0, path_1.join)(homeDir, '.cursor');
158
160
  const mcpConfigPath = (0, path_1.join)(cursorDir, 'mcp.json');
159
161
  const mcpConfig = {
160
162
  mcpServers: {
@@ -176,7 +178,7 @@ function showFinalInstructions() {
176
178
  else {
177
179
  (0, fs_1.writeFileSync)(mcpConfigPath, JSON.stringify(mcpConfig, null, 2));
178
180
  }
179
- console.log(chalk_1.default.green(' ✅ Cursor MCP server configured! (.cursor/mcp.json)\n'));
181
+ console.log(chalk_1.default.green(' ✅ Cursor MCP server configured! (~/.cursor/mcp.json)\n'));
180
182
  }
181
183
  catch (error) {
182
184
  console.log(chalk_1.default.yellow(' ⚠️ Could not create Cursor MCP config\n'));
package/dist/index.js CHANGED
@@ -34,7 +34,7 @@ const path_1 = require("path");
34
34
  // ============================================
35
35
  // Automatic Update Notification
36
36
  // ============================================
37
- const CURRENT_VERSION = '3.3.6';
37
+ const CURRENT_VERSION = '3.3.7';
38
38
  async function checkForUpdatesInBackground() {
39
39
  // Check if we have a valid cached result first (fast path)
40
40
  const cached = (0, config_js_2.getCachedUpdateInfo)();