webcake-storefront-mcp 1.41.0 → 2.0.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.
@@ -14,61 +14,16 @@ export function registerMarketingTools(server, api, handle) {
14
14
  content: z.string().optional(),
15
15
  status: z.boolean().optional(),
16
16
  }).passthrough();
17
- // ── Transactional email templates ──
18
- server.tool("get_email_templates", "Get the site's transactional email templates (order confirmation, receipt, shop notice).", {}, () => handle(async () => unwrap(await api.getSendEmail(), "send_email")));
19
- server.tool("save_email_templates", "Create/update the transactional email templates. Each block is { title, content, status }.", {
20
- id: z.string().optional().describe("Existing record id (omit to create)"),
21
- email: z.string().optional().describe("Sender/site email"),
22
- email_customer_order: emailBlock.optional().describe("Email to customer on new order"),
23
- email_customer_recieve: emailBlock.optional().describe("Email to customer on receipt"),
24
- email_order_to_shop: emailBlock.optional().describe("Email to shop on new order"),
25
- }, (body) => handle(() => api.saveSendEmail(body)));
26
- // ── Contacts ──
27
- server.tool("list_contacts", "List contact-form submissions.", { ...list, status: z.number().optional().describe("Filter by status code") }, (query) => handle(async () => unwrap(await api.listContacts(query), "contact")));
28
17
  server.tool("create_contact", "Create a contact entry.", {
29
18
  name: z.string().describe("Contact name"),
30
19
  number_phone: z.string().optional().describe("Phone number"),
31
20
  email: z.string().optional().describe("Email"),
32
21
  note: z.string().optional().describe("Note"),
33
22
  }, (body) => handle(() => api.createContact(body)));
34
- server.tool("delete_contacts", "Delete contacts by id.", { ids: z.array(z.string()).min(1).describe("Contact ids") }, ({ ids }) => handle(() => api.deleteContacts(ids)));
35
- // ── Subscribers ──
36
- server.tool("list_subscribers", "List newsletter subscribers.", list, (query) => handle(async () => unwrap(await api.listSubscribers(query), "subscriber")));
37
- server.tool("create_subscriber", "Add a newsletter subscriber (upsert by email or phone).", {
38
- email: z.string().optional().describe("Email"),
39
- phone_number: z.string().optional().describe("Phone number"),
40
- first_name: z.string().optional().describe("First name"),
41
- last_name: z.string().optional().describe("Last name"),
42
- note: z.string().optional().describe("Note"),
43
- utm_source: z.string().optional(),
44
- utm_medium: z.string().optional(),
45
- utm_campaign: z.string().optional(),
46
- ref: z.string().optional().describe("Referral code"),
47
- }, (body) => handle(async () => unwrap(await api.createSubscriber(body), "subscriber")));
48
- server.tool("delete_subscribers", "Delete subscribers by id.", { ids: z.array(z.string()).min(1).describe("Subscriber ids") }, ({ ids }) => handle(() => api.deleteSubscribers(ids)));
49
- // ── Customer tags ──
50
- server.tool("list_customer_tags", "List customer tags for the site.", {}, () => handle(async () => unwrap(await api.listCustomerTags(), "customer_tags")));
51
23
  server.tool("upsert_customer_tag", "Create or update a customer tag. Omit `id` to create.", { id: z.string().optional().describe("Tag id (omit to create)"), name: z.string().describe("Tag name") }, (body) => handle(async () => unwrap(await api.upsertCustomerTag(body), "tag")));
52
24
  server.tool("assign_customer_tags", "Add or remove tags on multiple customers at once.", {
53
25
  customer_ids: z.array(z.string()).min(1).describe("Customer ids"),
54
26
  tags: z.array(z.string()).min(1).describe("Tag ids/names"),
55
27
  type: z.enum(["add", "remove"]).optional().describe('"add" (default) or "remove"'),
56
28
  }, (body) => handle(() => api.assignCustomerTags(body)));
57
- // ── Employees / team ──
58
- server.tool("list_employees", "List the site's employees (team members with permissions).", {}, () => handle(async () => unwrap(await api.listEmployees(), "employees")));
59
- server.tool("invite_employee", "Invite an employee to the site by email.", { email: z.string().describe("Invitee email") }, ({ email }) => handle(() => api.inviteEmployee(email)));
60
- server.tool("update_employee_permissions", "Change an employee's permission bitmask. Cannot change self or owner.", {
61
- id: z.string().describe("site_permission id"),
62
- permissions: z.number().describe("Permission bitmask integer"),
63
- }, ({ id, permissions }) => handle(() => api.updateEmployeePermissions({ id, permissions })));
64
- server.tool("delete_employees", "Remove employees (and any pending invitations) by site_permission id.", { ids: z.array(z.string()).min(1).describe("site_permission ids") }, ({ ids }) => handle(() => api.deleteEmployees(ids)));
65
- // ── Invitations (account-level) ──
66
- server.tool("list_invitations", "List site invitations for the current account.", {}, () => handle(async () => unwrap(await api.listInvitations(), "invitations")));
67
- server.tool("accept_invitation", "Accept a site invitation.", { invitation_id: z.string().describe("Invitation id") }, ({ invitation_id }) => handle(() => api.acceptInvitation(invitation_id)));
68
- server.tool("refuse_invitation", "Refuse a site invitation.", { invitation_id: z.string().describe("Invitation id") }, ({ invitation_id }) => handle(() => api.refuseInvitation(invitation_id)));
69
- // ── Insight / notifications ──
70
- server.tool("get_insight_today", "Get today's insight snapshot (orders, customers, conversion).", {}, () => handle(async () => unwrap(await api.getInsightToday(), "insight_data_today")));
71
- server.tool("get_insight", "Get analytics insight over a time range (defaults to last 7 days on the UI).", { start_time: z.string().optional().describe("ISO start time"), end_time: z.string().optional().describe("ISO end time") }, (query) => handle(async () => unwrap(await api.getInsight(query), "statistic")));
72
- server.tool("list_notifications", "List notifications for the current account.", {}, () => handle(async () => unwrap(await api.listNotifications(), "notifications")));
73
- server.tool("mark_notification_read", "Mark a notification as read.", { notification_id: z.string().describe("Notification id") }, ({ notification_id }) => handle(() => api.markNotificationRead(notification_id)));
74
29
  }
@@ -23,15 +23,6 @@ const SAVE = {
23
23
  };
