@wix/mcp 1.0.27 → 1.0.29
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/README.md +144 -0
- package/build/bin-standalone.js +5 -3
- package/build/bin-standalone.js.map +2 -2
- package/build/cjs/index.cjs +6 -5
- package/build/cjs/index.cjs.map +2 -2
- package/build/dts/config/default-config.d.ts.map +1 -1
- package/build/dts/config/default-config.js +3 -1
- package/build/dts/config/default-config.js.map +1 -1
- package/build/dts/config/param-descriptions.js +2 -2
- package/build/dts/config/param-descriptions.js.map +1 -1
- package/build/dts/toolkit.d.ts +4 -7
- package/build/dts/toolkit.d.ts.map +1 -1
- package/build/dts/toolkit.js +3 -3
- package/build/dts/toolkit.js.map +1 -1
- package/build/dts/toolkit.test.js +4 -4
- package/build/dts/toolkit.test.js.map +1 -1
- package/build/esm/index.js +6 -5
- package/build/esm/index.js.map +2 -2
- package/package.json +2 -2
package/build/cjs/index.cjs
CHANGED
|
@@ -36114,7 +36114,8 @@ var defaultToolDescriptions = {
|
|
|
36114
36114
|
${SYSTEM_REMINDER}
|
|
36115
36115
|
`,
|
|
36116
36116
|
CallWixSiteAPI: dedent_default`
|
|
36117
|
-
Call Wix apis on a business or site. Use this to create, read, update, and delete data and other Wix entities in your Wix site
|
|
36117
|
+
Call Wix apis on a business or site. Use this to create, read, update, and delete data and other Wix entities in your Wix site.
|
|
36118
|
+
For POST/PATCH/PUT requests, pass the request body as a JSON object in the "body" parameter with all the required fields and values as described in the API schema, code examples, or docs you retrieved (e.g. body: {"name": "value", "nested": {"key": "value"}}).
|
|
36118
36119
|
The API endpoint url param MUST ALWAYS be taken from the conversation context.
|
|
36119
36120
|
By conversation context we mean the endpoint url was given in the user prompt OR got into the conversation context by the "WixREADME" tool OR by the "SearchWixRESTDocumentation" tool OR by the "BrowseWixRESTDocsMenu" tool OR by the "ReadFullDocsArticle" tool.
|
|
36120
36121
|
Error Handling:
|
|
@@ -36131,6 +36132,7 @@ var defaultToolDescriptions = {
|
|
|
36131
36132
|
`,
|
|
36132
36133
|
ManageWixSite: dedent_default`
|
|
36133
36134
|
Use account level API in order to create a site, update a site and publish site.
|
|
36135
|
+
For POST/PATCH/PUT requests, pass the request body as a JSON object in the "body" parameter with all the required fields and values as described in the API schema, code examples, or docs you retrieved (e.g. body: {"name": "value", "nested": {"key": "value"}}).
|
|
36134
36136
|
The API endpoint url param MUST ALWAYS be taken from the conversation context.
|
|
36135
36137
|
By conversation context we mean the endpoint url was given in the user prompt or got into the conversation context by the "WixREADME" tool or by the "SearchWixRESTDocumentation" tool or by the "BrowseWixRESTDocsMenu" tool or by the "ReadFullDocsArticle" tool.
|
|
36136
36138
|
${SYSTEM_REMINDER}
|
|
@@ -36525,7 +36527,7 @@ var paramDescriptions = {
|
|
|
36525
36527
|
`Docs urls like https://dev.wix.com/docs/... are not API urls, if you want to read the docs, use the "ReadFullDocsArticle" tool`
|
|
36526
36528
|
].join("\n"),
|
|
36527
36529
|
method: "The HTTP method to use for the API call (e.g. GET, POST, PUT, DELETE)",
|
|
36528
|
-
body: 'The request body object. YOU MUST NEVER MAKE UP A BODY - the body should be based on the conversation context, i.e from the user prompt OR got into the conversation context by the "ReadFullDocsArticle" tool OR by the "ReadFullDocsMethodSchema" tool - i.e based on the API docs, a relevant recipe you read (preferably), a code example you found in the docs, a schema you read etc.. YOU MUST NEVER ASSUME YOU KNOW WHAT THE BODY SCHEMA IS WITHOUT CONCRETE EXAMPLES OR SCHEMA DEFINITIONS FROM THE CONVERSATION CONTEXT. Prefer reading relevant recipes if you have them in context for understand the body schema for API calls.',
|
|
36530
|
+
body: 'The request body as a JSON object with all the required fields and values, including nested objects. Pass the actual object, NOT a JSON string. YOU MUST NEVER MAKE UP A BODY - the body should be based on the conversation context, i.e from the user prompt OR got into the conversation context by the "ReadFullDocsArticle" tool OR by the "ReadFullDocsMethodSchema" tool - i.e based on the API docs, a relevant recipe you read (preferably), a code example you found in the docs, a schema you read etc.. YOU MUST NEVER ASSUME YOU KNOW WHAT THE BODY SCHEMA IS WITHOUT CONCRETE EXAMPLES OR SCHEMA DEFINITIONS FROM THE CONVERSATION CONTEXT. Prefer reading relevant recipes if you have them in context for understand the body schema for API calls.',
|
|
36529
36531
|
reason: "One sentence explaining the original user request and why you are calling this API to complete it.",
|
|
36530
36532
|
sourceDocUrl: [
|
|
36531
36533
|
"The URL of the documentation or recipe where you found this API endpoint.",
|
|
@@ -36543,7 +36545,7 @@ var paramDescriptions = {
|
|
|
36543
36545
|
ManageWixSite: {
|
|
36544
36546
|
url: "The url of the api to call - ALWAYS get the information from the Wix REST docs DONT GUESS IT, the URL MUST BE ABSOLUTE URL",
|
|
36545
36547
|
method: "The HTTP method to use for the API call (e.g. GET, POST, PUT, DELETE)",
|
|
36546
|
-
body: 'The request body object. YOU MUST NEVER MAKE UP A BODY - this should be based on the conversation context, i.e from the user prompt or from the "WixREADME" tool or from the "SearchWixRESTDocumentation" tool or from the "BrowseWixRESTDocsMenu" tool or from the "ReadFullDocsArticle" tool or from the "ReadFullDocsMethodSchema" tool - i.e based on the API docs. YOU MUST NEVER ASSUME YOU KNOW WHAT THE SCHEMA IS WITHOUT CONCRETE EXAMPLES OR SCHEMA DEFINITIONS FROM THE CONVERSATION CONTEXT.'
|
|
36548
|
+
body: 'The request body as a JSON object with all the required fields and values, including nested objects. Pass the actual object, NOT a JSON string. YOU MUST NEVER MAKE UP A BODY - this should be based on the conversation context, i.e from the user prompt or from the "WixREADME" tool or from the "SearchWixRESTDocumentation" tool or from the "BrowseWixRESTDocsMenu" tool or from the "ReadFullDocsArticle" tool or from the "ReadFullDocsMethodSchema" tool - i.e based on the API docs. YOU MUST NEVER ASSUME YOU KNOW WHAT THE SCHEMA IS WITHOUT CONCRETE EXAMPLES OR SCHEMA DEFINITIONS FROM THE CONVERSATION CONTEXT.'
|
|
36547
36549
|
},
|
|
36548
36550
|
SearchWixWDSDocumentation: {
|
|
36549
36551
|
searchTerm: "The search term to search for in the Wix Design System Documentation",
|
|
@@ -39304,7 +39306,6 @@ function createWixToolkit(options) {
|
|
|
39304
39306
|
docs,
|
|
39305
39307
|
api,
|
|
39306
39308
|
defaults = {},
|
|
39307
|
-
curryFields = [],
|
|
39308
39309
|
exclude = [],
|
|
39309
39310
|
clientName,
|
|
39310
39311
|
hooks
|
|
@@ -39344,7 +39345,7 @@ function createWixToolkit(options) {
|
|
|
39344
39345
|
} else {
|
|
39345
39346
|
addApiCallTool(server, authStrategy);
|
|
39346
39347
|
}
|
|
39347
|
-
const fieldsToRemove =
|
|
39348
|
+
const fieldsToRemove = Object.keys(defaults);
|
|
39348
39349
|
const allTools = captured.filter((t) => !exclude.includes(t.name)).map((captured2) => {
|
|
39349
39350
|
const inputSchema = fieldsToRemove.length > 0 ? buildSchemaWithout(captured2.paramsSchema, fieldsToRemove) : external_exports.object(captured2.paramsSchema);
|
|
39350
39351
|
const execute = async (args) => {
|