@wix/mcp 1.0.6 → 1.0.8
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/api-call/index.d.ts +3 -0
- package/build/api-call/index.js +149 -0
- package/build/auth/index.d.ts +5 -0
- package/build/auth/index.js +1 -0
- package/build/bin-standalone.js +16370 -0
- package/build/bin-standalone.js.map +7 -0
- package/build/bin.d.ts +3 -3
- package/build/bin.js +82 -657
- package/build/cli-tools/cli.d.ts +4 -0
- package/build/cli-tools/cli.js +339 -0
- package/build/cli-tools/utils.d.ts +2 -0
- package/build/cli-tools/utils.js +25 -0
- package/build/docs/docs.d.ts +4 -0
- package/build/docs/docs.js +447 -0
- package/build/docs/long-content.d.ts +1 -0
- package/build/docs/long-content.js +1 -0
- package/build/docs/semanticSearch.d.ts +10 -0
- package/build/docs/semanticSearch.js +108 -0
- package/build/docs/semanticSearch.test.d.ts +1 -0
- package/build/docs/semanticSearch.test.js +459 -0
- package/build/index-standalone.js +18849 -0
- package/build/index-standalone.js.map +7 -0
- package/build/index.d.ts +7 -30
- package/build/index.js +6 -193
- package/build/infra/bi-logger.d.ts +2 -0
- package/build/infra/bi-logger.js +10 -0
- package/build/infra/environment.d.ts +9 -0
- package/build/infra/environment.js +27 -0
- package/build/infra/logger.d.ts +10 -0
- package/build/infra/logger.js +61 -0
- package/build/infra/panorama.d.ts +7 -0
- package/build/infra/panorama.js +35 -0
- package/build/infra/sentry.d.ts +1 -0
- package/build/infra/sentry.js +10 -0
- package/build/interactive-command-tools/eventually.d.ts +6 -0
- package/build/interactive-command-tools/eventually.js +15 -0
- package/build/interactive-command-tools/handleStdout.d.ts +13 -0
- package/build/interactive-command-tools/handleStdout.js +75 -0
- package/build/interactive-command-tools/interactive-command-utils.d.ts +7 -0
- package/build/interactive-command-tools/interactive-command-utils.js +75 -0
- package/build/resources/docs.d.ts +2 -0
- package/build/resources/docs.js +45 -0
- package/build/support/index.d.ts +2 -0
- package/build/support/index.js +32 -0
- package/build/tool-utils.d.ts +2 -0
- package/build/tool-utils.js +30 -0
- package/build/tool-utils.spec.d.ts +1 -0
- package/build/tool-utils.spec.js +99 -0
- package/build/wix-mcp-server.d.ts +27 -0
- package/build/wix-mcp-server.js +114 -0
- package/package.json +16 -11
- package/bin.js +0 -2
- package/build/chunk-YRLMZUQM.js +0 -1834
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { WixMcpServer } from '../wix-mcp-server.js';
|
|
2
|
+
export declare const VALID_CLI_TOOLS: readonly ["WIX_API", "CLI_COMMAND", "CLI_COMMAND_INTERACTIVE_MODE"];
|
|
3
|
+
export type CLITool = (typeof VALID_CLI_TOOLS)[number];
|
|
4
|
+
export declare function addCliTools(server: WixMcpServer, allowedTools?: CLITool[], isWixOne?: boolean): void;
|
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { getCliAuthTokenForSiteId, getSiteIdFromCliAppConfig } from './utils.js';
|
|
3
|
+
import { logger } from '../infra/logger.js';
|
|
4
|
+
import { execa } from 'execa';
|
|
5
|
+
import { mockInteractiveGenerateCommandTool } from '../interactive-command-tools/interactive-command-utils.js';
|
|
6
|
+
import { handleWixAPIResponse } from '../tool-utils.js';
|
|
7
|
+
export const VALID_CLI_TOOLS = [
|
|
8
|
+
'WIX_API',
|
|
9
|
+
'CLI_COMMAND',
|
|
10
|
+
'CLI_COMMAND_INTERACTIVE_MODE'
|
|
11
|
+
];
|
|
12
|
+
export function addCliTools(server, allowedTools = [
|
|
13
|
+
'WIX_API',
|
|
14
|
+
'CLI_COMMAND',
|
|
15
|
+
'CLI_COMMAND_INTERACTIVE_MODE'
|
|
16
|
+
], isWixOne = false) {
|
|
17
|
+
if (allowedTools.includes('WIX_API')) {
|
|
18
|
+
server.tool('CallWixAPI', 'Call Wix apis on an app. Use this to create, read, update, and delete data and other Wix entities in your Wix app.', {
|
|
19
|
+
appPath: z
|
|
20
|
+
.string()
|
|
21
|
+
.describe('The dir path to the wix backoffice cli app to call the api on behalf of. should have {appPath}/.wix/app.config.json file with a siteId field. if passed, siteId is not required')
|
|
22
|
+
.optional(), // should we have appPath or siteId here? (appPath encapsulates this more since we can get the siteId from the appPath then perform the call)
|
|
23
|
+
siteId: z
|
|
24
|
+
.string()
|
|
25
|
+
.describe('The siteId of the wix backoffice cli app to call the api on behalf of. You can find the siteId in the {appPath}/.wix/app.config.json file. You can pass any other siteId if you want to call the api on behalf of a different site. If passed, appPath is not required. if not passed, the appPath must be provided.')
|
|
26
|
+
.optional(),
|
|
27
|
+
url: z
|
|
28
|
+
.string()
|
|
29
|
+
.describe('The url of the api to call - usually you get this from the Wix REST docs or from the conversation context'),
|
|
30
|
+
method: z
|
|
31
|
+
.string()
|
|
32
|
+
.describe('The HTTP method to use for the API call (e.g. GET, POST, PUT, DELETE)'),
|
|
33
|
+
body: z
|
|
34
|
+
.string()
|
|
35
|
+
.optional()
|
|
36
|
+
.describe('A string representing of a valid JSON object to describe the body of the request')
|
|
37
|
+
}, async ({ method, url, body, appPath, siteId }, { httpClient }) => {
|
|
38
|
+
logger.log(`Calling Wix API: ${appPath} ${siteId} ${method} ${url}, body: ${JSON.stringify(body)}`);
|
|
39
|
+
if (!siteId && !appPath) {
|
|
40
|
+
return {
|
|
41
|
+
content: [
|
|
42
|
+
{
|
|
43
|
+
type: 'text',
|
|
44
|
+
text: 'Either appPath or siteId must be provided'
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
let siteIdToUse = siteId;
|
|
50
|
+
if (!siteIdToUse && appPath) {
|
|
51
|
+
siteIdToUse = getSiteIdFromCliAppConfig(appPath);
|
|
52
|
+
}
|
|
53
|
+
if (!siteIdToUse) {
|
|
54
|
+
return {
|
|
55
|
+
content: [
|
|
56
|
+
{
|
|
57
|
+
type: 'text',
|
|
58
|
+
text: 'Either appPath or siteId must be provided'
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
logger.log(`Site ID for Wix API call: ${siteIdToUse}`);
|
|
64
|
+
const authorization = getCliAuthTokenForSiteId(siteIdToUse);
|
|
65
|
+
if (!authorization) {
|
|
66
|
+
return {
|
|
67
|
+
content: [
|
|
68
|
+
{
|
|
69
|
+
type: 'text',
|
|
70
|
+
text: 'Failed to get authorization token. Please check your siteId and appPath'
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
try {
|
|
76
|
+
const response = await httpClient.request({
|
|
77
|
+
url,
|
|
78
|
+
method: method,
|
|
79
|
+
headers: {
|
|
80
|
+
Authorization: authorization,
|
|
81
|
+
'wix-site-id': siteIdToUse,
|
|
82
|
+
...(body ? { 'Content-Type': 'application/json' } : {})
|
|
83
|
+
},
|
|
84
|
+
data: method === 'GET' ? undefined : body
|
|
85
|
+
});
|
|
86
|
+
const responseData = await handleWixAPIResponse(response);
|
|
87
|
+
return {
|
|
88
|
+
content: [
|
|
89
|
+
{
|
|
90
|
+
type: 'text',
|
|
91
|
+
text: `Wix API call successful: ${JSON.stringify(responseData)}`
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
catch (error) {
|
|
97
|
+
logger.error(`Failed to call Wix API: ${error}`);
|
|
98
|
+
throw new Error(`Failed to call Wix API: ${error}`);
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
if (allowedTools.includes('CLI_COMMAND_INTERACTIVE_MODE')) {
|
|
103
|
+
server.tool('RunWixCliCommandInteractiveMode', `Executes Wix CLI commands for Wix app development and management.
|
|
104
|
+
Use this tool to run commands like 'wix app generate' (adds new extensions), 'wix app build' (builds your app), 'wix app preview' (creates shareable preview), 'wix app release' (releases a new version of your app), and more.
|
|
105
|
+
|
|
106
|
+
IMPORTANT: Before using this tool, check if the command is mapped in package.json scripts:
|
|
107
|
+
* Use this tool for npm/yarn scripts that map to Wix CLI commands as well.
|
|
108
|
+
* Do not use this tool for starting the local development server.
|
|
109
|
+
|
|
110
|
+
Before using this tool, you MUST search the Wix documentation for the command you want to run.
|
|
111
|
+
|
|
112
|
+
DO NOT USE THIS TOOL FOR ANY OTHER PURPOSE. IT IS ONLY FOR WIX CLI COMMANDS.`, {
|
|
113
|
+
appPath: z
|
|
114
|
+
.string()
|
|
115
|
+
.describe('The full path to the Wix CLI app to run the command on'),
|
|
116
|
+
extensionType: z
|
|
117
|
+
.enum(['DASHBOARD_PAGE', 'BACKEND_EVENT'])
|
|
118
|
+
.optional()
|
|
119
|
+
.describe('The type of extension to generate. You MUST provide this for commands that generate extensions.'),
|
|
120
|
+
searchedDocs: z
|
|
121
|
+
.boolean()
|
|
122
|
+
.describe('Whether you have already searched the Wix documentation for the command you want to run.'),
|
|
123
|
+
command: z
|
|
124
|
+
.string()
|
|
125
|
+
.min(1, 'Command cannot be empty')
|
|
126
|
+
.max(1000, 'Command is too long')
|
|
127
|
+
.describe("The Wix CLI command to execute (e.g. 'wix app generate', 'wix app build', 'wix app preview', 'wix app release', etc.), or a npm/yarn script that maps to a Wix CLI command (e.g. 'npm run generate', 'yarn build', etc.).")
|
|
128
|
+
}, async ({ command, appPath, extensionType }) => {
|
|
129
|
+
command = command.replace('wix app generate', 'npm run generate');
|
|
130
|
+
if (command.includes('generate') && !extensionType) {
|
|
131
|
+
return {
|
|
132
|
+
content: [
|
|
133
|
+
{
|
|
134
|
+
type: 'text',
|
|
135
|
+
text: "Error: You must provide an extension type for the 'generate' command."
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
isError: true
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
logger.log(`RunWixCliCommand: command: ${command}, appPath: ${appPath}, extensionType: ${extensionType}`);
|
|
142
|
+
try {
|
|
143
|
+
logger.log(`Executing Wix CLI command: ${command}`);
|
|
144
|
+
const commandParts = command.split(' ');
|
|
145
|
+
const commandName = commandParts[0];
|
|
146
|
+
const commandArgs = commandParts.slice(1);
|
|
147
|
+
// Execute with timeout
|
|
148
|
+
const subprocess = execa(commandName, commandArgs, {
|
|
149
|
+
cwd: appPath,
|
|
150
|
+
extendEnv: true,
|
|
151
|
+
env: {
|
|
152
|
+
...process.env,
|
|
153
|
+
PATH: process.env.PATH,
|
|
154
|
+
WIX_CLI_TEST_OVERRIDES: JSON.stringify({
|
|
155
|
+
inkDebug: true
|
|
156
|
+
})
|
|
157
|
+
},
|
|
158
|
+
timeout: 5 * 60 * 1000, // 5 minute timeout
|
|
159
|
+
maxBuffer: 10 * 1024 * 1024 // 10MB output limit
|
|
160
|
+
});
|
|
161
|
+
logger.log(`RunWixCliCommand: pid: ${subprocess.pid}`);
|
|
162
|
+
if (!subprocess.pid) {
|
|
163
|
+
let spawnError;
|
|
164
|
+
// make sure spawnError is defined by waiting for the error event
|
|
165
|
+
if (!spawnError) {
|
|
166
|
+
await new Promise((resolve) => {
|
|
167
|
+
subprocess.on('error', (err) => {
|
|
168
|
+
spawnError = err;
|
|
169
|
+
resolve({ spawnError });
|
|
170
|
+
});
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
return {
|
|
174
|
+
content: [
|
|
175
|
+
{
|
|
176
|
+
type: 'text',
|
|
177
|
+
text: `Failed to start the Wix CLI command process. This usually indicates a problem with the command or the environment. Are you sure Wix CLI is installed globally?\n\nCommand: ${command}\n\n${spawnError}`
|
|
178
|
+
}
|
|
179
|
+
]
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
const { stdin, stdout, stderr } = subprocess;
|
|
183
|
+
if (extensionType) {
|
|
184
|
+
const output = await mockInteractiveGenerateCommandTool({
|
|
185
|
+
extensionType,
|
|
186
|
+
stdin,
|
|
187
|
+
stdout
|
|
188
|
+
});
|
|
189
|
+
logger.log(`RunWixCliCommand: output: ${output}`);
|
|
190
|
+
return {
|
|
191
|
+
content: [{ type: 'text', text: output }]
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
const stringifyStdout = JSON.stringify(stdout);
|
|
195
|
+
const stringifyStderr = JSON.stringify(stderr);
|
|
196
|
+
return {
|
|
197
|
+
content: [
|
|
198
|
+
{ type: 'text', text: stringifyStdout },
|
|
199
|
+
...(stringifyStderr
|
|
200
|
+
? [{ type: 'text', text: `Error: ${stringifyStderr}` }]
|
|
201
|
+
: [])
|
|
202
|
+
]
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
catch (error) {
|
|
206
|
+
logger.error(`Error executing Wix CLI command: ${error}`);
|
|
207
|
+
return {
|
|
208
|
+
content: [{ type: 'text', text: `Error: ${error}` }],
|
|
209
|
+
isError: true
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
if (allowedTools.includes('CLI_COMMAND')) {
|
|
215
|
+
server.tool('RunWixCliCommand', `Executes Wix CLI commands for Wix app development and management.
|
|
216
|
+
Use this tool to run commands like 'wix app generate' (adds new extensions), 'wix app build' (builds your app), 'wix app preview' (creates shareable preview), 'wix app release' (releases a new version of your app), and more.
|
|
217
|
+
|
|
218
|
+
IMPORTANT: Before using this tool, check if the command is mapped in package.json scripts:
|
|
219
|
+
* Use this tool for npm/yarn scripts that map to Wix CLI commands as well.
|
|
220
|
+
* Do not use this tool for starting the local development server.
|
|
221
|
+
|
|
222
|
+
Before using this tool, you MUST search the Wix documentation for the command you want to run.
|
|
223
|
+
|
|
224
|
+
DO NOT USE THIS TOOL FOR ANY OTHER PURPOSE. IT IS ONLY FOR WIX CLI COMMANDS.`, {
|
|
225
|
+
appPath: z
|
|
226
|
+
.string()
|
|
227
|
+
.describe('The full path to the Wix CLI app to run the command on.'),
|
|
228
|
+
extensionType: z
|
|
229
|
+
.enum([
|
|
230
|
+
'dashboard-page',
|
|
231
|
+
'dashboard-plugin',
|
|
232
|
+
'dashboard-menu-plugin',
|
|
233
|
+
'dashboard-modal',
|
|
234
|
+
'web-method',
|
|
235
|
+
'api-route',
|
|
236
|
+
'event',
|
|
237
|
+
'service-plugin'
|
|
238
|
+
])
|
|
239
|
+
.optional()
|
|
240
|
+
.describe('The type of extension to generate. You MUST provide this for commands that generate extensions.'),
|
|
241
|
+
extensionName: z
|
|
242
|
+
.string()
|
|
243
|
+
.optional()
|
|
244
|
+
.describe('The name of the extension to generate, e.g. My Dashboard Page. You MUST provide this for commands that generate extensions.'),
|
|
245
|
+
searchedDocs: z
|
|
246
|
+
.boolean()
|
|
247
|
+
.describe('Whether you have already searched the Wix documentation for the command you want to run.'),
|
|
248
|
+
command: z
|
|
249
|
+
.string()
|
|
250
|
+
.min(1, 'Command cannot be empty')
|
|
251
|
+
.max(1000, 'Command is too long')
|
|
252
|
+
.describe("The Wix CLI command to execute (e.g. 'wix app generate', 'wix app build', 'wix app preview', 'wix app release', etc.), or a script that maps to a Wix CLI command (e.g. 'npm run generate', 'yarn generate', etc.).")
|
|
253
|
+
}, async ({ command, appPath, extensionType, extensionName }) => {
|
|
254
|
+
logger.log(`RunWixCliCommand: command: ${command}, appPath: ${appPath}, extensionType: ${extensionType}, extensionName: ${extensionName}`);
|
|
255
|
+
let commandName = '';
|
|
256
|
+
let commandArgs = [];
|
|
257
|
+
if (command.includes('generate')) {
|
|
258
|
+
if (!extensionType) {
|
|
259
|
+
return {
|
|
260
|
+
content: [
|
|
261
|
+
{
|
|
262
|
+
type: 'text',
|
|
263
|
+
text: "Error: You must provide an extension type for the 'generate' command."
|
|
264
|
+
}
|
|
265
|
+
],
|
|
266
|
+
isError: true
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
if (!extensionName) {
|
|
270
|
+
return {
|
|
271
|
+
content: [
|
|
272
|
+
{
|
|
273
|
+
type: 'text',
|
|
274
|
+
text: "Error: You must provide an extension name for the 'generate' command."
|
|
275
|
+
}
|
|
276
|
+
],
|
|
277
|
+
isError: true
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
// Format generate command with proper arguments
|
|
281
|
+
commandName = 'npx';
|
|
282
|
+
commandArgs = [
|
|
283
|
+
isWixOne ? 'wix-one' : 'wix',
|
|
284
|
+
'app',
|
|
285
|
+
'generate',
|
|
286
|
+
'-t',
|
|
287
|
+
extensionType,
|
|
288
|
+
'-n',
|
|
289
|
+
extensionName,
|
|
290
|
+
'--json'
|
|
291
|
+
];
|
|
292
|
+
}
|
|
293
|
+
else {
|
|
294
|
+
const commandParts = command.split(' ');
|
|
295
|
+
commandName = commandParts[0];
|
|
296
|
+
commandArgs = commandParts.slice(1);
|
|
297
|
+
}
|
|
298
|
+
if (isWixOne && commandName === 'wix') {
|
|
299
|
+
commandName = 'wix-one';
|
|
300
|
+
}
|
|
301
|
+
try {
|
|
302
|
+
logger.log(`Executing Wix CLI command: ${commandName} ${commandArgs.join(' ')}`);
|
|
303
|
+
// Execute with timeout
|
|
304
|
+
const { stdout, stderr, exitCode } = await execa(commandName, commandArgs, {
|
|
305
|
+
cwd: appPath,
|
|
306
|
+
extendEnv: true,
|
|
307
|
+
env: {
|
|
308
|
+
...process.env
|
|
309
|
+
},
|
|
310
|
+
timeout: 5 * 60 * 1000, // 5 minute timeout
|
|
311
|
+
maxBuffer: 10 * 1024 * 1024 // 10MB output limit
|
|
312
|
+
});
|
|
313
|
+
if (exitCode !== 0) {
|
|
314
|
+
return {
|
|
315
|
+
content: [{ type: 'text', text: `Error: ${stderr}` }],
|
|
316
|
+
isError: true
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
logger.log(`RunWixCliCommand: stdout: ${stdout}`);
|
|
320
|
+
logger.log(`RunWixCliCommand: stderr: ${stderr}`);
|
|
321
|
+
return {
|
|
322
|
+
content: [
|
|
323
|
+
{ type: 'text', text: stdout },
|
|
324
|
+
...(stderr
|
|
325
|
+
? [{ type: 'text', text: `Error: ${stderr}` }]
|
|
326
|
+
: [])
|
|
327
|
+
]
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
catch (error) {
|
|
331
|
+
logger.error(`Error executing Wix CLI command: ${error}`);
|
|
332
|
+
return {
|
|
333
|
+
content: [{ type: 'text', text: `Error: ${error}` }],
|
|
334
|
+
isError: true
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { existsSync, readFileSync } from 'fs';
|
|
2
|
+
import { homedir } from 'os';
|
|
3
|
+
import path from 'path';
|
|
4
|
+
export function getCliAuthTokenForSiteId(siteIdOrAccountsFileName) {
|
|
5
|
+
// check if the api-key.json file exists:
|
|
6
|
+
const apiKeyFileName = path.join(homedir(), `.wix/auth/api-key.json`);
|
|
7
|
+
const apiKeyFileExists = existsSync(apiKeyFileName);
|
|
8
|
+
if (apiKeyFileExists) {
|
|
9
|
+
const apiKeyData = JSON.parse(readFileSync(apiKeyFileName, 'utf8'));
|
|
10
|
+
return (apiKeyData.token || apiKeyData.accessToken);
|
|
11
|
+
}
|
|
12
|
+
const siteTokenFileName = path.join(homedir(), `.wix/auth/${siteIdOrAccountsFileName}.json`);
|
|
13
|
+
// check if the site token file exists:
|
|
14
|
+
const siteTokenFileExists = existsSync(siteTokenFileName);
|
|
15
|
+
if (siteTokenFileExists) {
|
|
16
|
+
const authData = JSON.parse(readFileSync(siteTokenFileName, 'utf8'));
|
|
17
|
+
return (authData.accessToken || authData.token);
|
|
18
|
+
}
|
|
19
|
+
throw new Error('No site token or api key found. You need to authenticate with Wix CLI first.');
|
|
20
|
+
}
|
|
21
|
+
// f"first get the site id - its in the `{backoffice_app_dir}/.wix/app.config.json` file, it has a json object with a siteId field",
|
|
22
|
+
export function getSiteIdFromCliAppConfig(appPath) {
|
|
23
|
+
const appConfig = JSON.parse(readFileSync(path.join(appPath, '.wix/app.config.json'), 'utf8'));
|
|
24
|
+
return appConfig.siteId;
|
|
25
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { WixMcpServer } from '../wix-mcp-server.js';
|
|
2
|
+
export declare const VALID_DOCS_TOOLS: readonly ["WDS", "REST", "SDK", "BUILD_APPS", "WIX_HEADLESS", "BUSINESS_SOLUTIONS"];
|
|
3
|
+
export type DocsTool = (typeof VALID_DOCS_TOOLS)[number];
|
|
4
|
+
export declare const addDocsTools: (server: WixMcpServer, allowedTools?: DocsTool[]) => void;
|