@mcp-use/cli 2.2.3-canary.6 → 2.2.3-canary.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.
package/dist/index.js CHANGED
@@ -1238,8 +1238,16 @@ async function startTunnel(port, subdomain) {
1238
1238
  if (urlMatch && !resolved) {
1239
1239
  const url = urlMatch[0];
1240
1240
  const fullDomain = urlMatch[1];
1241
- const subdomainMatch = fullDomain.match(/^([a-z0-9-]+)\./);
1242
- const extractedSubdomain = subdomainMatch ? subdomainMatch[1] : fullDomain.split(".")[0];
1241
+ const subdomainMatch = fullDomain.match(/^([a-z0-9-]+)\./i);
1242
+ let extractedSubdomain = subdomainMatch ? subdomainMatch[1] : fullDomain.split(".")[0];
1243
+ if (!/^[a-z0-9-]+$/i.test(extractedSubdomain)) {
1244
+ console.warn(
1245
+ import_chalk3.default.yellow(
1246
+ `Warning: Extracted subdomain "${extractedSubdomain}" does not match expected format.`
1247
+ )
1248
+ );
1249
+ extractedSubdomain = "";
1250
+ }
1243
1251
  resolved = true;
1244
1252
  clearTimeout(setupTimeout);
1245
1253
  console.log(import_chalk3.default.green.bold(`\u2713 Tunnel established: ${url}/mcp`));
@@ -1627,7 +1635,12 @@ program.command("start").description("Start production server").option("-p, --pa
1627
1635
  import_chalk3.default.gray(`Found existing subdomain: ${existingSubdomain}`)
1628
1636
  );
1629
1637
  }
1630
- } catch {
1638
+ } catch (error) {
1639
+ console.debug(
1640
+ import_chalk3.default.gray(
1641
+ `Debug: Failed to read or parse mcp-use.json: ${error instanceof Error ? error.message : String(error)}`
1642
+ )
1643
+ );
1631
1644
  }
1632
1645
  const tunnelInfo = await startTunnel(port, existingSubdomain);
1633
1646
  mcpUrl = tunnelInfo.url;
package/dist/index.mjs CHANGED
@@ -1217,8 +1217,16 @@ async function startTunnel(port, subdomain) {
1217
1217
  if (urlMatch && !resolved) {
1218
1218
  const url = urlMatch[0];
1219
1219
  const fullDomain = urlMatch[1];
1220
- const subdomainMatch = fullDomain.match(/^([a-z0-9-]+)\./);
1221
- const extractedSubdomain = subdomainMatch ? subdomainMatch[1] : fullDomain.split(".")[0];
1220
+ const subdomainMatch = fullDomain.match(/^([a-z0-9-]+)\./i);
1221
+ let extractedSubdomain = subdomainMatch ? subdomainMatch[1] : fullDomain.split(".")[0];
1222
+ if (!/^[a-z0-9-]+$/i.test(extractedSubdomain)) {
1223
+ console.warn(
1224
+ chalk3.yellow(
1225
+ `Warning: Extracted subdomain "${extractedSubdomain}" does not match expected format.`
1226
+ )
1227
+ );
1228
+ extractedSubdomain = "";
1229
+ }
1222
1230
  resolved = true;
1223
1231
  clearTimeout(setupTimeout);
1224
1232
  console.log(chalk3.green.bold(`\u2713 Tunnel established: ${url}/mcp`));
@@ -1606,7 +1614,12 @@ program.command("start").description("Start production server").option("-p, --pa
1606
1614
  chalk3.gray(`Found existing subdomain: ${existingSubdomain}`)
1607
1615
  );
1608
1616
  }
1609
- } catch {
1617
+ } catch (error) {
1618
+ console.debug(
1619
+ chalk3.gray(
1620
+ `Debug: Failed to read or parse mcp-use.json: ${error instanceof Error ? error.message : String(error)}`
1621
+ )
1622
+ );
1610
1623
  }
1611
1624
  const tunnelInfo = await startTunnel(port, existingSubdomain);
1612
1625
  mcpUrl = tunnelInfo.url;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-use/cli",
3
- "version": "2.2.3-canary.6",
3
+ "version": "2.2.3-canary.7",
4
4
  "description": "Build tool for MCP UI widgets - bundles React components into standalone HTML pages for Model Context Protocol servers",
5
5
  "author": "mcp-use, Inc.",
6
6
  "license": "MIT",
@@ -44,8 +44,8 @@
44
44
  "tsx": "^4.0.0",
45
45
  "vite": "^6.0.0",
46
46
  "ws": "^8.18.0",
47
- "@mcp-use/inspector": "0.5.3-canary.6",
48
- "mcp-use": "1.3.3-canary.6"
47
+ "@mcp-use/inspector": "0.5.3-canary.7",
48
+ "mcp-use": "1.3.3-canary.7"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@types/node": "^20.0.0",