@codebakers/cli 1.1.7 → 1.1.9

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.
@@ -72,17 +72,18 @@ async function setup() {
72
72
  showFinalInstructions();
73
73
  }
74
74
  function showFinalInstructions() {
75
- console.log(chalk_1.default.white(' Step 2: Enable in Claude Code\n'));
76
- console.log(chalk_1.default.gray(' Copy this command and paste it into Claude Code:\n'));
77
- // Box around the command for easy copying
78
- const command = '/mcp add codebakers npx -y @codebakers/cli serve';
79
- console.log(chalk_1.default.cyan(' ┌─────────────────────────────────────────────────────┐'));
80
- console.log(chalk_1.default.cyan(' │ ') + chalk_1.default.white(command) + chalk_1.default.cyan(' '));
81
- console.log(chalk_1.default.cyan(' └─────────────────────────────────────────────────────┘\n'));
82
- console.log(chalk_1.default.gray(' This only needs to be done once. No restart needed!\n'));
75
+ console.log(chalk_1.default.white(' Step 2: Add MCP Server\n'));
76
+ // Detect platform
77
+ const isWindows = process.platform === 'win32';
78
+ console.log(chalk_1.default.yellow(' Run this command in your TERMINAL:\n'));
79
+ const terminalCmd = isWindows
80
+ ? 'claude mcp add --transport stdio codebakers -- cmd /c npx -y @codebakers/cli serve'
81
+ : 'claude mcp add --transport stdio codebakers -- npx -y @codebakers/cli serve';
82
+ console.log(chalk_1.default.cyan(' ' + terminalCmd + '\n'));
83
+ console.log(chalk_1.default.gray(' This only needs to be done once.\n'));
83
84
  console.log(chalk_1.default.blue(' ══════════════════════════════════════\n'));
84
85
  console.log(chalk_1.default.green(' Almost done! 🎉\n'));
85
- console.log(chalk_1.default.white(' After running that command in Claude Code:\n'));
86
+ console.log(chalk_1.default.white(' After running that command:\n'));
86
87
  console.log(chalk_1.default.gray(' • Claude will have access to 34 production patterns'));
87
88
  console.log(chalk_1.default.gray(' • Patterns are fetched on-demand (never stored locally)'));
88
89
  console.log(chalk_1.default.gray(' • Works across all your projects\n'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codebakers/cli",
3
- "version": "1.1.7",
3
+ "version": "1.1.9",
4
4
  "description": "CodeBakers CLI - Production patterns for AI-assisted development",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -79,20 +79,24 @@ export async function setup(): Promise<void> {
79
79
  }
80
80
 
81
81
  function showFinalInstructions(): void {
82
- console.log(chalk.white(' Step 2: Enable in Claude Code\n'));
83
- console.log(chalk.gray(' Copy this command and paste it into Claude Code:\n'));
82
+ console.log(chalk.white(' Step 2: Add MCP Server\n'));
84
83
 
85
- // Box around the command for easy copying
86
- const command = '/mcp add codebakers npx -y @codebakers/cli serve';
87
- console.log(chalk.cyan(' ┌─────────────────────────────────────────────────────┐'));
88
- console.log(chalk.cyan(' │ ') + chalk.white(command) + chalk.cyan(' │'));
89
- console.log(chalk.cyan(' └─────────────────────────────────────────────────────┘\n'));
84
+ // Detect platform
85
+ const isWindows = process.platform === 'win32';
90
86
 
91
- console.log(chalk.gray(' This only needs to be done once. No restart needed!\n'));
87
+ console.log(chalk.yellow(' Run this command in your TERMINAL:\n'));
88
+
89
+ const terminalCmd = isWindows
90
+ ? 'claude mcp add --transport stdio codebakers -- cmd /c npx -y @codebakers/cli serve'
91
+ : 'claude mcp add --transport stdio codebakers -- npx -y @codebakers/cli serve';
92
+
93
+ console.log(chalk.cyan(' ' + terminalCmd + '\n'));
94
+
95
+ console.log(chalk.gray(' This only needs to be done once.\n'));
92
96
 
93
97
  console.log(chalk.blue(' ══════════════════════════════════════\n'));
94
98
  console.log(chalk.green(' Almost done! 🎉\n'));
95
- console.log(chalk.white(' After running that command in Claude Code:\n'));
99
+ console.log(chalk.white(' After running that command:\n'));
96
100
  console.log(chalk.gray(' • Claude will have access to 34 production patterns'));
97
101
  console.log(chalk.gray(' • Patterns are fetched on-demand (never stored locally)'));
98
102
  console.log(chalk.gray(' • Works across all your projects\n'));