@mcp-use/cli 2.13.8-canary.5 → 2.13.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.cjs CHANGED
@@ -5338,9 +5338,9 @@ program.command("dev").description("Run development server with auto-reload and
5338
5338
  processes.push(serverCommand.process);
5339
5339
  if (options.open !== false) {
5340
5340
  const startTime = Date.now();
5341
- const ready = await waitForServer(port, host);
5341
+ const browserHost = normalizeBrowserHost(host);
5342
+ const ready = await waitForServer(port, browserHost);
5342
5343
  if (ready) {
5343
- const browserHost = normalizeBrowserHost(host);
5344
5344
  const mcpEndpoint = `http://${browserHost}:${port}/mcp`;
5345
5345
  const inspectorUrl = `http://${browserHost}:${port}/inspector?autoConnect=${encodeURIComponent(mcpEndpoint)}`;
5346
5346
  const readyTime = Date.now() - startTime;
@@ -5456,9 +5456,9 @@ program.command("dev").description("Run development server with auto-reload and
5456
5456
  await runningServer.listen(port);
5457
5457
  globalThis.__mcpUseHmrMode = true;
5458
5458
  if (options.open !== false) {
5459
- const ready = await waitForServer(port, host);
5459
+ const browserHost = normalizeBrowserHost(host);
5460
+ const ready = await waitForServer(port, browserHost);
5460
5461
  if (ready) {
5461
- const browserHost = normalizeBrowserHost(host);
5462
5462
  const mcpEndpoint = `http://${browserHost}:${port}/mcp`;
5463
5463
  const inspectorUrl = `http://${browserHost}:${port}/inspector?autoConnect=${encodeURIComponent(mcpEndpoint)}`;
5464
5464
  const readyTime = Date.now() - startTime;