@browserstack/mcp-server 1.2.6 → 1.2.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.
@@ -55,7 +55,7 @@ function buildDesktopUrl(args, e, isLocal) {
55
55
  resolution: "responsive-mode",
56
56
  speed: "1",
57
57
  local: isLocal ? "true" : "false",
58
- start: "true",
58
+ ...(isLocal ? {} : { start: "true" }),
59
59
  });
60
60
  return `https://live.browserstack.com/dashboard#${params.toString()}`;
61
61
  }
@@ -75,7 +75,7 @@ function buildMobileUrl(args, d, isLocal) {
75
75
  scale_to_fit: "true",
76
76
  speed: "1",
77
77
  local: isLocal ? "true" : "false",
78
- start: "true",
78
+ ...(isLocal ? {} : { start: "true" }),
79
79
  });
80
80
  return `https://live.browserstack.com/dashboard#${params.toString()}`;
81
81
  }
@@ -85,12 +85,13 @@ function openBrowser(launchUrl) {
85
85
  const command = process.platform === "darwin"
86
86
  ? ["open", launchUrl]
87
87
  : process.platform === "win32"
88
- ? ["cmd", "/c", "start", launchUrl]
88
+ ? ["cmd", "/c", "start", `""`, `"${launchUrl}"`]
89
89
  : ["xdg-open", launchUrl];
90
90
  // nosemgrep:javascript.lang.security.detect-child-process.detect-child-process
91
91
  const child = childProcess.spawn(command[0], command.slice(1), {
92
92
  stdio: "ignore",
93
93
  detached: true,
94
+ ...(process.platform === "win32" ? { shell: true } : {}),
94
95
  });
95
96
  child.on("error", (err) => logger.error(`Failed to open browser: ${err}. URL: ${launchUrl}`));
96
97
  child.unref();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@browserstack/mcp-server",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "BrowserStack's Official MCP Server",
5
5
  "mcpName": "io.github.browserstack/mcp-server",
6
6
  "main": "dist/index.js",