burnrate 0.1.6 → 0.1.7
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/dist/cli/index.js +4 -3
- package/dist/cli/setup.js +0 -0
- package/dist/mcp/server.js +7 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -13,9 +13,10 @@ if (process.argv[2] === 'setup') {
|
|
|
13
13
|
}
|
|
14
14
|
if (process.argv[2] === 'mcp') {
|
|
15
15
|
await import('../mcp/server.js');
|
|
16
|
-
//
|
|
17
|
-
//
|
|
18
|
-
|
|
16
|
+
// server.connect() resolves immediately after setting up the transport,
|
|
17
|
+
// so we block here to prevent fallthrough to heavy imports.
|
|
18
|
+
// Node exits naturally when the MCP client closes stdin.
|
|
19
|
+
await new Promise(() => { });
|
|
19
20
|
}
|
|
20
21
|
// Heavy imports — only reached when NOT running setup
|
|
21
22
|
const { Command } = await import('commander');
|
package/dist/cli/setup.js
CHANGED
|
File without changes
|
package/dist/mcp/server.js
CHANGED
|
@@ -1874,4 +1874,10 @@ async function main() {
|
|
|
1874
1874
|
await server.connect(transport);
|
|
1875
1875
|
console.error('BURNRATE MCP Server running');
|
|
1876
1876
|
}
|
|
1877
|
-
|
|
1877
|
+
try {
|
|
1878
|
+
await main();
|
|
1879
|
+
}
|
|
1880
|
+
catch (err) {
|
|
1881
|
+
console.error(err);
|
|
1882
|
+
process.exit(1);
|
|
1883
|
+
}
|