webcake-storefront-mcp 1.12.0 → 1.12.1

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.12.1",
4
+ "d": "24/06/2026",
5
+ "type": "Fixed",
6
+ "en": "save_file_version and get_file_versions both sent the parameter as cms_file_id, but the backend reads file_id; versions were saved unlinked to any…",
7
+ "vi": "save_file_version và get_file_versions đều gửi tham số dưới key cms_file_id, trong khi backend đọc file_id; các phiên bản được lưu mà không liên kết…"
8
+ },
2
9
  {
3
10
  "v": "1.12.0",
4
11
  "d": "24/06/2026",
@@ -33,12 +40,5 @@
33
40
  "type": "Added",
34
41
  "en": "search_images now accepts an upload parameter (default true) that re-hosts each Pexels result on the WebCake CDN and adds a cdn_url field to every…",
35
42
  "vi": "search_images nay nhận thêm tham số upload (mặc định true) để tự động tải từng kết quả Pexels lên WebCake CDN và bổ sung trường cdn_url vào mỗi ảnh,…"
36
- },
37
- {
38
- "v": "1.8.0",
39
- "d": "23/06/2026",
40
- "type": "Added",
41
- "en": "New list_automations tool returns each automation's id, name, status, and trigger info so agents can find the automation_id required by send_mail or…",
42
- "vi": "Tool mới list_automations trả về id, name, status và thông tin trigger của từng automation, giúp agent tìm được automation_id cần truyền vào…"
43
43
  }
44
44
  ]
@@ -249,7 +249,9 @@ Example: "get_Products" → function_name="Products", method="GET"`, {
249
249
  cms_file_id: z.string().describe("CMS file ID"),
250
250
  content: z.string().describe("Content to save"),
251
251
  is_public: z.boolean().default(false).describe("Mark as public version"),
252
- }, ({ cms_file_id, content, is_public }) => handle(() => api.saveFileVersion({ cms_file_id, content, is_public })));
253
- server.tool("get_file_versions", "View version history of a CMS file", { cms_file_id: z.string().describe("CMS file ID") }, ({ cms_file_id }) => handle(() => api.getFileVersions({ cms_file_id })));
252
+ }, ({ cms_file_id, content, is_public }) =>
253
+ // Backend reads `file_id` (it stores it as cms_file_id); a `cms_file_id` key alone is ignored.
254
+ handle(() => api.saveFileVersion({ file_id: cms_file_id, content, is_public })));
255
+ server.tool("get_file_versions", "View version history of a CMS file. Each version includes its saved content — to restore, pass that content back to update_http_function (the http_function file) or update_cms_file.", { cms_file_id: z.string().describe("CMS file ID") }, ({ cms_file_id }) => handle(() => api.getFileVersions({ file_id: cms_file_id })));
254
256
  server.tool("toggle_debug_render", "Toggle debug render mode for a CMS file", { cms_file_id: z.string().describe("CMS file ID") }, ({ cms_file_id }) => handle(() => api.toggleDebugRender({ cms_file_id })));
255
257
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webcake-storefront-mcp",
3
- "version": "1.12.0",
3
+ "version": "1.12.1",
4
4
  "description": "MCP server for the WebCake/StoreCake storefront builder — page CRUD, page authoring, products, orders, and more",
5
5
  "mcpName": "io.github.vuluu2k/webcake-storefront-mcp",
6
6
  "license": "MIT",