24
24
  export function registerMultilingualTools(server, api, handle) {
25
25
  const unwrap = (res, key) => res?.data?.[key] ?? res?.[key] ?? res?.data ?? res;
26
- server.tool("add_site_languages", `Set the full list of enabled languages for the site (used to add, remove, toggle, or change currency —
27
- always send the complete updated list). Requires the multilingual app installed.`, {
28
- languages: z.array(z.object({
29
- lang: z.string().describe("Language code, e.g. 'en', 'vi'"),
30
- currency: z.string().optional().describe("Currency code for this language"),
31
- status: z.string().optional().describe("Status, e.g. 'ACTIVE'"),
32
- }).passthrough()).describe("Complete list of enabled languages"),
33
- }, ({ languages }) => handle(async () => unwrap(await api.mlAddLanguages(languages), "multiple_language")));
34
- server.tool("set_default_language", "Change which enabled language is the site default.", { language_code: z.string().describe("Language code to make default") }, ({ language_code }) => handle(() => api.mlChangeDefault(language_code)));
35
26
  server.tool("list_translations", `List translations for a resource type in a target language. Resources: ${RESOURCES.join(", ")}.
36
27
  'notification' takes no language filter; 'site' returns a flat key→value object.`, {
37
28
  resource: z.enum(RESOURCES).describe("Resource type to translate"),
@@ -95,11 +86,4 @@ translated name/slug/content are untouched; the translation row is created if mi
95
86
  await api.mlSaveTranslations(SAVE[resource].action, { [path]: [item], language_code });
96
87
  return { success: true, resource, id, language_code, meta_tags };
97
88
  }));
98
- server.tool("auto_translate", `Machine-translate a JSON blob from one language to another. \`type\` must be a valid translation
99
- type (e.g. 'product', 'category'). Returns { trans, count }.`, {
100
- type: z.string().describe("Translation type, e.g. 'product'"),
101
- source_language: z.string().describe("Source language code"),
102
- target_language: z.string().describe("Target language code"),
103
- json: z.record(z.any()).describe("Key→text object to translate"),
104
- }, (body) => handle(async () => unwrap(await api.mlTranslateJson(body), "translate_json")));
105
89
  }
@@ -38,5 +38,4 @@ export function registerOrderTools(server, api, handle) {
38
38
  server.tool("get_order", "Get full order details by ID: customer info, items, payment, shipping, discounts, etc.", {
39
39
  id: z.string().describe("Order ID"),
40
40
  }, ({ id }) => handle(() => api.getOrder(id)));
41
- server.tool("count_orders_by_status", "Get order count grouped by status. Useful for dashboard overview", {}, () => handle(() => api.countOrdersByStatus()));
42
41
  }
@@ -420,9 +420,6 @@ For full rewrites, use update_site_custom_code instead.`, {
420
420
  return { ...res, warning: `Page deleted, but removing it from global sections' page lists failed: ${e?.message || e}` };
421
421
  }
422
422
  }));
