@wix/mcp 1.0.82 → 1.0.83
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 +3 -1
- package/build/bin-standalone.js +826 -1
- package/build/cjs/index.cjs +842 -4
- package/build/cjs/toolkit.cjs +828 -1
- package/build/dts/bin.d.ts +1 -1
- package/build/dts/bin.js +13 -1
- package/build/dts/config/default-config.d.ts +1 -0
- package/build/dts/config/default-config.js +28 -1
- package/build/dts/config/param-descriptions.d.ts +21 -0
- package/build/dts/config/param-descriptions.js +21 -0
- package/build/dts/graphql/constants.d.ts +8 -0
- package/build/dts/graphql/constants.js +11 -0
- package/build/dts/graphql/index.d.ts +30 -0
- package/build/dts/graphql/index.js +259 -0
- package/build/dts/graphql/introspection.d.ts +106 -0
- package/build/dts/graphql/introspection.js +282 -0
- package/build/dts/graphql/search.d.ts +25 -0
- package/build/dts/graphql/search.js +277 -0
- package/build/dts/index.d.ts +2 -1
- package/build/dts/index.js +3 -1
- package/build/dts/site-widget-tools/suggested-domain-tool/index.js +5 -3
- package/build/dts/toolkit-entry.d.cts +12 -0
- package/build/dts/toolkit-entry.d.ts +12 -0
- package/build/dts/toolkit-entry.js +4 -0
- package/build/dts/toolkit.js +14 -0
- package/build/esm/index.js +834 -4
- package/build/esm/toolkit.js +823 -1
- package/package.json +2 -2
|
@@ -314,6 +314,17 @@ export interface CodeValidationResult {
|
|
|
314
314
|
error?: string;
|
|
315
315
|
}
|
|
316
316
|
export declare function validateExecuteCode(code: string): CodeValidationResult;
|
|
317
|
+
/** Wix "Auto GraphQL": one schema generated over all Wix public APIs. */
|
|
318
|
+
export declare const WIX_GRAPHQL_ENDPOINT = "https://www.wixapis.com/graphql/alpha";
|
|
319
|
+
export declare const SEARCH_GRAPHQL_TOOL_NAME = "SearchWixGraphQLOperations";
|
|
320
|
+
export declare const INSPECT_GRAPHQL_TOOL_NAME = "InspectWixGraphQLSchema";
|
|
321
|
+
export declare const EXECUTE_GRAPHQL_TOOL_NAME = "ExecuteWixGraphQL";
|
|
322
|
+
export declare const GRAPHQL_TOOL_NAMES: readonly [
|
|
323
|
+
"SearchWixGraphQLOperations",
|
|
324
|
+
"InspectWixGraphQLSchema",
|
|
325
|
+
"ExecuteWixGraphQL"
|
|
326
|
+
];
|
|
327
|
+
export type GraphqlToolName = (typeof GRAPHQL_TOOL_NAMES)[number];
|
|
317
328
|
/** URL for the management recipes index article */
|
|
318
329
|
export declare const RECIPES_INDEX_URL = "https://dev.wix.com/docs/api-reference/articles/ai-tools/wix-mcp/skills/wix-management-recipes-index";
|
|
319
330
|
/**
|
|
@@ -379,6 +390,7 @@ export interface ModeDefaultConfig {
|
|
|
379
390
|
partnerContextEnabled?: boolean;
|
|
380
391
|
usePlatformizedSearch?: boolean;
|
|
381
392
|
skillsPrOverrideEnabled?: boolean;
|
|
393
|
+
graphqlEnabled?: boolean;
|
|
382
394
|
}
|
|
383
395
|
export declare const SYSTEM_REMINDER_GUIDELINES: string;
|
|
384
396
|
export declare const SYSTEM_REMINDER: string;
|
|
@@ -16,6 +16,10 @@ export { WixFetchError } from './wix-fetch-error.js';
|
|
|
16
16
|
export { attachConsoleLogger } from './infra/logger.js';
|
|
17
17
|
// Code-mode validation (pre-flight the same check the runtime applies)
|
|
18
18
|
export { validateExecuteCode, EXECUTE_FUNCTION_EXPRESSION_HINT } from './code-mode/validation.js';
|
|
19
|
+
// GraphQL tool names/constants (register the tools via createWixToolkit's
|
|
20
|
+
// api.tools / api.enableTools; addGraphqlTools itself stays on the main entry
|
|
21
|
+
// because its WixMcpServer parameter would pull the SDK types into this bundle)
|
|
22
|
+
export { GRAPHQL_TOOL_NAMES, SEARCH_GRAPHQL_TOOL_NAME, INSPECT_GRAPHQL_TOOL_NAME, EXECUTE_GRAPHQL_TOOL_NAME, WIX_GRAPHQL_ENDPOINT } from './graphql/index.js';
|
|
19
23
|
// Docs fetch utilities
|
|
20
24
|
export { fetchRecipesIndex, fetchArticle, RECIPES_INDEX_URL } from './docs/fetch-article.js';
|
|
21
25
|
// Config (the widget-related config exports stay on the main entry)
|
package/build/dts/toolkit.js
CHANGED
|
@@ -32,6 +32,7 @@ import { v4 as uuidv4 } from 'uuid';
|
|
|
32
32
|
import { HttpClient } from '@wix/http-client';
|
|
33
33
|
import { addDocsTools } from './docs/docs.js';
|
|
34
34
|
import { addApiCallTool } from './api-call/index.js';
|
|
35
|
+
import { addGraphqlTools, GRAPHQL_TOOL_NAMES } from './graphql/index.js';
|
|
35
36
|
import { addExecuteCodeModeTool, addSearchCodeModeTool } from './code-mode/index.js';
|
|
36
37
|
import { defaultReadmeDocs, executeCodeModeToolDescriptions, buildToolDescriptions } from './config/default-config.js';
|
|
37
38
|
import { getDynamicContext } from './docs/get-to-know.js';
|
|
@@ -224,6 +225,19 @@ export function createWixToolkit(options) {
|
|
|
224
225
|
maxResponseSize
|
|
225
226
|
});
|
|
226
227
|
}
|
|
228
|
+
// GraphQL tools register only the ones requested (each is opt-in by name).
|
|
229
|
+
const requestedGraphqlTools = GRAPHQL_TOOL_NAMES.filter((name) => requestedTools.has(name));
|
|
230
|
+
if (requestedGraphqlTools.length > 0) {
|
|
231
|
+
addGraphqlTools(server, {
|
|
232
|
+
authStrategy,
|
|
233
|
+
disableTools: [
|
|
234
|
+
...(disableTools ?? []),
|
|
235
|
+
...GRAPHQL_TOOL_NAMES.filter((n) => !requestedTools.has(n))
|
|
236
|
+
],
|
|
237
|
+
toolDescriptions: effectiveToolDescriptions,
|
|
238
|
+
maxResponseSize
|
|
239
|
+
});
|
|
240
|
+
}
|
|
227
241
|
}
|
|
228
242
|
else {
|
|
229
243
|
// Default: register all API tools
|