webcake-landing-mcp 1.5.5 → 1.5.6

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.
@@ -1,4 +1,11 @@
1
1
  [
2
+ {
3
+ "v": "1.5.6",
4
+ "d": "13/10/2026",
5
+ "type": "Fixed",
6
+ "en": "The HTTP server now serves a 192px PNG at /favicon.ico, /favicon.png, and /apple-touch-icon.png (with matching <link rel=\"icon\">/<link…",
7
+ "vi": "HTTP server nay phục vụ PNG 192px tại /favicon.ico, /favicon.png, và /apple-touch-icon.png (kèm thẻ <link rel=\"icon\">/<link rel=\"apple-touch-icon\">…"
8
+ },
2
9
  {
3
10
  "v": "1.5.5",
4
11
  "d": "13/10/2026",
@@ -33,12 +40,5 @@
33
40
  "type": "Added",
34
41
  "en": "update_page now detects when the live page was edited outside this session (e.g. in the Webcake editor) since it was last read, and rejects the…",
35
42
  "vi": "update_page nay phát hiện khi trang đang sống đã bị chỉnh sửa bên ngoài phiên làm việc này (ví dụ trong editor Webcake) kể từ lần đọc gần nhất, và…"
36
- },
37
- {
38
- "v": "1.5.0",
39
- "d": "23/07/2026",
40
- "type": "Added",
41
- "en": "search_images now returns a sizes map on every photo (the delivered width/height in px for each src variant, accounting for retina dpr) plus a…",
42
- "vi": "search_images nay trả về một sizes map trên mỗi ảnh (kích thước width/height thực tế theo px của từng biến thể src, có tính đến dpr cho màn hình…"
43
43
  }
44
44
  ]
package/dist/http.js CHANGED
@@ -66,6 +66,21 @@ function ogImagePng() {
66
66
  return null;
67
67
  }
68
68
  }
69
+ // Raster brand icon (192px, from assets/icon-512.png) at src/icon.png → dist/icon.png.
70
+ // Favicon fetchers (Google s2, which the claude.ai connector list uses) skip
71
+ // SVG-only favicons and fall back to a globe, so /favicon.ico serves this PNG.
72
+ let ICON_PNG = null;
73
+ function iconPng() {
74
+ if (ICON_PNG)
75
+ return ICON_PNG;
76
+ try {
77
+ ICON_PNG = readFileSync(new URL("./icon.png", import.meta.url));
78
+ return ICON_PNG;
79
+ }
80
+ catch {
81
+ return null;
82
+ }
83
+ }
69
84
  function sendJson(res, status, body) {
70
85
  res.writeHead(status, { "content-type": "application/json" });
71
86
  res.end(JSON.stringify(body));
@@ -382,6 +397,13 @@ export async function startHttpServer(port) {
382
397
  const path = (req.url ?? "").split("?")[0];
383
398
  // Brand icon — clients (e.g. the claude.ai connector) fetch a favicon from the
384
399
  // server origin; without one they show a generic globe. Served raw as SVG.
400
+ if (req.method === "GET" && (path === "/favicon.ico" || path === "/favicon.png" || path === "/icon.png" || path === "/apple-touch-icon.png")) {
401
+ const png = iconPng();
402
+ if (png) {
403
+ res.writeHead(200, { "content-type": "image/png", "cache-control": "public, max-age=86400" });
404
+ return res.end(png);
405
+ }
406
+ }
385
407
  if (req.method === "GET" && (path === "/favicon.ico" || path === "/favicon.svg" || path === "/icon.svg")) {
386
408
  res.writeHead(200, { "content-type": ICON_MIME, "cache-control": "public, max-age=86400" });
387
409
  return res.end(ICON_SVG);
package/dist/icon.png ADDED
Binary file
package/dist/web-guide.js CHANGED
@@ -544,7 +544,9 @@ export function guideHtml(origin, lang = "vi") {
544
544
  <link rel="alternate" hreflang="vi" href="${origin}/">
545
545
  <link rel="alternate" hreflang="en" href="${origin}/?lang=en">
546
546
  <link rel="alternate" hreflang="x-default" href="${origin}/">
547
+ <link rel="icon" type="image/png" sizes="192x192" href="/favicon.png">
547
548
  <link rel="icon" type="image/svg+xml" href="/favicon.svg">
549
+ <link rel="apple-touch-icon" href="/apple-touch-icon.png">
548
550
  <meta property="og:type" content="website">
549
551
  <meta property="og:site_name" content="Webcake Landing MCP">
550
552
  <meta property="og:title" content="${m.title}">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webcake-landing-mcp",
3
- "version": "1.5.5",
3
+ "version": "1.5.6",
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",