423
- server.tool("get_page_versions", "View version history of a page", {
424
- page_id: z.string().describe("Page ID"),
425
- }, ({ page_id }) => handle(() => api.getPageVersions(page_id)));
426
423
  server.tool("list_page_contents", "List multi-language contents (translations) of the site's pages and global sections. Pass page_id + language_code to read one page's translation.", {
427
424
  page_id: z.string().optional().describe("Page ID — narrows the result to that page"),
428
425
  language_code: z.string().optional().describe("With page_id: return just that language's content map"),
@@ -35,10 +35,5 @@ export function registerProductTools(server, api, handle) {
35
35
  server.tool("get_product", "Get full product details by ID: name, description, price, variations, images, attributes, SEO, etc.", {
36
36
  id: z.string().describe("Product ID"),
37
37
  }, ({ id }) => handle(() => api.getProduct(id)));
38
- server.tool("search_products", "Search products by keyword. Returns matching products with basic info", {
39
- term: z.string().describe("Search keyword"),
40
- page: z.number().optional().describe("Page number"),
41
- limit: z.number().optional().describe("Items per page"),
42
- }, ({ term, page, limit }) => handle(() => api.searchProducts({ term, page, limit })));
43
38
  server.tool("list_categories", "List all product categories of the site", {}, () => handle(() => api.listCategories()));
44
39
  }
@@ -14,14 +14,10 @@ import { registerSiteStyleTools } from "./site-style.js";
14
14
  import { registerAppTools } from "./apps.js";
15
15
  import { registerReviewTools } from "./reviews.js";
16
16
  import { registerAppointmentTools } from "./appointment.js";
17
- import { registerAffiliateTools } from "./affiliate.js";
18
- import { registerCatalogExtraTools } from "./catalog-extras.js";
19
17
  import { registerSiteConfigTools } from "./site-config.js";
20
18
  import { registerMarketingTools } from "./marketing.js";
21
19
  import { registerMultilingualTools } from "./multilingual.js";
22
- import { registerMediaTools } from "./media.js";
23
20
  import { registerAppsExtraTools } from "./apps-extra.js";
24
- import { registerSaleChannelTools } from "./sale-channels.js";
25
21
  import { registerPromotionTools } from "./promotions.js";
26
22
  import { registerComboTools } from "./combos.js";
27
23
  import { registerGlobalSourceTools } from "./global-sources.js";
@@ -33,22 +29,30 @@ import { registerBuilderTools } from "./builder.js";
33
29
  import { registerBuilderExtraTools } from "./builder-extras.js";
34
30
  import { registerPageDraftTools } from "./page-draft.js";
35
31
  import { registerSitePlanTools } from "./site-plans.js";
32
+ import { registerApiGatewayTools } from "./api-gateway.js";
33
+ import { readFileSync } from "node:fs";
34
+ import { FAMILIES, familyTool } from "./families.js";
35
+ /** Tool names folded into api_get / api_call → their route (invoke_tool points callers there). */
36
+ const retired = (() => {
37
+ try {
38
+ return JSON.parse(readFileSync(new URL("./retired-tools.json", import.meta.url), "utf8"));
39
+ }
40
+ catch {
41
+ return {};
42
+ }
43
+ })();
36
44
  /** Tool groups. `core` groups load natively; the rest are reached via search_tools + invoke_tool. */
37
45
  export const GROUPS = [
38
- { name: "session", title: "Session & apps", core: true, desc: "Connection context, site switch, app install/list, result cache" },
39
- { name: "web", title: "Page building", core: true, desc: "Pages, builder elements, sections, global sources/sections, styles, images, publish" },
46
+ { name: "session", title: "Session & apps", core: true, desc: "Connection context, site switch/create, apps, cached results, the backend API gateway (api_find / api_get / api_call)" },
47
+ { name: "web", title: "Page building", core: true, desc: "Pages, elements, drafts, global sources/sections, site code, themes, images, validate/build/publish" },
40
48
  { name: "store", title: "Store", core: true, desc: "Products, categories, collections, orders, promotions, combos" },
41
49
  { name: "content", title: "Content & customers", core: true, desc: "Blog articles, customers, CMS files / HTTP functions" },
42
- { name: "catalog", title: "Catalog extras", desc: "Brands, suppliers, product tags, ribbons, materials, variations, measurement, price-contact" },
43
- { name: "site_config", title: "Site configuration", desc: "Custom domains, SEO redirects, shipping, UTM links, fonts, site settings, API keys, publish history, site plans/subscriptions (gói cước), site counts" },
44
- { name: "marketing", title: "Marketing & CRM", desc: "Email templates, contacts, subscribers, customer tags, employees, invitations, insight, notifications" },
45
- { name: "i18n", title: "Multilingual", desc: "Enable languages and manage translations for products/categories/articles/etc." },
46
- { name: "media", title: "Media & PWA", desc: "Media library folders/content, capacity, base64 upload, PWA manifest" },
47
- { name: "appointment", title: "Appointment booking", desc: "Booking calendars, appointments, employees, addresses, classifies" },
48
- { name: "affiliate", title: "Affiliate", desc: "Affiliate programs, products, orders, accounts, payouts, statistics" },
49
- { name: "reviews", title: "Product reviews", desc: "List, create, reply, moderate, delete product reviews" },
50
- { name: "apps_advanced", title: "Advanced apps", desc: "Product design, personal product design (PPD), course app" },
51
- { name: "channels", title: "Sale channels", desc: "Sitemap sync, partner product feeds, Google merchants" },
50
+ { name: "site_config", title: "Site configuration", desc: "Site settings (merged safely), font groups, site plans/subscriptions (gói cước), site counts" },
51
+ { name: "marketing", title: "Marketing & CRM", desc: "Create contacts, customer tags and tag assignment" },
52
+ { name: "i18n", title: "Multilingual", desc: "Translations for products/categories/articles/etc. and their SEO" },
53
+ { name: "appointment", title: "Appointment booking", desc: "Create and update booking calendars (weekly hours, overrides)" },
54
+ { name: "reviews", title: "Product reviews", desc: "List, read and write product reviews" },
55
+ { name: "apps_advanced", title: "Advanced apps", desc: "Create a course (course app)" },
52
56
  { name: "automation", title: "Automation", desc: "Marketing automations and send-mail" },
53
57
  { name: "image_seo", title: "Image alt / SEO audit", desc: "Scan site images, read them, bulk-fill and set alt text" },
54
58
  ];
@@ -68,14 +72,10 @@ const MODULES = [
68
72
  ["session", registerAppTools],
69
73
  ["reviews", registerReviewTools],
70
74
  ["appointment", registerAppointmentTools],
71
- ["affiliate", registerAffiliateTools],
72
- ["catalog", registerCatalogExtraTools],
73
75
  ["site_config", registerSiteConfigTools],
74
76
  ["marketing", registerMarketingTools],
75
77
  ["i18n", registerMultilingualTools],
76
- ["media", registerMediaTools],
77
78
  ["apps_advanced", registerAppsExtraTools],
78
- ["channels", registerSaleChannelTools],
79
79
  ["store", registerPromotionTools],
80
80
  ["store", registerComboTools],
81
81
  ["web", registerGlobalSourceTools],
@@ -87,7 +87,13 @@ const MODULES = [
87
87
  ["web", registerBuilderExtraTools],
88
88
  ["web", registerPageDraftTools],
89
89
  ["site_config", registerSitePlanTools],
90
+ ["session", registerApiGatewayTools],
90
91
  ];
92
+ /** Every collected tool of a server, by name — members of a family included (tests, gateway). */
93
+ const ENTRIES = new WeakMap();
94
+ export function toolEntries(server) {
95
+ return ENTRIES.get(server) ?? new Map();
96
+ }
91
97
  /** Captures server.tool(...) calls into a registry instead of registering them. */
92
98
  class ToolCollector {
93
99
  entries = [];
@@ -129,7 +135,7 @@ const READ_ONLY = /^(list|get|search|read|query|find|count|semantic|check|valida
129
135
  const DESTRUCTIVE = /^(delete|remove|uninstall|empty|clear|block|unblock|refuse)_/;
130
136
  const ADDITIVE = /^(create|add|upload|install|invite|duplicate|save)_/;
131
137
  export function toolAnnotations(name) {
132
- if (READ_ONLY.test(name))
138
+ if (READ_ONLY.test(name) || name === "api_find" || name === "api_get")
133
139
  return { readOnlyHint: true };
134
140
  if (DESTRUCTIVE.test(name))
135
141
  return { readOnlyHint: false, destructiveHint: true };
@@ -150,7 +156,8 @@ then invoke_read_tool(name, arguments) for read-only tools (list_/get_/search_
150
156
  if the user's request touches an [on-demand] area (or you're unsure), search_tools BEFORE concluding.
151
157
  Tip: search_tools matches English tool names/descriptions — translate the user's intent into English keywords.
152
158
 
153
- ${lines.join("\n")}`;
159
+ ${lines.join("\n")}
160
+ Anything else the backend does (domains, redirects, shipping, UTM, brands/tags/ribbons, media library, PWA, affiliate, partner feeds, employees, email templates…) has no dedicated tool: api_find("keywords") → api_get / api_call.`;
154
161
  }
155
162
  /** Build the full registry, register native (core) tools, and add the search gateway.
156
163
  * Returns counts for diagnostics. */
@@ -164,11 +171,27 @@ export function installTools(server, api, handle, opts = {}) {
164
171
  for (const e of collector.entries)
165
172
  registry.set(e.name, e);
166
173
  const native = resolveNativeGroups(opts.tools ?? process.env.WEBCAKE_TOOLS);
167
- // Register native (core/enabled) tools directly on the MCP server.
174
+ // Register native (core/enabled) tools directly on the MCP server. Tools of a family are
175
+ // exposed once, as that family's actions (see families.ts).
168
176
  let nativeCount = 0;
177
+ const folded = new Map(); // member → family
178
+ for (const [fam, [purpose, names]] of Object.entries(FAMILIES)) {
179
+ const members = names.map((n) => registry.get(n)).filter((e) => !!e && native.has(e.group));
180
+ if (members.length < 2)
181
+ continue;
182
+ members.forEach((m) => folded.set(m.name, fam));
183
+ const t = familyTool(fam, purpose, members);
184
+ const ann = members.map((m) => toolAnnotations(m.name));
185
+ const annotations = ann.every((a) => a.readOnlyHint) ? { readOnlyHint: true } : ann.some((a) => a.destructiveHint) ? { readOnlyHint: false, destructiveHint: true } : { readOnlyHint: false };
186
+ server.registerTool(fam, { description: t.description, inputSchema: z.object(t.shape).strict(), annotations }, t.handler);
187
+ nativeCount++;
188
+ }
189
+ ENTRIES.set(server, registry);
169
190
  for (const e of collector.entries) {
170
- if (native.has(e.group)) {
171
- server.tool(e.name, e.description, e.shape, toolAnnotations(e.name), e.handler);
191
+ if (native.has(e.group) && !folded.has(e.name)) {
192
+ // .strict(): an argument the tool doesn't take is REFUSED with its name, not silently
193
+ // dropped (a dropped page_id/site_id made a call act on the wrong page).
194
+ server.registerTool(e.name, { description: e.description, inputSchema: z.object(e.shape).strict(), annotations: toolAnnotations(e.name) }, e.handler);
172
195
  nativeCount++;
173
196
  }
174
197
  }
@@ -250,17 +273,21 @@ courses, sale channels, automation…). Returns name, group, description and JSO
250
273
  native: native.has(e.group),
251
274
  annotations: toolAnnotations(e.name),
252
275
  description: e.description,
276
+ ...(folded.has(e.name) ? { call_as: `${folded.get(e.name)}({ action: "${e.name}", … })` } : {}),
253
277
  input_schema: jsonSchema(e),
254
278
  }));
255
279
  }));
