webcake-landing-mcp 1.5.8 → 1.5.9

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.9",
4
+ "d": "13/10/2026",
5
+ "type": "Fixed",
6
+ "en": "The HTTP server now answers a request carrying an unknown mcp-session-id with 404 instead of 400, so clients re-initialize instead of staying stuck…",
7
+ "vi": "HTTP server nay trả về 404 (thay vì 400) khi nhận request với mcp-session-id không xác định, giúp client tự re-initialize thay vì bị kẹt ở trạng…"
8
+ },
2
9
  {
3
10
  "v": "1.5.8",
4
11
  "d": "13/10/2026",
@@ -33,12 +40,5 @@
33
40
  "type": "Added",
34
41
  "en": "ingest_html and ingest_url now return font_groups (the page's self-hosted @font-face fonts, already shaped for settings.fontGroups) and…",
35
42
  "vi": "ingest_html và ingest_url nay trả về font_groups (các font @font-face tự host của trang, đã đóng gói theo đúng dạng settings.fontGroups) và…"
36
- },
37
- {
38
- "v": "1.5.3",
39
- "d": "17/09/2026",
40
- "type": "Added",
41
- "en": "validate_page now detects inline base64 images (data:image/…;base64,… URIs) anywhere in an element's specials, a styles background, gallery…",
42
- "vi": "validate_page nay phát hiện ảnh base64 nhúng (URI data:image/…;base64,…) ở bất kỳ đâu trong specials của phần tử, nền styles, gallery item.link,…"
43
43
  }
44
44
  ]
package/dist/http.js CHANGED
@@ -497,6 +497,11 @@ export async function startHttpServer(port) {
497
497
  await transport.handleRequest(req, res, body);
498
498
  return;
499
499
  }
500
+ // Unknown session (e.g. sessions are in-memory and the server restarted):
501
+ // the spec requires 404 so the client re-initializes. A 400 here left
502
+ // claude.ai "connected" with no tools after every redeploy.
503
+ if (sessionId)
504
+ return rpcError(res, 404, "Session not found (expired or server restarted) — send a new initialize request.");
500
505
  // New session: only a POST `initialize` may open one.
501
506
  if (req.method === "POST") {
502
507
  const body = await readBody(req);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webcake-landing-mcp",
3
- "version": "1.5.8",
3
+ "version": "1.5.9",
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",