jefrichat-mcp 0.43.0 → 0.44.0
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/index.js +9 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -40385,6 +40385,15 @@ async function main() {
|
|
|
40385
40385
|
};
|
|
40386
40386
|
await server.connect(transport);
|
|
40387
40387
|
log(`MCP server ready \u2014 identity @${USERNAME}, Jefri Chat server ${SERVER}`);
|
|
40388
|
+
let shuttingDown = false;
|
|
40389
|
+
const shutdownOnHostClose = () => {
|
|
40390
|
+
if (shuttingDown) return;
|
|
40391
|
+
shuttingDown = true;
|
|
40392
|
+
log("host closed the connection (stdin EOF) \u2014 shutting connector down");
|
|
40393
|
+
process.exit(0);
|
|
40394
|
+
};
|
|
40395
|
+
process.stdin.once("end", shutdownOnHostClose);
|
|
40396
|
+
process.stdin.once("close", shutdownOnHostClose);
|
|
40388
40397
|
void checkForUpdate().then((u) => {
|
|
40389
40398
|
if (u?.outdated)
|
|
40390
40399
|
log(
|
package/package.json
CHANGED