@mcp-s/cli 0.0.16 → 0.0.17

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/daemon.js CHANGED
@@ -303,10 +303,23 @@ async function performOAuthFlow(authServerUrl, resourceUrl) {
303
303
  if (open) {
304
304
  try {
305
305
  const { spawn: spawn2 } = await import("child_process");
306
- spawn2(open, [authUrl.toString()], {
307
- detached: true,
308
- stdio: "ignore"
309
- }).unref();
306
+ const urlStr = authUrl.toString();
307
+ let child;
308
+ if (process.platform === "win32") {
309
+ const escapedUrl = urlStr.replace(/&/g, "^&");
310
+ child = spawn2("cmd", ["/c", "start", '""', escapedUrl], {
311
+ detached: true,
312
+ stdio: "ignore"
313
+ });
314
+ } else {
315
+ child = spawn2(open, [urlStr], {
316
+ detached: true,
317
+ stdio: "ignore"
318
+ });
319
+ }
320
+ child.on("error", () => {
321
+ });
322
+ child.unref();
310
323
  } catch {
311
324
  console.error("Could not open browser automatically.");
312
325
  }
@@ -414,7 +427,7 @@ import { join as join2 } from "path";
414
427
  import { fileURLToPath } from "url";
415
428
 
416
429
  // src/version.ts
417
- var VERSION = "0.0.16";
430
+ var VERSION = "0.0.17";
418
431
 
419
432
  // src/client.ts
420
433
  function getRetryConfig(settings) {
package/dist/index.js CHANGED
@@ -299,10 +299,23 @@ async function performOAuthFlow(authServerUrl, resourceUrl) {
299
299
  if (open) {
300
300
  try {
301
301
  const { spawn: spawn2 } = await import("child_process");
302
- spawn2(open, [authUrl.toString()], {
303
- detached: true,
304
- stdio: "ignore"
305
- }).unref();
302
+ const urlStr = authUrl.toString();
303
+ let child;
304
+ if (process.platform === "win32") {
305
+ const escapedUrl = urlStr.replace(/&/g, "^&");
306
+ child = spawn2("cmd", ["/c", "start", '""', escapedUrl], {
307
+ detached: true,
308
+ stdio: "ignore"
309
+ });
310
+ } else {
311
+ child = spawn2(open, [urlStr], {
312
+ detached: true,
313
+ stdio: "ignore"
314
+ });
315
+ }
316
+ child.on("error", () => {
317
+ });
318
+ child.unref();
306
319
  } catch {
307
320
  console.error("Could not open browser automatically.");
308
321
  }
@@ -1300,7 +1313,7 @@ async function cleanupOrphanedDaemons() {
1300
1313
  }
1301
1314
 
1302
1315
  // src/version.ts
1303
- var VERSION = "0.0.16";
1316
+ var VERSION = "0.0.17";
1304
1317
 
1305
1318
  // src/client.ts
1306
1319
  function getRetryConfig(settings) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-s/cli",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "description": "A lightweight CLI for connecting AI agents to the Webrix MCP Gateway",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",