builderos-cli 2.0.5 → 2.0.6
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.
- package/index.js +9 -3
- package/mcp-server.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -42,7 +42,15 @@ if (command === 'mcp') {
|
|
|
42
42
|
console.error('Fatal error:', error);
|
|
43
43
|
process.exit(1);
|
|
44
44
|
});
|
|
45
|
-
// MCP server is now running
|
|
45
|
+
// MCP server is now running and handling requests
|
|
46
|
+
// The server keeps the process alive, so we should not reach here
|
|
47
|
+
// But if we do, just exit cleanly
|
|
48
|
+
process.exit(0);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Only execute main() if NOT running MCP server
|
|
52
|
+
if (command !== 'mcp') {
|
|
53
|
+
main();
|
|
46
54
|
}
|
|
47
55
|
|
|
48
56
|
// Default options
|
|
@@ -418,5 +426,3 @@ async function main() {
|
|
|
418
426
|
process.exit(1);
|
|
419
427
|
}
|
|
420
428
|
}
|
|
421
|
-
|
|
422
|
-
main();
|
package/mcp-server.js
CHANGED