sbuilder-mcp 0.112.0 → 0.112.2
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/CHANGELOG.md +15 -0
- package/CHANGELOG.vi.md +15 -0
- package/README.md +1 -1
- package/README.vi.md +1 -1
- package/dist/catalog/api.generated.js +46 -4
- package/dist/catalog/deadkeys.generated.js +3 -3
- package/dist/catalog/elements.generated.js +5 -1
- package/dist/catalog/shapes.generated.js +3 -3
- package/dist/catalog/source.generated.js +2 -2
- package/dist/tools/store.js +2 -2
- package/dist/tools/tracking.js +13 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,21 @@ All notable changes to this project are documented in this file.
|
|
|
6
6
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
7
7
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
8
8
|
|
|
9
|
+
## [0.112.2] - 2026-11-21
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- `sb_store` `action: "tracking"` lists Google Ads (`google_ads`) and Microsoft Clarity (`microsoft_clarity`) trackers alongside the existing providers.
|
|
13
|
+
- `sb_store` `action: "tracking"` reports `serverEvents` (`status`, `error`, `at`) for a Meta or TikTok tracker that has a stored token, without ever returning the token.
|
|
14
|
+
- The element catalog adds the carousel `config.navPosition` key, regenerated against web_builder 7ca95442e.
|
|
15
|
+
|
|
16
|
+
## [0.112.1] - 2026-11-21
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
- The API catalog adds `GET /api/sites/{siteId}/forms/submissions/channels`, so `sb_api_find` and `sb_api_call` can count form submissions and orders by traffic channel (ChatGPT, Facebook, Google) over a `from`/`to` window.
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
- The forms submissions endpoint in the API catalog accepts an `orderId` query parameter that returns only the response which produced that order, and the catalog is regenerated against web_builder 72a54e8.
|
|
23
|
+
|
|
9
24
|
## [0.112.0] - 2026-11-20
|
|
10
25
|
|
|
11
26
|
### Added
|
package/CHANGELOG.vi.md
CHANGED
|
@@ -6,6 +6,21 @@ Mọi thay đổi đáng chú ý của dự án được ghi lại trong file n
|
|
|
6
6
|
Định dạng dựa trên [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
7
7
|
và dự án tuân theo [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
8
8
|
|
|
9
|
+
## [0.112.2] - 2026-11-21
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- `sb_store` `action: "tracking"` liệt kê thêm các tracker Google Ads (`google_ads`) và Microsoft Clarity (`microsoft_clarity`) bên cạnh các nhà cung cấp hiện có.
|
|
13
|
+
- `sb_store` `action: "tracking"` báo cáo `serverEvents` (`status`, `error`, `at`) cho tracker Meta hoặc TikTok đã lưu token, và không bao giờ trả về token.
|
|
14
|
+
- Danh mục element có thêm khóa `config.navPosition` của carousel, được tạo lại theo web_builder 7ca95442e.
|
|
15
|
+
|
|
16
|
+
## [0.112.1] - 2026-11-21
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
- Danh mục API có thêm `GET /api/sites/{siteId}/forms/submissions/channels`, giúp `sb_api_find` và `sb_api_call` đếm lượt gửi biểu mẫu và đơn hàng theo kênh lưu lượng (ChatGPT, Facebook, Google) trong khoảng `from`/`to`.
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
- Endpoint lượt gửi biểu mẫu trong danh mục API nhận thêm tham số truy vấn `orderId` để chỉ trả về phản hồi đã tạo ra đơn hàng đó, và danh mục được tạo lại theo web_builder 72a54e8.
|
|
23
|
+
|
|
9
24
|
## [0.112.0] - 2026-11-20
|
|
10
25
|
|
|
11
26
|
### Added
|
package/README.md
CHANGED
|
@@ -142,7 +142,7 @@ in this client: one would put the very key the platform exists to hold back into
|
|
|
142
142
|
| `sb_store` | Run a store flow that must happen in a fixed order — `checkout` (the four writes that make a working one), `checkout_sync` (the store's current payment and delivery methods into every existing order form, checkout page republished), `form` (any of the platform's 17 templates with its own field document), `chrome` (one shared header or footer on a real site menu — site name linked home, desktop menu, mobile drawer, search, cart and account icons), `menu` (a menu node bound to the site's menu, its links resolved), `overlay_attach` (a pop-up or quick view on the open page), `cart` (the site's cart drawer, when it has none; `relocalize` puts an existing one in the site's language) and `app` (a built-in app plus the pages it needs), `global_attach` / `global_detach` (put an EXISTING shared section on the open page, or take it off), `global_promote` (make a section on the page a NEW shared section) and `template_save` (save a section as a reusable template) |
|
|
143
143
|
| `sb_undo` | Undo / redo this session's writes — page and form edits and `sb_api_call` PUTs, each named by tool and target, the open page's by default (`all: true` for every page); a page is refused if someone else saved it since. The platform's versions and history (`sb_page_version`) outlive this process |
|
|
144
144
|
|
|
145
|
-
Forty tools, **
|
|
145
|
+
Forty tools, **1013 API operations** (376 of the 467 writes carrying a body shape read
|
|
146
146
|
off the handler), 125 elements, 98 binding sources. `sb_api_find`
|
|
147
147
|
is an index rather than a tool per endpoint, so the tool list stays short while everything
|
|
148
148
|
the platform can do stays reachable — and operations added to the platform arrive with the
|
package/README.vi.md
CHANGED
|
@@ -138,7 +138,7 @@ nhét ngược lại vào mọi bản cài.
|
|
|
138
138
|
| `sb_store` | Chạy một luồng cửa hàng bắt buộc đúng thứ tự — `checkout` (bốn lệnh ghi tạo nên trang thanh toán), `checkout_sync` (đưa phương thức thanh toán và giao hàng hiện tại vào mọi form đặt hàng đã có, publish lại trang thanh toán), `form` (một trong 17 template của nền tảng kèm field document của nó), `chrome` (một header hoặc footer dùng chung trên menu thật của site — tên site dẫn về trang chủ, menu desktop, drawer mobile, ô tìm kiếm, icon giỏ hàng và tài khoản), `menu` (một node menu bind vào menu của site, link đã phân giải), `overlay_attach` (một pop-up hay quick view trên trang đang mở), `cart` (ngăn giỏ hàng của site, khi chưa có; `relocalize` đưa ngăn giỏ đã có về ngôn ngữ của site), `app` (một app dựng sẵn kèm những trang nó cần), và `global_attach` / `global_detach` (đặt một section dùng chung ĐÃ CÓ lên trang đang mở, hoặc gỡ ra), `global_promote` (biến một section trên trang thành section dùng chung MỚI) và `template_save` (lưu một section làm mẫu dùng lại) |
|
|
139
139
|
| `sb_undo` | Hoàn tác / làm lại các thao tác ghi trong phiên — chỉnh sửa trang, form và PUT qua `sb_api_call`, mỗi mục ghi tên tool và đối tượng, mặc định của trang đang mở (`all: true` cho mọi trang); trang bị từ chối nếu người khác đã lưu sau đó. Version và history của nền tảng (`sb_page_version`) sống lâu hơn process này |
|
|
140
140
|
|
|
141
|
-
Bốn mươi tool, **
|
|
141
|
+
Bốn mươi tool, **1013 operation API** (376 trong 467 lệnh ghi có hình dạng body đọc thẳng
|
|
142
142
|
từ handler), 125 element, 98 nguồn binding. `sb_api_find` là
|
|
143
143
|
một chỉ mục chứ không phải mỗi endpoint một tool, nên danh sách tool vẫn ngắn trong khi mọi
|
|
144
144
|
thứ nền tảng làm được vẫn với tới — và operation mới thêm bên nền tảng sẽ tự có sau lần
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const SWAGGER_SOURCE = {
|
|
2
|
-
"operations":
|
|
2
|
+
"operations": 1013,
|
|
3
3
|
"definitions": 445,
|
|
4
4
|
"bodyCarrying": 493,
|
|
5
5
|
"bodyUndescribed": 122,
|
|
@@ -12710,6 +12710,48 @@ export const API_OPERATIONS = [
|
|
|
12710
12710
|
"required": false,
|
|
12711
12711
|
"type": "integer",
|
|
12712
12712
|
"description": "Page size (max 200)"
|
|
12713
|
+
},
|
|
12714
|
+
{
|
|
12715
|
+
"name": "orderId",
|
|
12716
|
+
"in": "query",
|
|
12717
|
+
"required": false,
|
|
12718
|
+
"type": "string",
|
|
12719
|
+
"description": "Only the response whose sink made this order — its channel is the order's traffic source"
|
|
12720
|
+
}
|
|
12721
|
+
],
|
|
12722
|
+
"bodyDescribed": false,
|
|
12723
|
+
"bodyRef": null,
|
|
12724
|
+
"credential": "siteScoped"
|
|
12725
|
+
},
|
|
12726
|
+
{
|
|
12727
|
+
"id": "get:/api/sites/{siteId}/forms/submissions/channels",
|
|
12728
|
+
"method": "GET",
|
|
12729
|
+
"path": "/api/sites/{siteId}/forms/submissions/channels",
|
|
12730
|
+
"tags": [
|
|
12731
|
+
"forms"
|
|
12732
|
+
],
|
|
12733
|
+
"summary": "Count submissions and orders by traffic channel (ChatGPT, Facebook, Google…)",
|
|
12734
|
+
"params": [
|
|
12735
|
+
{
|
|
12736
|
+
"name": "siteId",
|
|
12737
|
+
"in": "path",
|
|
12738
|
+
"required": true,
|
|
12739
|
+
"type": "string",
|
|
12740
|
+
"description": "Site ID"
|
|
12741
|
+
},
|
|
12742
|
+
{
|
|
12743
|
+
"name": "from",
|
|
12744
|
+
"in": "query",
|
|
12745
|
+
"required": false,
|
|
12746
|
+
"type": "string",
|
|
12747
|
+
"description": "Window start (RFC3339 or YYYY-MM-DD)"
|
|
12748
|
+
},
|
|
12749
|
+
{
|
|
12750
|
+
"name": "to",
|
|
12751
|
+
"in": "query",
|
|
12752
|
+
"required": false,
|
|
12753
|
+
"type": "string",
|
|
12754
|
+
"description": "Last day counted (YYYY-MM-DD, inclusive) or an exclusive RFC3339 instant"
|
|
12713
12755
|
}
|
|
12714
12756
|
],
|
|
12715
12757
|
"bodyDescribed": false,
|
|
@@ -14260,7 +14302,7 @@ export const API_OPERATIONS = [
|
|
|
14260
14302
|
"tags": [
|
|
14261
14303
|
"integrations"
|
|
14262
14304
|
],
|
|
14263
|
-
"summary": "List or connect site integrations (GA4, GTM, Meta Pixel, TikTok Pixel)",
|
|
14305
|
+
"summary": "List or connect site integrations (GA4, GTM, Meta Pixel, TikTok Pixel, Google Ads, Clarity)",
|
|
14264
14306
|
"params": [
|
|
14265
14307
|
{
|
|
14266
14308
|
"name": "siteId",
|
|
@@ -14295,7 +14337,7 @@ export const API_OPERATIONS = [
|
|
|
14295
14337
|
"tags": [
|
|
14296
14338
|
"integrations"
|
|
14297
14339
|
],
|
|
14298
|
-
"summary": "List or connect site integrations (GA4, GTM, Meta Pixel, TikTok Pixel)",
|
|
14340
|
+
"summary": "List or connect site integrations (GA4, GTM, Meta Pixel, TikTok Pixel, Google Ads, Clarity)",
|
|
14299
14341
|
"params": [
|
|
14300
14342
|
{
|
|
14301
14343
|
"name": "siteId",
|
|
@@ -33256,7 +33298,7 @@ export const API_DEFINITIONS = {
|
|
|
33256
33298
|
"type": "string"
|
|
33257
33299
|
},
|
|
33258
33300
|
"provider": {
|
|
33259
|
-
"description": "Provider is one of google_analytics, google_tag_manager, facebook_pixel, tiktok_pixel, openai_pixel.",
|
|
33301
|
+
"description": "Provider is one of google_analytics, google_tag_manager, facebook_pixel, tiktok_pixel, openai_pixel, google_ads, microsoft_clarity.",
|
|
33260
33302
|
"type": "string"
|
|
33261
33303
|
},
|
|
33262
33304
|
"siteId": {
|
|
@@ -33778,6 +33778,7 @@ export const ELEMENTS = {
|
|
|
33778
33778
|
"pauseOnHover": true,
|
|
33779
33779
|
"loop": true,
|
|
33780
33780
|
"transition": "slide",
|
|
33781
|
+
"navPosition": "sides",
|
|
33781
33782
|
"transitionMs": 350,
|
|
33782
33783
|
"dotColor": "",
|
|
33783
33784
|
"dotActiveColor": "",
|
|
@@ -33802,6 +33803,7 @@ export const ELEMENTS = {
|
|
|
33802
33803
|
"pauseOnHover",
|
|
33803
33804
|
"loop",
|
|
33804
33805
|
"transition",
|
|
33806
|
+
"navPosition",
|
|
33805
33807
|
"transitionMs",
|
|
33806
33808
|
"dotColor",
|
|
33807
33809
|
"dotActiveColor",
|
|
@@ -33888,6 +33890,7 @@ export const ELEMENTS = {
|
|
|
33888
33890
|
"pauseOnHover",
|
|
33889
33891
|
"loop",
|
|
33890
33892
|
"transition",
|
|
33893
|
+
"navPosition",
|
|
33891
33894
|
"transitionMs",
|
|
33892
33895
|
"dotColor",
|
|
33893
33896
|
"dotActiveColor",
|
|
@@ -33922,7 +33925,8 @@ export const ELEMENTS = {
|
|
|
33922
33925
|
"Add a carousel-slide per slide; put an image plus a heading/button inside each",
|
|
33923
33926
|
"Toggle config.showArrows / config.showDots for the navigation affordances",
|
|
33924
33927
|
"Enable config.autoplay (with config.autoplayMs) for a self-advancing banner",
|
|
33925
|
-
"Set config.transition to \"fade\" for a cross-fade instead of a horizontal slide"
|
|
33928
|
+
"Set config.transition to \"fade\" for a cross-fade instead of a horizontal slide",
|
|
33929
|
+
"Set config.navPosition to \"bottom-right\" to group the arrows in the bottom-right corner with the pagination bars beside them (a fashion-store hero); \"sides\" (default) centres them on each edge"
|
|
33926
33930
|
],
|
|
33927
33931
|
"semantics": [
|
|
33928
33932
|
"carousel",
|
|
@@ -4,7 +4,7 @@ export const SHAPE_SOURCE = {
|
|
|
4
4
|
"fromHandlers": 364,
|
|
5
5
|
"fromSwaggerOnly": 12,
|
|
6
6
|
"withReadOnly": 29,
|
|
7
|
-
"structsRead":
|
|
7
|
+
"structsRead": 3881
|
|
8
8
|
};
|
|
9
9
|
export const REQUEST_SHAPES = {
|
|
10
10
|
"post:/api/ai/credits": {
|
|
@@ -5400,7 +5400,7 @@ export const REQUEST_SHAPES = {
|
|
|
5400
5400
|
{
|
|
5401
5401
|
"name": "provider",
|
|
5402
5402
|
"type": "string",
|
|
5403
|
-
"note": "Provider is one of google_analytics, google_tag_manager, facebook_pixel, tiktok_pixel, openai_pixel."
|
|
5403
|
+
"note": "Provider is one of google_analytics, google_tag_manager, facebook_pixel, tiktok_pixel, openai_pixel, google_ads, microsoft_clarity."
|
|
5404
5404
|
},
|
|
5405
5405
|
{
|
|
5406
5406
|
"name": "enabled",
|
|
@@ -5443,7 +5443,7 @@ export const REQUEST_SHAPES = {
|
|
|
5443
5443
|
{
|
|
5444
5444
|
"name": "provider",
|
|
5445
5445
|
"type": "string",
|
|
5446
|
-
"note": "Provider is one of google_analytics, google_tag_manager, facebook_pixel, tiktok_pixel, openai_pixel."
|
|
5446
|
+
"note": "Provider is one of google_analytics, google_tag_manager, facebook_pixel, tiktok_pixel, openai_pixel, google_ads, microsoft_clarity."
|
|
5447
5447
|
},
|
|
5448
5448
|
{
|
|
5449
5449
|
"name": "enabled",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// GENERATED by scripts/gen-catalog.ts — do not edit by hand.
|
|
2
2
|
// The platform commit every other generated file here describes.
|
|
3
3
|
export const PLATFORM_SOURCE = {
|
|
4
|
-
"commit": "
|
|
5
|
-
"committedAt": "2026-11-
|
|
4
|
+
"commit": "7ca95442e98b7639f0a6eda640897766d1e19b01",
|
|
5
|
+
"committedAt": "2026-11-21T16:13:23+07:00",
|
|
6
6
|
"dirty": false
|
|
7
7
|
};
|
package/dist/tools/store.js
CHANGED
|
@@ -48,7 +48,7 @@ import { attachGlobal, buildChrome, detachGlobal, markSiteTemplate, promoteGloba
|
|
|
48
48
|
import { bindMenu } from './menu.js';
|
|
49
49
|
import { attachOverlay, ensureCartDrawer, relocalizeCartDrawer } from './overlay.js';
|
|
50
50
|
import { installApp } from './app.js';
|
|
51
|
-
import { trackingFlow } from './tracking.js';
|
|
51
|
+
import { TRACKING_FIELDS, trackingFlow } from './tracking.js';
|
|
52
52
|
import { BUILTIN_APP_KEYS } from '../catalog/appscaffolds.generated.js';
|
|
53
53
|
import { ELEMENTS } from '../catalog/elements.generated.js';
|
|
54
54
|
import { PAGE_TYPES } from '../catalog/storepages.generated.js';
|
|
@@ -658,7 +658,7 @@ export function registerStoreTools(server, ctx, session) {
|
|
|
658
658
|
'single image; needs a page of the site open'),
|
|
659
659
|
text: z.string().optional(),
|
|
660
660
|
provider: z
|
|
661
|
-
.enum(
|
|
661
|
+
.enum(Object.keys(TRACKING_FIELDS))
|
|
662
662
|
.optional(),
|
|
663
663
|
enabled: z.boolean().optional(),
|
|
664
664
|
dry_run: z.boolean().optional(),
|
package/dist/tools/tracking.js
CHANGED
|
@@ -27,6 +27,8 @@ export const TRACKING_FIELDS = {
|
|
|
27
27
|
facebook_pixel: 'pixelId',
|
|
28
28
|
tiktok_pixel: 'pixelId',
|
|
29
29
|
openai_pixel: 'pixelId',
|
|
30
|
+
google_ads: 'conversionId',
|
|
31
|
+
microsoft_clarity: 'projectId',
|
|
30
32
|
};
|
|
31
33
|
export async function trackingFlow(ctx, siteId, args) {
|
|
32
34
|
const site = encodeURIComponent(siteId);
|
|
@@ -155,6 +157,17 @@ export async function trackingFlow(ctx, siteId, args) {
|
|
|
155
157
|
id: idOf(r),
|
|
156
158
|
enabled: r.enabled,
|
|
157
159
|
...(r.problem ? { problem: r.problem } : {}),
|
|
160
|
+
// Server-side events (Meta CAPI / TikTok Events API): the token is set
|
|
161
|
+
// on the Integrations screen; this reports whether sending works.
|
|
162
|
+
...(r.tokenSet
|
|
163
|
+
? {
|
|
164
|
+
serverEvents: {
|
|
165
|
+
status: r.config?.serverStatus || 'waiting',
|
|
166
|
+
...(r.config?.serverError ? { error: r.config.serverError } : {}),
|
|
167
|
+
...(r.config?.serverAt ? { at: r.config.serverAt } : {}),
|
|
168
|
+
},
|
|
169
|
+
}
|
|
170
|
+
: {}),
|
|
158
171
|
};
|
|
159
172
|
}),
|
|
160
173
|
channelsLast30Days: channels,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sbuilder-mcp",
|
|
3
|
-
"version": "0.112.
|
|
3
|
+
"version": "0.112.2",
|
|
4
4
|
"description": "MCP server that designs and operates a Store Builder site — pages, data, theme and publish — through the platform's own API and live-edit protocol.",
|
|
5
5
|
"mcpName": "io.github.vuluu2k/sbuilder-mcp",
|
|
6
6
|
"type": "module",
|