@mcp-use/cli 2.13.1 → 2.13.2-canary.0

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
@@ -5290,16 +5290,18 @@ program.command("dev").description("Run development server with auto-reload and
5290
5290
  process.env.PORT = String(port);
5291
5291
  process.env.HOST = host;
5292
5292
  process.env.NODE_ENV = "development";
5293
- process.env.MCP_URL = mcpUrl;
5293
+ if (!process.env.MCP_URL) {
5294
+ process.env.MCP_URL = mcpUrl;
5295
+ }
5294
5296
  if (!useHmr) {
5295
5297
  console.log(source_default.gray("HMR disabled, using tsx watch (full restart)"));
5296
5298
  const processes = [];
5297
- const mcpUrl2 = `http://${host}:${port}`;
5298
5299
  const env2 = {
5299
5300
  PORT: String(port),
5300
5301
  HOST: host,
5301
5302
  NODE_ENV: "development",
5302
- MCP_URL: mcpUrl2
5303
+ // Preserve user-provided MCP_URL (e.g., for reverse proxy setups)
5304
+ MCP_URL: process.env.MCP_URL || mcpUrl
5303
5305
  };
5304
5306
  const { createRequire: createRequire3 } = await import("module");
5305
5307
  let cmd;