webcake-storefront-mcp 1.31.10 → 1.31.11
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.
- package/dist/api.js +10 -4
- package/dist/changelog.json +7 -7
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const DEFAULT_TIMEOUT = 15000;
|
|
2
|
-
/** Stamped on every page this MCP server creates (backend
|
|
3
|
-
* so the builder can flag AI-authored
|
|
2
|
+
/** Stamped on every site and page this MCP server creates (backend columns `sites.by_ai`
|
|
3
|
+
* and `pages.by_ai`), so the builder can flag AI-authored work. Mirrors the landing-page convention. */
|
|
4
4
|
export const BY_AI_MARKER = "mcp";
|
|
5
5
|
export class WebcakeCmsApi {
|
|
6
6
|
baseUrl;
|
|
@@ -78,14 +78,20 @@ export class WebcakeCmsApi {
|
|
|
78
78
|
* but NO pages. Returns { data: { site: { id, site_slug:{slug}, ... } } }.
|
|
79
79
|
* Fails with 403 when the account's site quota is reached (free plan: 4 sites). */
|
|
80
80
|
createSite(params) {
|
|
81
|
-
return this.request("POST", `/api/v1/dashboard/site/create`, {
|
|
81
|
+
return this.request("POST", `/api/v1/dashboard/site/create`, {
|
|
82
|
+
body: { ...params, by_ai: BY_AI_MARKER },
|
|
83
|
+
timeout: 60000,
|
|
84
|
+
});
|
|
82
85
|
}
|
|
83
86
|
/** Create a NEW site from a marketplace TEMPLATE by its theme id — the dedicated
|
|
84
87
|
* "use this template" API. Clones the template's pages, global sections, cart, popups,
|
|
85
88
|
* styles and fonts into a fresh account-owned site. Body: { id: <theme_id>, name, slug }.
|
|
86
89
|
* Returns { data: { site: { id, ... } } }. (403 if the free 4-site quota is reached, prod.) */
|
|
87
90
|
importStoreToTheme(params) {
|
|
88
|
-
return this.request("POST", `/api/v1/dashboard/site/import_store_to_theme`, {
|
|
91
|
+
return this.request("POST", `/api/v1/dashboard/site/import_store_to_theme`, {
|
|
92
|
+
body: { ...params, by_ai: BY_AI_MARKER },
|
|
93
|
+
timeout: 120000,
|
|
94
|
+
});
|
|
89
95
|
}
|
|
90
96
|
getSiteInfo() {
|
|
91
97
|
return this.request("GET", `/api/v1/site/${this.siteId}/`);
|
package/dist/changelog.json
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "1.31.11",
|
|
4
|
+
"d": "11/09/2026",
|
|
5
|
+
"type": "Changed",
|
|
6
|
+
"en": "create_site and create_site_from_template now stamp the new site with by_ai: \"mcp\" (persisted to the backend sites.by_ai column), extending the…",
|
|
7
|
+
"vi": "create_site và create_site_from_template nay đánh dấu site mới với by_ai: \"mcp\" (lưu vào cột sites.by_ai ở backend), mở rộng dấu hiệu AI-tạo vốn chỉ…"
|
|
8
|
+
},
|
|
2
9
|
{
|
|
3
10
|
"v": "1.31.10",
|
|
4
11
|
"d": "08/09/2026",
|
|
@@ -33,12 +40,5 @@
|
|
|
33
40
|
"type": "Removed",
|
|
34
41
|
"en": "scaffold_store_pages, scaffold_global_sections, and scaffold_popup tools are removed; pages are now composed free-form from elements using…",
|
|
35
42
|
"vi": "Các tool scaffold_store_pages, scaffold_global_sections và scaffold_popup đã bị xóa; các trang nay được tổ hợp tự do từ các phần tử bằng…"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"v": "1.31.5",
|
|
39
|
-
"d": "26/06/2026",
|
|
40
|
-
"type": "Added",
|
|
41
|
-
"en": "Column definitions accepted by create_collection and update_collection_columns now support five new optional fields: note (help text for the…",
|
|
42
|
-
"vi": "Định nghĩa cột được chấp nhận bởi create_collection và update_collection_columns nay hỗ trợ thêm năm trường tùy chọn mới: note (ghi chú/mô tả cho…"
|
|
43
43
|
}
|
|
44
44
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webcake-storefront-mcp",
|
|
3
|
-
"version": "1.31.
|
|
3
|
+
"version": "1.31.11",
|
|
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",
|