@mgsoftwarebv/mg-dashboard-mcp 3.4.1 → 3.4.2

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 CHANGED
@@ -172,6 +172,17 @@ async function runBridge(handshake, proxyUrl2, refresh) {
172
172
  };
173
173
  await stdioServer.connect(new StdioServerTransport());
174
174
  console.error(`[Proxy] Bridge ready. Forwarding stdio \u2192 ${proxyUrl2}`);
175
+ await new Promise((resolve) => {
176
+ const keepAlive = setInterval(() => void 0, 2147483647);
177
+ const done = () => {
178
+ clearInterval(keepAlive);
179
+ resolve();
180
+ };
181
+ process.stdin.once("close", done);
182
+ process.stdin.once("end", done);
183
+ process.once("SIGINT", done);
184
+ process.once("SIGTERM", done);
185
+ });
175
186
  }
176
187
  async function runProxyMode(args2) {
177
188
  const proxyUrl2 = getArg(args2, "proxy-url") || process.env.MG_DASHBOARD_PROXY_URL;