256
280
  const runTool = async (name, args, readOnlyOnly) => {
257
281
  const e = registry.get(name);
282
+ const route = retired[name];
283
+ if (!e && route)
284
+ return errorResult(`Error: "${name}" was folded into the API gateway — run ${route.startsWith("get:") ? "api_get" : "api_call"}({ id: "${route}", … }) (call sheet: api_find({ id: "${route}" })).`);
258
285
  if (!e)
259
286
  return errorResult(`Error: unknown tool "${name}". Use search_tools to find available tools.`);
260
287
  if (readOnlyOnly && !toolAnnotations(name).readOnlyHint) {
261
288
  return errorResult(`Error: "${name}" is not read-only — run it with invoke_tool.`);
262
289
  }
263
- const parsed = z.object(e.shape).safeParse(args ?? {});
290
+ const parsed = z.object(e.shape).strict().safeParse(args ?? {});
264
291
  if (!parsed.success) {
265
292
  const issues = parsed.error.issues.map((i) => `${i.path.join(".") || "(root)"}: ${i.message}`).join("; ");
266
293
  return errorResult(`Error: invalid arguments for "${name}": ${issues}`);
@@ -0,0 +1,141 @@
1
+ {
2
+ "accept_invitation": "post:/api/v1/dashboard/site/invitations/accept",
3
+ "add_domain": "post:/api/v1/dashboard/site/:site_id/domains/create",
4
+ "add_site_languages": "post:/api/v1/dashboard/site/:site_id/multilingual/add_multiple_language",
5
+ "auto_translate": "post:/api/v1/dashboard/site/:site_id/multilingual/translate_json",
6
+ "block_phone_customers": "post:/api/v1/dashboard/site/:site_id/settings/block_phone_number/upsert_block_phone_customers",
7
+ "check_domain": "post:/api/v1/dashboard/site/:site_id/domains/check_domain",
8
+ "count_orders_by_status": "get:/api/v1/dashboard/site/:site_id/orders/count_by_status",
9
+ "create_appointment_address": "post:/api/v1/dashboard/site/:site_id/appointment/create_appointment_address",
10
+ "create_appointment_classify": "post:/api/v1/dashboard/site/:site_id/appointment/create_appointment_classify",
11
+ "create_appointment_employee": "post:/api/v1/dashboard/site/:site_id/appointment/create_appointment_employee",
12
+ "create_partner_feed": "post:/api/v1/dashboard/site/:site_id/sale_channels/partner_feeds/create",
13
+ "create_products_from_device_templates": "post:/api/v1/dashboard/site/:site_id/applications/product_design/create_product_by_device_template",
14
+ "create_redirect_url": "post:/api/v1/dashboard/site/:site_id/seos/redirect_urls/create",
15
+ "create_saved_filter": "post:/api/v1/dashboard/site/:site_id/saved_filters/create",
16
+ "create_site_utm": "post:/api/v1/dashboard/site/:site_id/site_utms/create",
17
+ "create_subscriber": "post:/api/v1/dashboard/site/:site_id/subscriber/create",
18
+ "debug_function": "post:/api/v1/dashboard/site/:site_id/cms_files/debug",
19
+ "delete_affiliate_accounts": "post:/api/v1/dashboard/site/:site_id/affiliate/delete_account_affiliates",
20
+ "delete_affiliate_products": "post:/api/v1/dashboard/site/:site_id/affiliate/delete_product_affiliates",
21
+ "delete_appointment_addresses": "post:/api/v1/dashboard/site/:site_id/appointment/delete_appointment_addresses",
22
+ "delete_appointment_calendars": "post:/api/v1/dashboard/site/:site_id/appointment/delete_appointment_calendars",
23
+ "delete_appointment_classifies": "post:/api/v1/dashboard/site/:site_id/appointment/delete_appointment_classifies",
24
+ "delete_appointment_employees": "post:/api/v1/dashboard/site/:site_id/appointment/delete_appointment_employees",
25
+ "delete_contacts": "post:/api/v1/dashboard/site/:site_id/contact/delete",
26
+ "delete_course": "delete:/api/v1/dashboard/site/:site_id/course-app/:id",
27
+ "delete_courses": "post:/api/v1/dashboard/site/:site_id/course-app/delete_many",
28
+ "delete_domain": "post:/api/v1/dashboard/site/:site_id/domains/delete",
29
+ "delete_employees": "post:/api/v1/dashboard/site/:site_id/settings/employee/delete_employees",
30
+ "delete_partner_feeds": "post:/api/v1/dashboard/site/:site_id/sale_channels/partner_feeds/delete",
31
+ "delete_redirect_urls": "post:/api/v1/dashboard/site/:site_id/seos/redirect_urls/delete",
32
+ "delete_saved_filter": "delete:/api/v1/dashboard/site/:site_id/saved_filters/:id",
33
+ "delete_site_utms": "post:/api/v1/dashboard/site/:site_id/site_utms/delete",
34
+ "delete_subscribers": "post:/api/v1/dashboard/site/:site_id/subscriber/delete",
35
+ "duplicate_appointment_calendars": "post:/api/v1/dashboard/site/:site_id/appointment/duplicate_appointment_calendars",
36
+ "empty_media_trash": "post:/api/v1/site/:site_id/media/empty_trash",
37
+ "get_affiliate_programs": "get:/api/v1/dashboard/site/:site_id/affiliate/program_affiliates",
38
+ "get_affiliate_statistic": "get:/api/v1/dashboard/site/:site_id/affiliate/statistic",
39
+ "get_category": "get:/api/v1/dashboard/site/:site_id/categories/:category_id",
40
+ "get_course": "get:/api/v1/dashboard/site/:site_id/course-app/:id",
41
+ "get_course_members": "get:/api/v1/dashboard/site/:site_id/course-app/members",
42
+ "get_device_templates": "get:/api/v1/dashboard/site/:site_id/applications/product_design/get_group_device_tempalte",
43
+ "get_email_templates": "get:/api/v1/dashboard/site/:site_id/send_email/all",
44
+ "get_file_versions": "get:/api/v1/dashboard/site/:site_id/cms_files/version_file",
45
+ "get_insight": "get:/api/v1/dashboard/site/:site_id/insight/all",
46
+ "get_insight_today": "get:/api/v1/dashboard/site/:site_id/insight/today",
47
+ "get_media_capacity": "get:/api/v1/site/:site_id/media/capacity",
48
+ "get_page_versions": "get:/api/v1/site/:site_id/page_versions/:page_id",
49
+ "get_ppd_variation_template": "get:/api/v1/dashboard/site/:site_id/applications/personal_product_design/get_product_variation_template",
50
+ "get_price_contact": "get:/api/v1/dashboard/site/:site_id/settings/price_contact/get",
51
+ "get_product_measurement": "get:/api/v1/dashboard/site/:site_id/settings/product_measurement",
52
+ "get_pwa": "get:/api/v1/site/:site_id/pwa",
53
+ "get_shipping": "get:/api/v1/dashboard/site/:site_id/settings/shipping",
54
+ "get_variation": "get:/api/v1/dashboard/site/:site_id/products/variation/:variation_id",
55
+ "invite_employee": "post:/api/v1/dashboard/site/:site_id/settings/employee/invite",
56
+ "list_affiliate_accounts": "get:/api/v1/dashboard/site/:site_id/affiliate/account_affiliates",
57
+ "list_affiliate_orders": "get:/api/v1/dashboard/site/:site_id/affiliate/order_affiliates",
58
+ "list_affiliate_payouts": "get:/api/v1/dashboard/site/:site_id/affiliate/payout_affiliates",
59
+ "list_affiliate_products": "get:/api/v1/dashboard/site/:site_id/affiliate/product_affiliates",
60
+ "list_api_keys": "get:/api/v1/site/:site_id/api_keys/all",
61
+ "list_appointment_addresses": "get:/api/v1/dashboard/site/:site_id/appointment/appointment_addresses",
62
+ "list_appointment_calendars": "get:/api/v1/dashboard/site/:site_id/appointment/appointment_calendars",
63
+ "list_appointment_classifies": "get:/api/v1/dashboard/site/:site_id/appointment/appointment_classifies",
64
+ "list_appointment_employees": "get:/api/v1/dashboard/site/:site_id/appointment/appointment_employees",
65
+ "list_appointments": "get:/api/v1/dashboard/site/:site_id/appointment/appointments",
66
+ "list_blocked_phones": "get:/api/v1/dashboard/site/:site_id/settings/block_phone_number/all",
67
+ "list_cms_files": "get:/api/v1/dashboard/site/:site_id/cms_files",
68
+ "list_contacts": "get:/api/v1/dashboard/site/:site_id/contact/all",
69
+ "list_courses": "get:/api/v1/dashboard/site/:site_id/course-app",
70
+ "list_customer_tags": "get:/api/v1/dashboard/site/:site_id/customer/customer_tags",
71
+ "list_domains": "get:/api/v1/dashboard/site/:site_id/domains/all",
72
+ "list_employees": "get:/api/v1/dashboard/site/:site_id/settings/employee/all",
73
+ "list_entity_logs": "get:/api/v1/dashboard/site/:site_id/system_logs/all",
74
+ "list_font_groups": "get:/api/v1/site/:site_id/load_font_groups",
75
+ "list_fonts": "get:/api/v1/site/:site_id/load_fonts",
76
+ "list_google_merchants": "get:/api/v1/dashboard/site/:site_id/sale_channels/google/merchants",
77
+ "list_invitations": "get:/api/v1/dashboard/site/invitations/all",
78
+ "list_materials": "get:/api/v1/dashboard/site/:site_id/products/materials/all",
79
+ "list_media_all": "get:/api/v1/site/:site_id/media/all",
80
+ "list_media_content": "get:/api/v1/site/:site_id/media/content",
81
+ "list_media_folders": "get:/api/v1/site/:site_id/media/folder",
82
+ "list_notifications": "get:/api/v1/dashboard/site/notifications/all",
83
+ "list_partner_feed_products": "get:/api/v1/dashboard/site/:site_id/sale_channels/partner_feeds/:partner_feed_id/products/all",
84
+ "list_partner_feeds": "get:/api/v1/dashboard/site/:site_id/sale_channels/partner_feeds/all",
85
+ "list_ppd": "get:/api/v1/dashboard/site/:site_id/applications/personal_product_design/get_all_ppd",
86
+ "list_product_brands": "get:/api/v1/dashboard/site/:site_id/products/product_brands/all",
87
+ "list_product_suppliers": "get:/api/v1/dashboard/site/:site_id/products/product_suppliers/all",
88
+ "list_product_tags": "get:/api/v1/dashboard/site/:site_id/products/product_tags/all",
89
+ "list_publish_histories": "get:/api/v1/site/:site_id/publish_histories",
90
+ "list_redirect_urls": "get:/api/v1/dashboard/site/:site_id/seos/redirect_urls/all",
91
+ "list_ribbons": "get:/api/v1/dashboard/site/:site_id/products/ribbons/all",
92
+ "list_saved_filters": "get:/api/v1/dashboard/site/:site_id/saved_filters",
93
+ "list_site_utms": "get:/api/v1/dashboard/site/:site_id/site_utms/all",
94
+ "list_subscribers": "get:/api/v1/dashboard/site/:site_id/subscriber/all",
95
+ "mark_notification_read": "post:/api/v1/dashboard/site/notifications/mark_as_read",
96
+ "moderate_reviews": "post:/api/v1/dashboard/site/:site_id/applications/product_reviews/update_status",
97
+ "refuse_invitation": "post:/api/v1/dashboard/site/invitations/refuse",
98
+ "remove_font": "delete:/api/v1/site/:site_id/remove_font",
99
+ "remove_font_group": "delete:/api/v1/site/:site_id/remove_font_groups",
100
+ "remove_ppd": "post:/api/v1/dashboard/site/:site_id/applications/personal_product_design/remove_ppd",
101
+ "remove_reviews": "post:/api/v1/dashboard/site/:site_id/applications/product_reviews/remove",
102
+ "rename_site": "post:/api/v1/site/:site_id/update_site_name",
103
+ "save_email_templates": "post:/api/v1/dashboard/site/:site_id/send_email/save",
104
+ "search_products": "get:/api/v1/dashboard/site/:site_id/products/search",
105
+ "set_default_language": "post:/api/v1/dashboard/site/:site_id/multilingual/change_language_default",
106
+ "sync_partner_feed": "post:/api/v1/dashboard/site/:site_id/sale_channels/partner_feeds/:partner_feed_id/products/sync",
107
+ "toggle_debug_render": "post:/api/v1/dashboard/site/:site_id/cms_files/toggle_is_debug_render",
108
+ "unblock_all_phone_customers": "post:/api/v1/dashboard/site/:site_id/settings/block_phone_number/remove_all_block_phone_customers",
109
+ "update_affiliate_account": "post:/api/v1/dashboard/site/:site_id/affiliate/update_account_affiliate",
110
+ "update_affiliate_order_program": "post:/api/v1/dashboard/site/:site_id/affiliate/upsert_order_program_affiliate",
111
+ "update_affiliate_payout_status": "post:/api/v1/dashboard/site/:site_id/affiliate/update_status_payout_affiliate",
112
+ "update_affiliate_product_program": "post:/api/v1/dashboard/site/:site_id/affiliate/upsert_product_program_affiliate",
113
+ "update_app": "post:/api/v1/dashboard/site/:site_id/applications/subcriptions/update_app",
114
+ "update_app_review": "post:/api/v1/dashboard/site/:site_id/applications/subcriptions/update_app_review",
115
+ "update_appointment_address": "post:/api/v1/dashboard/site/:site_id/appointment/update_appointment_address",
116
+ "update_appointment_classify": "post:/api/v1/dashboard/site/:site_id/appointment/update_appointment_classify",
117
+ "update_appointment_employee": "post:/api/v1/dashboard/site/:site_id/appointment/update_appointment_employee",
118
+ "update_course": "patch:/api/v1/dashboard/site/:site_id/course-app/:id",
119
+ "update_domain": "post:/api/v1/dashboard/site/:site_id/domains/update",
120
+ "update_employee_permissions": "post:/api/v1/dashboard/site/:site_id/settings/employee/change_permissions",
121
+ "update_media_content": "post:/api/v1/site/:site_id/media/content/update",
122
+ "update_media_folder": "post:/api/v1/site/:site_id/media/folder/update",
123
+ "update_partner_feed": "post:/api/v1/dashboard/site/:site_id/sale_channels/partner_feeds/:partner_feed_id/update",
124
+ "update_price_contact": "post:/api/v1/dashboard/site/:site_id/settings/price_contact/update",
125
+ "update_product_measurement": "post:/api/v1/dashboard/site/:site_id/settings/product_measurement/update",
126
+ "update_pwa": "post:/api/v1/site/:site_id/pwa/upsert",
127
+ "update_redirect_url": "post:/api/v1/dashboard/site/:site_id/seos/redirect_urls/update",
128
+ "update_saved_filter": "post:/api/v1/dashboard/site/:site_id/saved_filters/:id/update",
129
+ "update_shipping": "post:/api/v1/dashboard/site/:site_id/settings/shipping/update",
130
+ "update_site_slug": "post:/api/v1/site/:site_id/update_slug_name",
131
+ "update_site_utm": "post:/api/v1/dashboard/site/:site_id/site_utms/update",
132
+ "upload_media_base64": "post:/api/v1/site/:site_id/media/content/b64",
133
+ "upsert_affiliate_product": "post:/api/v1/dashboard/site/:site_id/affiliate/upsert_product_affiliate",
134
+ "upsert_material": "post:/api/v1/dashboard/site/:site_id/products/materials/create_or_update",
135
+ "upsert_ppd": "post:/api/v1/dashboard/site/:site_id/applications/personal_product_design/upsert_ppd",
136
+ "upsert_product_brand": "post:/api/v1/dashboard/site/:site_id/products/product_brands/create_or_update",
137
+ "upsert_product_supplier": "post:/api/v1/dashboard/site/:site_id/products/product_suppliers/create_or_update",
138
+ "upsert_product_tag": "post:/api/v1/dashboard/site/:site_id/products/product_tags/create_or_update",
139
+ "upsert_ribbon": "post:/api/v1/dashboard/site/:site_id/products/ribbons/create_or_update",
140
+ "verify_domain": "post:/api/v1/dashboard/site/:site_id/domains/verify"
141
+ }
@@ -50,9 +50,4 @@ Omit \`id\` to create; include \`id\` to update. For a reply, set \`parent_id\`
50
50
  body.product_reviews = product_ids.map((product_id) => ({ product_id, is_removed: false, new: true }));
51
51
  return api.createOrUpdateReview(body);
52
52
  }));
53
- server.tool("remove_reviews", "Delete one or more reviews by id.", { ids: z.array(z.string()).min(1).describe("Review ids to delete") }, ({ ids }) => handle(() => api.removeReviews(ids)));
54
- server.tool("moderate_reviews", `Approve or hide reviews (change moderation status). \`permission\`: 0 = approved/shown, 1 = pending/hidden.`, {
55
- ids: z.array(z.string()).min(1).describe("Review ids to update"),
56
- permission: z.number().describe("0 = approved/shown, 1 = pending/hidden"),
57
- }, ({ ids, permission }) => handle(() => api.updateReviewStatus({ ids, permission })));
58
53
  }
