@wix/mcp 1.0.78 → 1.0.80
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/build/bin-standalone.js +43 -9
- package/build/cjs/index.cjs +384 -175
- package/build/cjs/toolkit.cjs +52 -15
- package/build/dts/account-tools/get-profile-tool.d.ts +5 -0
- package/build/dts/account-tools/get-profile-tool.js +49 -0
- package/build/dts/code-mode/index.d.ts +5 -4
- package/build/dts/code-mode/index.js +6 -68
- package/build/dts/config/default-config.d.ts +2 -2
- package/build/dts/config/default-config.js +32 -8
- package/build/dts/index.d.ts +1 -0
- package/build/dts/index.js +1 -0
- package/build/dts/toolkit-entry.d.cts +2 -0
- package/build/dts/toolkit-entry.d.ts +2 -0
- package/build/dts/toolkit.d.ts +2 -0
- package/build/dts/toolkit.js +14 -20
- package/build/esm/index.js +299 -117
- package/build/esm/toolkit.js +52 -15
- package/package.json +3 -2
package/build/bin-standalone.js
CHANGED
|
@@ -71560,7 +71560,7 @@ var DISCOVERY_FLOWS = [
|
|
|
71560
71560
|
"- METHOD CODE EXAMPLE BASED: BrowseWixRESTDocsMenu() or SearchWixRESTDocumentation() -> find relevant method -> read method article using ReadFullDocsArticle() to get method code examples -> call API using CallWixSiteAPI() based on the method code examples",
|
|
71561
71561
|
"- FULL SCHEMA BASED: BrowseWixRESTDocsMenu() or SearchWixRESTDocumentation() -> find relevant method -> read method article using ReadFullDocsArticle() -> no method code examples found -> inspect the method schema using SearchWixAPISpec or ReadFullDocsMethodSchema -> call API using CallWixSiteAPI() based on the schema"
|
|
71562
71562
|
];
|
|
71563
|
-
function buildSystemReminderGuidelines(includeReadme) {
|
|
71563
|
+
function buildSystemReminderGuidelines(includeReadme, includeImageUploadGuidance) {
|
|
71564
71564
|
const exception = includeReadme ? "**Exception:** " : "";
|
|
71565
71565
|
const lines = [];
|
|
71566
71566
|
if (includeReadme) {
|
|
@@ -71572,9 +71572,13 @@ function buildSystemReminderGuidelines(includeReadme) {
|
|
|
71572
71572
|
);
|
|
71573
71573
|
}
|
|
71574
71574
|
lines.push(
|
|
71575
|
-
`${exception}If the user asks to list, show, or find their Wix sites, ${includeReadme ? "skip WixREADME and " : ""}call ListWixSites directly
|
|
71576
|
-
`${exception}If the user wants to upload local or attached image files to a Wix site, skip ${includeReadme ? "WixREADME and " : ""}all docs/schema/API flows \u2014 call UploadImageToWixSite directly. Do NOT use ExecuteWixAPI, SearchWixAPISpec, or any Media Manager REST API for image uploads.`
|
|
71575
|
+
`${exception}If the user asks to list, show, or find their Wix sites, ${includeReadme ? "skip WixREADME and " : ""}call ListWixSites directly.`
|
|
71577
71576
|
);
|
|
71577
|
+
if (includeImageUploadGuidance) {
|
|
71578
|
+
lines.push(
|
|
71579
|
+
`${exception}If the user wants to upload local or attached image files to a Wix site, skip ${includeReadme ? "WixREADME and " : ""}all docs/schema/API flows \u2014 call UploadImageToWixSite directly. Do NOT use ExecuteWixAPI, SearchWixAPISpec, or any Media Manager REST API for image uploads.`
|
|
71580
|
+
);
|
|
71581
|
+
}
|
|
71578
71582
|
if (includeReadme) {
|
|
71579
71583
|
lines.push(
|
|
71580
71584
|
"If the WixREADME tool is not available to you, you should use the other flows as described without using the WixREADME tool until the task is completed."
|
|
@@ -71601,9 +71605,15 @@ function buildSystemReminderFlows(includeReadme) {
|
|
|
71601
71605
|
lines.push(...DISCOVERY_FLOWS);
|
|
71602
71606
|
return lines.join("\n");
|
|
71603
71607
|
}
|
|
71604
|
-
var SYSTEM_REMINDER_GUIDELINES = buildSystemReminderGuidelines(
|
|
71605
|
-
|
|
71606
|
-
|
|
71608
|
+
var SYSTEM_REMINDER_GUIDELINES = buildSystemReminderGuidelines(
|
|
71609
|
+
true,
|
|
71610
|
+
true
|
|
71611
|
+
);
|
|
71612
|
+
function buildSystemReminder(includeReadme, includeImageUploadGuidance = true) {
|
|
71613
|
+
const guidelines = buildSystemReminderGuidelines(
|
|
71614
|
+
includeReadme,
|
|
71615
|
+
includeImageUploadGuidance
|
|
71616
|
+
);
|
|
71607
71617
|
const flows = buildSystemReminderFlows(includeReadme);
|
|
71608
71618
|
return dedent_default`
|
|
71609
71619
|
<agent-mandatory-instructions>
|
|
@@ -71814,8 +71824,11 @@ var executeWixApiDescription = dedent_default`
|
|
|
71814
71824
|
|
|
71815
71825
|
${EXECUTE_WIX_API_MULTI_SITE_EXAMPLE}
|
|
71816
71826
|
`;
|
|
71817
|
-
function buildToolDescriptions(includeReadme) {
|
|
71818
|
-
const reminder = buildSystemReminder(
|
|
71827
|
+
function buildToolDescriptions(includeReadme, includeImageUploadGuidance = true) {
|
|
71828
|
+
const reminder = buildSystemReminder(
|
|
71829
|
+
includeReadme,
|
|
71830
|
+
includeImageUploadGuidance
|
|
71831
|
+
);
|
|
71819
71832
|
return {
|
|
71820
71833
|
WixREADME: dedent_default`
|
|
71821
71834
|
# Tool: WixREADME
|
|
@@ -71866,6 +71879,7 @@ function buildToolDescriptions(includeReadme) {
|
|
|
71866
71879
|
**Prefer this tool over CallWixSiteAPI for listing sites.** Call this tool directly — it already knows the correct API and handles everything needed. Only fall back to CallWixSiteAPI if the user needs advanced filtering or specific site details beyond what this tool provides.
|
|
71867
71880
|
${reminder}
|
|
71868
71881
|
`,
|
|
71882
|
+
get_profile: "Returns the authenticated user's email address",
|
|
71869
71883
|
GetSiteContext: dedent_default`
|
|
71870
71884
|
Fetches deep context for a specific Wix site and returns it as structured markdown.
|
|
71871
71885
|
|
|
@@ -72102,7 +72116,27 @@ function buildToolDescriptions(includeReadme) {
|
|
|
72102
72116
|
|
|
72103
72117
|
Your code MUST be an \`async function()\` expression that returns a value.
|
|
72104
72118
|
|
|
72105
|
-
Top-level verticals
|
|
72119
|
+
Top-level verticals and their subcategories. This is a shallow orientation snapshot, NOT the full tree: every subcategory below contains many more resources, and each resource its methods — none of them listed here. Filter lightIndex by menuPath for the complete live tree:
|
|
72120
|
+
wix-apis
|
|
72121
|
+
├── account-level
|
|
72122
|
+
│ └── accounts, ai-credits, b2b-site-management, domains, enterprise, resellers, sites, studio-workspace, user-management
|
|
72123
|
+
├── app-management
|
|
72124
|
+
│ └── app-billing, app-extensions, app-installations, app-instance, app-permissions, app-tools, bi-event, companion-apps, embedded-scripts, market-listing, oauth-2, site-plugins
|
|
72125
|
+
├── assets
|
|
72126
|
+
│ └── media, pro-gallery, rich-content
|
|
72127
|
+
├── business-management
|
|
72128
|
+
│ └── ai-site-chat, analytics, app-installation, async-job, automations, branches, calendar, captcha, cookie-consent-policy, custom-embeds, dashboard, data-extension-schema, faq-app, functions, get-paid, google-business-profile, headless, locations, marketing, multilingual, notifications, online-programs, payments, secrets, seo, site-properties, site-search, site-urls, tags
|
|
72129
|
+
├── business-solutions
|
|
72130
|
+
│ └── benefit-programs, blog, bookings, cms, coupons, donations, e-commerce, events, forum, gift-cards, meetings, portfolio, pricing-plans, restaurants, stores, suppliers-hub
|
|
72131
|
+
├── crm
|
|
72132
|
+
│ └── communication, community, crm, forms, loyalty-program, members-contacts
|
|
72133
|
+
├── mobile
|
|
72134
|
+
│ └── containers-app
|
|
72135
|
+
├── site
|
|
72136
|
+
│ └── accessibility, viewer
|
|
72137
|
+
└── tools
|
|
72138
|
+
└── dynamic-site-context, semantic-search
|
|
72139
|
+
(each leaf above expands into resources → methods; explore via lightIndex, e.g. lightIndex.filter(r => r.menuPath[1] === "e-commerce"))
|
|
72106
72140
|
|
|
72107
72141
|
Important schema guidance:
|
|
72108
72142
|
- For ExecuteWixAPI, ALWAYS use \`method.publicUrl\`. It is the complete, executable \`https://www.wixapis.com/...\` URL for that method. When \`publicUrl\` is present, never build the execution URL by hand and never expose any other field as "the endpoint".
|