webcake-storefront-mcp 1.25.0 → 1.26.0

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.26.0",
4
+ "d": "26/06/2026",
5
+ "type": "Fixed",
6
+ "en": "create_product now accepts a short_description parameter and sends it to the backend as [{description}] — the array shape the real product schema…",
7
+ "vi": "create_product nay nhận thêm tham số short_description và gửi lên backend dưới dạng [{description}] — đúng kiểu mảng mà schema sản phẩm thực tế yêu…"
8
+ },
2
9
  {
3
10
  "v": "1.25.0",
4
11
  "d": "26/06/2026",
@@ -33,12 +40,5 @@
33
40
  "type": "Changed",
34
41
  "en": "The grid-product factory now ships cross-industry neutral defaults (image_ratio:\"1/1\", gap_column/gap_row 24, products_per_load 12) instead of the…",
35
42
  "vi": "Factory grid-product nay sử dụng các giá trị mặc định trung lập đa ngành (image_ratio:\"1/1\", gap_column/gap_row 24, products_per_load 12) thay vì…"
36
- },
37
- {
38
- "v": "1.20.0",
39
- "d": "25/06/2026",
40
- "type": "Changed",
41
- "en": "The header generated by scaffold_global_sections now uses a menu element with menu-item children for navigation links, matching real production…",
42
- "vi": "Header được tạo bởi scaffold_global_sections nay sử dụng phần tử menu với các phần tử con menu-item cho các liên kết điều hướng, khớp với cấu trúc…"
43
43
  }
44
44
  ]
@@ -29,14 +29,15 @@ Images must be HOSTED URLs — get them from search_images or upload_images firs
29
29
  stock: z.number().default(100).describe("Stock quantity for the simple single-variation case"),
30
30
  sku: z.string().optional().describe("SKU / custom_id for the simple case (auto-generated if omitted)"),
31
31
  images: z.array(z.string()).optional().describe("Hosted image URLs (search_images/upload_images). First image becomes the product thumbnail."),
32
- description: z.string().optional().describe("Product description (HTML allowed)"),
32
+ description: z.string().optional().describe("Full product description (HTML allowed) — binds to product::description on the detail page."),
33
+ short_description: z.string().optional().describe("Short description / tagline (HTML allowed) — binds to product::short_description on cards + the detail page. Set this so cards aren't blank."),
33
34
  category_ids: z.array(z.string()).optional().describe("Product category IDs to file the product under (from create_product_category / list_categories)"),
34
35
  attributes: z
35
36
  .array(z.object({ name: z.string(), values: z.array(z.string()) }))
36
37
  .optional()
37
38
  .describe("Variant axes, e.g. [{name:'Color',values:['Đen','Trắng']},{name:'Size',values:['S','M','L']}]"),
38
39
  variations: z.array(variationSpec).optional().describe("Explicit per-SKU variations. Omit to auto-build one from price/stock/sku."),
39
- }, ({ name, price, original_price, stock, sku, images, description, category_ids, attributes, variations }) => handle(async () => {
40
+ }, ({ name, price, original_price, stock, sku, images, description, short_description, category_ids, attributes, variations }) => handle(async () => {
40
41
  let vars = variations;
41
42
  if (!vars || !vars.length) {
42
43
  if (price == null)
@@ -76,6 +77,8 @@ Images must be HOSTED URLs — get them from search_images or upload_images firs
76
77
  ribbons: [],
77
78
  product_attributes: attributes || [],
78
79
  ...(description ? { description } : {}),
80
+ // short_description is an ARRAY of {description} blocks on the real product shape.
81
+ ...(short_description ? { short_description: [{ description: short_description }] } : {}),
79
82
  ...(images && images.length ? { image: images[0] } : {}),
80
83
  };
81
84
  const res = await api.createProduct(productParams);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webcake-storefront-mcp",
3
- "version": "1.25.0",
3
+ "version": "1.26.0",
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",