@mcp-use/cli 3.5.2-canary.6 → 3.5.2-canary.8

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
@@ -4239,6 +4239,14 @@ async function subscribeResourceCommand(name, uri) {
4239
4239
  }
4240
4240
  });
4241
4241
  console.log(formatInfo("Listening for updates... (Press Ctrl+C to stop)"));
4242
+ process.once("SIGINT", async () => {
4243
+ console.log(formatInfo("\nUnsubscribing and shutting down..."));
4244
+ try {
4245
+ await session.unsubscribeFromResource(uri);
4246
+ } catch (e) {
4247
+ }
4248
+ await cleanupAndExit(0);
4249
+ });
4242
4250
  await new Promise(() => {
4243
4251
  });
4244
4252
  } catch (error) {