webcake-landing-mcp 1.0.52 → 1.0.53

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.
@@ -35,10 +35,22 @@ function parseArgs(argv) {
35
35
  }
36
36
  function openBrowser(url) {
37
37
  const platform = process.platform;
38
- const cmd = platform === "darwin" ? "open" : platform === "win32" ? "cmd" : "xdg-open";
39
- const args = platform === "win32" ? ["/c", "start", "", url] : [url];
40
38
  try {
41
- spawn(cmd, args, { stdio: "ignore", detached: true }).unref();
39
+ if (platform === "win32") {
40
+ // `cmd /c start` parses an unquoted `&` as a command separator, which cuts
41
+ // the connect URL right before `&state=...` (the login then bounces back to
42
+ // the loopback without state and is rejected). Pass the args verbatim with
43
+ // the URL double-quoted so cmd hands `start` the full URL. The first quoted
44
+ // arg ("") is `start`'s window title.
45
+ spawn("cmd", ["/c", "start", '""', `"${url}"`], {
46
+ stdio: "ignore",
47
+ detached: true,
48
+ windowsVerbatimArguments: true,
49
+ }).unref();
50
+ return;
51
+ }
52
+ const cmd = platform === "darwin" ? "open" : "xdg-open";
53
+ spawn(cmd, [url], { stdio: "ignore", detached: true }).unref();
42
54
  }
43
55
  catch {
44
56
  /* ignore — the URL is also printed */
@@ -1,4 +1,11 @@
1
1
  [
2
+ {
3
+ "v": "1.0.53",
4
+ "d": "10/06/2026",
5
+ "type": "Fixed",
6
+ "en": "The login command on Windows now opens the connect URL correctly: cmd /c start previously split the URL at the first & character (treating it as a…",
7
+ "vi": "Lệnh login trên Windows nay mở URL kết nối chính xác: trước đây cmd /c start tách URL tại ký tự & đầu tiên (do hiểu & là dấu phân cách lệnh), khiến…"
8
+ },
2
9
  {
3
10
  "v": "1.0.52",
4
11
  "d": "10/06/2026",
@@ -33,12 +40,5 @@
33
40
  "type": "Added",
34
41
  "en": "create_page now caches the expanded source in an in-memory draft store when validation fails and returns a draft_id alongside the validation errors,…",
35
42
  "vi": "create_page nay lưu source đã expand vào bộ nhớ draft khi xác thực thất bại và trả về draft_id kèm theo danh sách lỗi, cho phép agent chỉ sửa các…"
36
- },
37
- {
38
- "v": "1.0.47",
39
- "d": "10/06/2026",
40
- "type": "Added",
41
- "en": "New patch_page tool edits an existing page by element id without re-sending the whole source: the agent sends per-element ops (update, replace,…",
42
- "vi": "Công cụ patch_page mới cho phép chỉnh sửa trang hiện có theo element id mà không cần gửi lại toàn bộ source: agent gửi các op theo element (update,…"
43
43
  }
44
44
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webcake-landing-mcp",
3
- "version": "1.0.52",
3
+ "version": "1.0.53",
4
4
  "description": "MCP server exposing Webcake landing-page element schemas + AI usage hints, and persisting LLM-generated page sources to a Webcake backend.",
5
5
  "mcpName": "io.github.vuluu2k/webcake-landing-mcp",
6
6
  "type": "module",