@@ -10,74 +10,6 @@ export function registerSiteConfigTools(server, api, handle) {
10
10
  limit: z.number().optional().describe("Items per page"),
11
11
  term: z.string().optional().describe("Search term"),
12
12
  };
13
- // ── Domains ──
14
- server.tool("list_domains", "List custom domains attached to the site (plus the free subdomain).", list, (query) => handle(async () => unwrap(await api.listDomains(query), "domains")));
15
- server.tool("add_domain", "Attach a custom domain to the site. Triggers DNS/ownership validation.", {
16
- domain: z.string().describe("Domain name, e.g. shop.example.com"),
17
- type: z.number().optional().describe("Domain platform type code"),
18
- }, (body) => handle(async () => unwrap(await api.createDomain(body), "domain")));
19
- server.tool("update_domain", "Update a domain (rename or advanced settings such as redirect/SSL).", {
20
- domain_id: z.string().describe("Domain id"),
21
- domain: z.string().optional().describe("New domain name"),
22
- advanced_setting: z.record(z.any()).optional().describe("Advanced config (redirect/SSL)"),
23
- }, (body) => handle(() => api.updateDomain(body)));
24
- server.tool("verify_domain", "Run DNS verification for a domain and enqueue SSL issuance.", { domain_id: z.string().describe("Domain id") }, ({ domain_id }) => handle(() => api.verifyDomain(domain_id)));
25
- server.tool("delete_domain", "Detach/delete a custom domain from the site.", { domain_id: z.string().describe("Domain id") }, ({ domain_id }) => handle(() => api.deleteDomain(domain_id)));
26
- server.tool("check_domain", "Check whether a domain is available/valid without attaching it.", { domain: z.string().describe("Domain name to check") }, ({ domain }) => handle(() => api.checkDomain(domain)));
27
- // ── SEO redirect URLs ──
28
- server.tool("list_redirect_urls", "List SEO redirect URLs (301 redirects) for the site.", list, (query) => handle(async () => unwrap(await api.listRedirectUrls(query), "redirect_urls")));
29
- server.tool("create_redirect_url", "Create a redirect from one path to another.", {
30
- original_path: z.string().describe("Source path, e.g. /old-page"),
31
- target_path: z.string().describe("Destination path, e.g. /new-page"),
32
- }, (redirect_url) => handle(() => api.createRedirectUrl(redirect_url)));
33
- server.tool("update_redirect_url", "Update a redirect URL. Pass `is_deleted:true` to disable it.", {
34
- id: z.string().describe("Redirect id"),
35
- original_path: z.string().describe("Source path"),
36
- target_path: z.string().describe("Destination path"),
37
- is_deleted: z.boolean().optional().describe("Disable the redirect"),
38
- }, (redirect_url) => handle(() => api.updateRedirectUrl(redirect_url)));
39
- server.tool("delete_redirect_urls", "Delete redirect URLs by id.", { ids: z.array(z.string()).min(1).describe("Redirect ids") }, ({ ids }) => handle(() => api.deleteRedirectUrls(ids)));
40
- // ── Shipping ──
41
- server.tool("get_shipping", "Get the site's shipping configuration (zones, fees, adjustments).", {}, () => handle(async () => unwrap(await api.getShipping(), "shipping")));
42
- server.tool("update_shipping", "Update shipping config. Pass `idx` (the shipping record id) plus the fields to change (urban/suburban/area_shipping/adjust_price/shipping_unit/rank_priority).", {
43
- idx: z.string().describe("Shipping record id (from get_shipping)"),
44
- fields: z.record(z.any()).describe("Shipping fields to update"),
45
- }, ({ idx, fields }) => handle(() => api.updateShipping({ idx, ...fields })));
46
- // ── UTM links ──
47
- server.tool("list_site_utms", "List marketing UTM links (with view/order stats over the time window).", { ...list, start_time: z.string().optional().describe("ISO start time"), end_time: z.string().optional().describe("ISO end time") }, (query) => handle(async () => unwrap(await api.listSiteUtms(query), "site_utms")));
48
- server.tool("create_site_utm", "Create a UTM tracking link.", {
49
- name: z.string().describe("Link name"),
50
- url: z.string().describe("Destination URL"),
51
- utm_source: z.string().optional().describe("utm_source"),
52
- utm_medium: z.string().optional().describe("utm_medium"),
53
- utm_campaign: z.string().optional().describe("utm_campaign"),
54
- utm_term: z.string().optional().describe("utm_term"),
55
- utm_content: z.string().optional().describe("utm_content"),
56
- }, (site_utm) => handle(() => api.createSiteUtm(site_utm)));
57
- server.tool("update_site_utm", "Update a UTM link. Pass `id` plus fields to change.", { id: z.string().describe("UTM id"), fields: z.record(z.any()).describe("Fields to update") }, ({ id, fields }) => handle(() => api.updateSiteUtm({ id, ...fields })));
58
- server.tool("delete_site_utms", "Delete UTM links by id.", { ids: z.array(z.string()).min(1).describe("UTM ids") }, ({ ids }) => handle(() => api.deleteSiteUtms(ids)));
59
- // ── System logs ──
60
- server.tool("list_entity_logs", "List the activity/change logs for a specific entity (e.g. an order). Requires the entity id and type.", {
61
- id: z.string().describe("Entity id (e.g. an order id)"),
62
- type: z.string().default("orders").describe('Entity type (currently "orders")'),
63
- page: z.number().optional().describe("Page number"),
64
- limit: z.number().optional().describe("Items per page"),
65
- }, (query) => handle(async () => unwrap(await api.listSystemLogs(query), "system_logs")));
66
- // ── Saved filters ──
67
- server.tool("list_saved_filters", "List saved table filters for a given table (e.g. 'orders', 'products').", { table_key: z.string().describe("Table key the filters belong to") }, ({ table_key }) => handle(async () => unwrap(await api.listSavedFilters(table_key), "saved_filters")));
68
- server.tool("create_saved_filter", "Create a saved table filter. `for_all_employees:true` shares it (needs config permission).", {
69
- name: z.string().describe("Filter name"),
70
- table_key: z.string().describe("Table key"),
71
- filters: z.record(z.any()).describe("Filter criteria object"),
72
- for_all_employees: z.boolean().optional().describe("Share with all employees"),
73
- }, (saved_filter) => handle(async () => unwrap(await api.createSavedFilter(saved_filter), "saved_filter")));
74
- server.tool("update_saved_filter", "Update a saved filter by id.", {
75
- id: z.string().describe("Saved filter id"),
76
- name: z.string().optional().describe("New name"),
77
- filters: z.record(z.any()).optional().describe("New filter criteria"),
78
- for_all_employees: z.boolean().optional().describe("Share with all employees"),
79
- }, ({ id, ...saved_filter }) => handle(async () => unwrap(await api.updateSavedFilter(id, saved_filter), "saved_filter")));
80
- server.tool("delete_saved_filter", "Delete (or dismiss, if not owner) a saved filter by id.", { id: z.string().describe("Saved filter id") }, ({ id }) => handle(() => api.deleteSavedFilter(id)));
81
13
  // ── General settings / rename ──
