builderos-cli 2.0.3 → 2.0.4

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.
Files changed (3) hide show
  1. package/PUBLISHED.md +39 -6
  2. package/index.js +12 -5
  3. package/package.json +1 -1
package/PUBLISHED.md CHANGED
@@ -3,9 +3,9 @@
3
3
  ## ✅ Package Information
4
4
 
5
5
  **Package name**: `builderos-cli`
6
- **Version**: `2.0.0`
6
+ **Version**: `2.0.3`
7
7
  **Registry**: https://www.npmjs.com/package/builderos-cli
8
- **Published**: 2026-01-14
8
+ **Published**: 2026-01-15
9
9
  **Maintainer**: audilu <khl0327@gmail.com>
10
10
 
11
11
  ## 📦 Installation
@@ -88,10 +88,43 @@ npx builderos-cli init --api-url=YOUR_BUILDEROS_URL
88
88
  ## 📊 Package Stats
89
89
 
90
90
  ```
91
- Size: 6.6 kB (tarball)
92
- Unpacked: 21.5 kB
93
- Dependencies: 0
94
- Files: 6
91
+ Size: 8.7 kB (tarball)
92
+ Unpacked: 28.9 kB
93
+ Dependencies: 1 (@modelcontextprotocol/sdk)
94
+ Files: 8
95
+ ```
96
+
97
+ ## 🆕 Version 2.0.3 Updates
98
+
99
+ **Published**: 2026-01-15
100
+
101
+ **Key Changes**:
102
+ - ✅ Merged MCP server functionality into main CLI package
103
+ - ✅ Added `builderos-cli mcp` subcommand
104
+ - ✅ No longer requires separate `@builderos/mcp-client` package
105
+ - ✅ Added `@modelcontextprotocol/sdk` dependency
106
+ - ✅ Simplified architecture: one package for all functionality
107
+
108
+ **What's New**:
109
+ ```bash
110
+ # New MCP server command (used by .mcp.json)
111
+ npx builderos-cli mcp
112
+ ```
113
+
114
+ **Updated `.mcp.json` format**:
115
+ ```json
116
+ {
117
+ "mcpServers": {
118
+ "builder-os": {
119
+ "type": "stdio",
120
+ "command": "npx",
121
+ "args": ["-y", "builderos-cli", "mcp"],
122
+ "env": {
123
+ "BUILDEROS_API_URL": "http://builder-os.test"
124
+ }
125
+ }
126
+ }
127
+ }
95
128
  ```
96
129
 
97
130
  ## 🔄 Future Updates
package/index.js CHANGED
@@ -20,10 +20,17 @@
20
20
  */
21
21
 
22
22
  import { mkdir, writeFile, readFile, access } from 'fs/promises';
23
- import { join } from 'path';
23
+ import { join, dirname } from 'path';
24
24
  import { constants } from 'fs';
25
+ import { fileURLToPath } from 'url';
25
26
  import { startMCPServer } from './mcp-server.js';
26
27
 
28
+ // Get package version
29
+ const __filename = fileURLToPath(import.meta.url);
30
+ const __dirname = dirname(__filename);
31
+ const packageJson = JSON.parse(await readFile(join(__dirname, 'package.json'), 'utf-8'));
32
+ const VERSION = packageJson.version;
33
+
27
34
  // Parse command line arguments
28
35
  const args = process.argv.slice(2);
29
36
 
@@ -70,7 +77,7 @@ for (const arg of args) {
70
77
  // Show help
71
78
  if (options.help) {
72
79
  console.log(`
73
- BuilderOS CLI v2.0.3
80
+ BuilderOS CLI v${VERSION}
74
81
 
75
82
  Usage:
76
83
  npx builderos-cli init [options]
@@ -253,10 +260,10 @@ async function createMarker() {
253
260
 
254
261
  const marker = {
255
262
  initialized: true,
256
- version: '2.0.0',
263
+ version: VERSION,
257
264
  timestamp: new Date().toISOString(),
258
265
  architecture: 'api-based',
259
- cli_version: '2.0.0',
266
+ cli_version: VERSION,
260
267
  };
261
268
 
262
269
  await writeFile('.builderos', JSON.stringify(marker, null, 2) + '\n');
@@ -312,7 +319,7 @@ async function updateGitignore() {
312
319
  // Main execution
313
320
  async function main() {
314
321
  console.log('==========================================');
315
- console.log(' BuilderOS CLI v2.0.0');
322
+ console.log(` BuilderOS CLI v${VERSION}`);
316
323
  console.log('==========================================');
317
324
  console.log('');
318
325
  console.log(`Command: ${command}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "builderos-cli",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "BuilderOS CLI - Initialize BuilderOS in any project without requiring local code",
5
5
  "type": "module",
6
6
  "main": "index.js",