@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/esm/toolkit.js
CHANGED
|
@@ -12085,7 +12085,7 @@ var DISCOVERY_FLOWS = [
|
|
|
12085
12085
|
"- 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",
|
|
12086
12086
|
"- 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"
|
|
12087
12087
|
];
|
|
12088
|
-
function buildSystemReminderGuidelines(includeReadme) {
|
|
12088
|
+
function buildSystemReminderGuidelines(includeReadme, includeImageUploadGuidance) {
|
|
12089
12089
|
const exception = includeReadme ? "**Exception:** " : "";
|
|
12090
12090
|
const lines = [];
|
|
12091
12091
|
if (includeReadme) {
|
|
@@ -12097,9 +12097,13 @@ function buildSystemReminderGuidelines(includeReadme) {
|
|
|
12097
12097
|
);
|
|
12098
12098
|
}
|
|
12099
12099
|
lines.push(
|
|
12100
|
-
`${exception}If the user asks to list, show, or find their Wix sites, ${includeReadme ? "skip WixREADME and " : ""}call ListWixSites directly
|
|
12101
|
-
`${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.`
|
|
12100
|
+
`${exception}If the user asks to list, show, or find their Wix sites, ${includeReadme ? "skip WixREADME and " : ""}call ListWixSites directly.`
|
|
12102
12101
|
);
|
|
12102
|
+
if (includeImageUploadGuidance) {
|
|
12103
|
+
lines.push(
|
|
12104
|
+
`${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.`
|
|
12105
|
+
);
|
|
12106
|
+
}
|
|
12103
12107
|
if (includeReadme) {
|
|
12104
12108
|
lines.push(
|
|
12105
12109
|
"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."
|
|
@@ -12126,9 +12130,15 @@ function buildSystemReminderFlows(includeReadme) {
|
|
|
12126
12130
|
lines.push(...DISCOVERY_FLOWS);
|
|
12127
12131
|
return lines.join("\n");
|
|
12128
12132
|
}
|
|
12129
|
-
var SYSTEM_REMINDER_GUIDELINES = buildSystemReminderGuidelines(
|
|
12130
|
-
|
|
12131
|
-
|
|
12133
|
+
var SYSTEM_REMINDER_GUIDELINES = buildSystemReminderGuidelines(
|
|
12134
|
+
true,
|
|
12135
|
+
true
|
|
12136
|
+
);
|
|
12137
|
+
function buildSystemReminder(includeReadme, includeImageUploadGuidance = true) {
|
|
12138
|
+
const guidelines = buildSystemReminderGuidelines(
|
|
12139
|
+
includeReadme,
|
|
12140
|
+
includeImageUploadGuidance
|
|
12141
|
+
);
|
|
12132
12142
|
const flows = buildSystemReminderFlows(includeReadme);
|
|
12133
12143
|
return dedent_default`
|
|
12134
12144
|
<agent-mandatory-instructions>
|
|
@@ -12339,8 +12349,11 @@ var executeWixApiDescription = dedent_default`
|
|
|
12339
12349
|
|
|
12340
12350
|
${EXECUTE_WIX_API_MULTI_SITE_EXAMPLE}
|
|
12341
12351
|
`;
|
|
12342
|
-
function buildToolDescriptions(includeReadme) {
|
|
12343
|
-
const reminder = buildSystemReminder(
|
|
12352
|
+
function buildToolDescriptions(includeReadme, includeImageUploadGuidance = true) {
|
|
12353
|
+
const reminder = buildSystemReminder(
|
|
12354
|
+
includeReadme,
|
|
12355
|
+
includeImageUploadGuidance
|
|
12356
|
+
);
|
|
12344
12357
|
return {
|
|
12345
12358
|
WixREADME: dedent_default`
|
|
12346
12359
|
# Tool: WixREADME
|
|
@@ -12391,6 +12404,7 @@ function buildToolDescriptions(includeReadme) {
|
|
|
12391
12404
|
**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.
|
|
12392
12405
|
${reminder}
|
|
12393
12406
|
`,
|
|
12407
|
+
get_profile: "Returns the authenticated user's email address",
|
|
12394
12408
|
GetSiteContext: dedent_default`
|
|
12395
12409
|
Fetches deep context for a specific Wix site and returns it as structured markdown.
|
|
12396
12410
|
|
|
@@ -12627,7 +12641,27 @@ function buildToolDescriptions(includeReadme) {
|
|
|
12627
12641
|
|
|
12628
12642
|
Your code MUST be an \`async function()\` expression that returns a value.
|
|
12629
12643
|
|
|
12630
|
-
Top-level verticals
|
|
12644
|
+
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:
|
|
12645
|
+
wix-apis
|
|
12646
|
+
├── account-level
|
|
12647
|
+
│ └── accounts, ai-credits, b2b-site-management, domains, enterprise, resellers, sites, studio-workspace, user-management
|
|
12648
|
+
├── app-management
|
|
12649
|
+
│ └── app-billing, app-extensions, app-installations, app-instance, app-permissions, app-tools, bi-event, companion-apps, embedded-scripts, market-listing, oauth-2, site-plugins
|
|
12650
|
+
├── assets
|
|
12651
|
+
│ └── media, pro-gallery, rich-content
|
|
12652
|
+
├── business-management
|
|
12653
|
+
│ └── 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
|
|
12654
|
+
├── business-solutions
|
|
12655
|
+
│ └── benefit-programs, blog, bookings, cms, coupons, donations, e-commerce, events, forum, gift-cards, meetings, portfolio, pricing-plans, restaurants, stores, suppliers-hub
|
|
12656
|
+
├── crm
|
|
12657
|
+
│ └── communication, community, crm, forms, loyalty-program, members-contacts
|
|
12658
|
+
├── mobile
|
|
12659
|
+
│ └── containers-app
|
|
12660
|
+
├── site
|
|
12661
|
+
│ └── accessibility, viewer
|
|
12662
|
+
└── tools
|
|
12663
|
+
└── dynamic-site-context, semantic-search
|
|
12664
|
+
(each leaf above expands into resources → methods; explore via lightIndex, e.g. lightIndex.filter(r => r.menuPath[1] === "e-commerce"))
|
|
12631
12665
|
|
|
12632
12666
|
Important schema guidance:
|
|
12633
12667
|
- 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".
|
|
@@ -17763,13 +17797,13 @@ function createWixToolkit(options) {
|
|
|
17763
17797
|
clientName,
|
|
17764
17798
|
hooks,
|
|
17765
17799
|
conversationId,
|
|
17766
|
-
includeReadmeMentions = false
|
|
17800
|
+
includeReadmeMentions = false,
|
|
17801
|
+
includeImageUploadGuidance = false
|
|
17767
17802
|
} = options;
|
|
17768
17803
|
const authStrategy = normalizeAuth(auth);
|
|
17769
17804
|
const executeWixApiRequested = isExecuteWixApiRequested(api);
|
|
17770
|
-
|
|
17805
|
+
const descriptionsWithoutReadme = buildToolDescriptions(includeReadmeMentions, includeImageUploadGuidance);
|
|
17771
17806
|
if (!includeReadmeMentions) {
|
|
17772
|
-
descriptionsWithoutReadme = buildToolDescriptions(false);
|
|
17773
17807
|
delete descriptionsWithoutReadme.WixREADME;
|
|
17774
17808
|
}
|
|
17775
17809
|
const sessionId = v4_default();
|
|
@@ -17786,13 +17820,16 @@ function createWixToolkit(options) {
|
|
|
17786
17820
|
authStrategy,
|
|
17787
17821
|
dynamicContextEnabled: true,
|
|
17788
17822
|
// README-free defaults first so consumer overrides still win.
|
|
17789
|
-
toolDescriptions:
|
|
17823
|
+
toolDescriptions: {
|
|
17824
|
+
...descriptionsWithoutReadme,
|
|
17825
|
+
...docsOptions.toolDescriptions
|
|
17826
|
+
}
|
|
17790
17827
|
});
|
|
17791
17828
|
} else {
|
|
17792
17829
|
addDocsTools(server, void 0, {
|
|
17793
17830
|
authStrategy,
|
|
17794
17831
|
dynamicContextEnabled: true,
|
|
17795
|
-
|
|
17832
|
+
toolDescriptions: descriptionsWithoutReadme
|
|
17796
17833
|
});
|
|
17797
17834
|
}
|
|
17798
17835
|
if (api) {
|
|
@@ -17805,7 +17842,7 @@ function createWixToolkit(options) {
|
|
|
17805
17842
|
maxResponseSize,
|
|
17806
17843
|
codeModeBaseUrl = "https://mcp.wix.com"
|
|
17807
17844
|
} = api;
|
|
17808
|
-
const effectiveToolDescriptions =
|
|
17845
|
+
const effectiveToolDescriptions = {
|
|
17809
17846
|
...descriptionsWithoutReadme,
|
|
17810
17847
|
...executeWixApiRequested ? executeCodeModeToolDescriptions : {},
|
|
17811
17848
|
...toolDescriptions
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.80",
|
|
4
4
|
"description": "A Model Context Protocol server for Wix AI tools",
|
|
5
5
|
"bin": "./build/bin-standalone.js",
|
|
6
6
|
"dependencies": {
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
"@wix/ambassador-editorurls-v2-editor-urls": "^1.0.43",
|
|
30
30
|
"@wix/ambassador-funnel-templates-gallery-v2-template": "^1.0.90",
|
|
31
31
|
"@wix/ambassador-genie-chat-service-v1-no-entity": "^1.0.130",
|
|
32
|
+
"@wix/ambassador-identity-account-v1-user": "^1.0.7",
|
|
32
33
|
"@wix/ambassador-metasite-api-v1-meta-site": "^1.0.133",
|
|
33
34
|
"@wix/ambassador-site-actions-v1-site-actions": "^1.0.55",
|
|
34
35
|
"@wix/ambassador-urls-api-v2-published-site-urls": "^1.0.31",
|
|
@@ -132,5 +133,5 @@
|
|
|
132
133
|
]
|
|
133
134
|
}
|
|
134
135
|
},
|
|
135
|
-
"falconPackageHash": "
|
|
136
|
+
"falconPackageHash": "2841f7992b059d939012b492dc7d764ed583d4c9dc157d9aaf2859ad"
|
|
136
137
|
}
|