82
14
  server.tool("update_site_settings", `Update general site settings. The \`settings\` object is shallow-merged onto existing settings;
83
15
  other top-level keys (currency, slugs, is_maintenance, robot_txt, …) replace directly.`, { settings: z.record(z.any()).describe("Top-level keys to update (nested settings:{...} merges; others replace)") }, ({ settings }) => handle(async () => {
@@ -100,19 +32,9 @@ other top-level keys (currency, slugs, is_maintenance, robot_txt, …) replace d
100
32
  }
101
33
  return api.updateSiteRaw(settings);
102
34
  }));
103
- server.tool("rename_site", "Rename the site (display name).", { name: z.string().describe("New site name") }, ({ name }) => handle(() => api.updateSiteName(name)));
104
- server.tool("update_site_slug", "Change the site's slug (subdomain). Fails if the slug is already taken.", { slug: z.string().describe("New slug") }, ({ slug }) => handle(() => api.updateSiteSlug(slug)));
105
- // ── Fonts ──
106
- server.tool("list_fonts", "List the site's uploaded/added fonts.", {}, () => handle(async () => unwrap(await api.loadFonts(), "data")));
107
- server.tool("remove_font", "Remove a font by id.", { id: z.string().describe("Font id") }, ({ id }) => handle(() => api.removeFont(id)));
108
- server.tool("list_font_groups", "List font groups (font families with weights).", {}, () => handle(() => api.loadFontGroups()));
109
35
  server.tool("create_font_group", "Create a font group (e.g. a Google Font family by URL).", {
110
36
  name: z.string().describe("Font group name"),
111
37
  type: z.string().optional().describe("Font type"),
112
38
  url: z.string().optional().describe("Font CSS/source URL"),
113
39
  }, (body) => handle(() => api.createFontGroup(body)));
114
- server.tool("remove_font_group", "Remove a font group by id.", { id: z.string().describe("Font group id") }, ({ id }) => handle(() => api.removeFontGroup(id)));
115
- // ── API keys / publish history ──
116
- server.tool("list_api_keys", "List the site's API keys.", { page: z.number().optional(), limit: z.number().optional() }, (query) => handle(async () => unwrap(await api.listApiKeys(query), "api_keys")));
117
- server.tool("list_publish_histories", "List the site's publish history (past publishes).", { page: z.number().optional(), limit: z.number().optional() }, (query) => handle(() => api.listPublishHistories(query)));
118
40
  }
package/dist/web-guide.js CHANGED
@@ -826,7 +826,7 @@ ${GLASS_CSS}
826
826
  <details style="margin-top:18px;padding:0">
827
827
  <summary>${L === "vi" ? "Dành cho người dùng nâng cao / lập trình viên" : "For advanced users / developers"}</summary>
828
828
  <p>${L === "vi" ? "Danh sách đầy đủ các công cụ và lệnh kỹ thuật:" : "Full list of tools and technical commands:"}</p>
829
- <pre>${L === "vi" ? "~280 tool: get_build_guide · list_elements · get_element · new_element · new_section · new_page_skeleton · validate_page · build_page · add_section · list_pages · get_page_source · search_page_elements · update_page_element · create_page · update_page · update_page_source · publish_site · list_cms_files · get_http_function · edit_http_function · run_function · debug_function · get_current_context · list_my_sites · switch_site · update_auth · toggle_confirm_mode · send_mail · …và nhiều hơn nữa" : "~280 tools: get_build_guide · list_elements · get_element · new_element · new_section · new_page_skeleton · validate_page · build_page · add_section · list_pages · get_page_source · search_page_elements · update_page_element · create_page · update_page · update_page_source · publish_site · list_cms_files · get_http_function · edit_http_function · run_function · debug_function · get_current_context · list_my_sites · switch_site · update_auth · toggle_confirm_mode · send_mail · …and more"}</pre>
829
+ <pre>${L === "vi" ? "40 tool, mỗi nhóm chọn việc bằng action: page · page_element · page_draft · compose · builder_ref · global_source · global_section · site_code · theme · product · product_category · promotion · order · blog · collection · cms_function · app · validate_page · build_page · publish_site · upload_images · get_current_context · switch_site · … + api_find / api_get / api_call cho 775 route backend" : "40 tools, each family picks the operation by action: page · page_element · page_draft · compose · builder_ref · global_source · global_section · site_code · theme · product · product_category · promotion · order · blog · collection · cms_function · app · validate_page · build_page · publish_site · upload_images · get_current_context · switch_site · … + api_find / api_get / api_call over 775 backend routes"}</pre>
830
830
  </details>
831
831
  </div>
832
832
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webcake-storefront-mcp",
3
- "version": "1.41.0",
3
+ "version": "2.0.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",
@@ -30,6 +30,8 @@
30
30
  "dev": "tsc --watch",
31
31
  "dev:guide": "node scripts/preview-guide.mjs",
32
32
  "smoke": "node dist/smoke.js",
33
+ "mine-elements": "node scripts/mine-element-keys.mjs",
34
+ "gen-api": "node scripts/gen-api-catalog.mjs",
33
35
  "prepare": "npm run build",
34
36
  "prepublishOnly": "npm run build && npm run smoke",
35
37
  "test": "node --test \"test/*.test.mjs\""