@elementor/elementor-v3-mcp 4.1.0-754

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.
@@ -0,0 +1,70 @@
1
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+
3
+ declare function createElementorServer(): Promise<McpServer>;
4
+
5
+ declare const RESOURCE_NAME_ELEMENT_SETTINGS = "elementor-element-settings";
6
+ declare const RESOURCE_URI_ELEMENT_SETTINGS_TEMPLATE = "elementor://editor/element-settings/{elementId}";
7
+ declare const RESOURCE_NAME_WIDGET_CONFIG = "elementor-widget-config";
8
+ declare const RESOURCE_URI_WIDGET_CONFIG_TEMPLATE = "elementor://editor/widget-config/{widgetType}";
9
+ declare const RESOURCE_NAME_PAGE_OVERVIEW = "elementor-page-overview";
10
+ declare const RESOURCE_URI_PAGE_OVERVIEW = "elementor://editor/page-overview";
11
+ declare const RESOURCE_NAME_PAGE_SETTINGS = "elementor-page-settings";
12
+ declare const RESOURCE_URI_PAGE_SETTINGS = "elementor://editor/page-settings";
13
+
14
+ type ToolParams = {
15
+ [key: string]: unknown;
16
+ action: string;
17
+ };
18
+ type McpToolResult = {
19
+ content: Array<{
20
+ type: 'text';
21
+ text: string;
22
+ }>;
23
+ };
24
+ interface ElementorContainer {
25
+ id: string;
26
+ model: {
27
+ id: string;
28
+ attributes?: Record<string, unknown>;
29
+ editor_settings?: {
30
+ title?: string;
31
+ };
32
+ get?: (key: string) => unknown;
33
+ };
34
+ settings: {
35
+ attributes?: Record<string, unknown>;
36
+ controls?: Record<string, unknown>;
37
+ get: (key: string) => unknown;
38
+ };
39
+ children?: ElementorContainer[];
40
+ view?: {
41
+ el: HTMLElement;
42
+ };
43
+ parent?: ElementorContainer;
44
+ }
45
+ interface ElementorControls {
46
+ [key: string]: {
47
+ type: string;
48
+ default?: unknown;
49
+ options?: Record<string, string>;
50
+ fields?: ElementorControls;
51
+ };
52
+ }
53
+ type ElementorControlsMapped = {
54
+ [key: string]: {
55
+ default: unknown;
56
+ options?: string[];
57
+ onValue?: string;
58
+ size_units?: string[];
59
+ range?: {
60
+ min: number;
61
+ max: number;
62
+ };
63
+ type: string;
64
+ fields?: ElementorControlsMapped;
65
+ };
66
+ };
67
+
68
+ declare function init(): void;
69
+
70
+ export { type ElementorContainer, type ElementorControls, type ElementorControlsMapped, type McpToolResult, RESOURCE_NAME_ELEMENT_SETTINGS, RESOURCE_NAME_PAGE_OVERVIEW, RESOURCE_NAME_PAGE_SETTINGS, RESOURCE_NAME_WIDGET_CONFIG, RESOURCE_URI_ELEMENT_SETTINGS_TEMPLATE, RESOURCE_URI_PAGE_OVERVIEW, RESOURCE_URI_PAGE_SETTINGS, RESOURCE_URI_WIDGET_CONFIG_TEMPLATE, type ToolParams, createElementorServer, init };
@@ -0,0 +1,70 @@
1
+ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
2
+
3
+ declare function createElementorServer(): Promise<McpServer>;
4
+
5
+ declare const RESOURCE_NAME_ELEMENT_SETTINGS = "elementor-element-settings";
6
+ declare const RESOURCE_URI_ELEMENT_SETTINGS_TEMPLATE = "elementor://editor/element-settings/{elementId}";
7
+ declare const RESOURCE_NAME_WIDGET_CONFIG = "elementor-widget-config";
8
+ declare const RESOURCE_URI_WIDGET_CONFIG_TEMPLATE = "elementor://editor/widget-config/{widgetType}";
9
+ declare const RESOURCE_NAME_PAGE_OVERVIEW = "elementor-page-overview";
10
+ declare const RESOURCE_URI_PAGE_OVERVIEW = "elementor://editor/page-overview";
11
+ declare const RESOURCE_NAME_PAGE_SETTINGS = "elementor-page-settings";
12
+ declare const RESOURCE_URI_PAGE_SETTINGS = "elementor://editor/page-settings";
13
+
14
+ type ToolParams = {
15
+ [key: string]: unknown;
16
+ action: string;
17
+ };
18
+ type McpToolResult = {
19
+ content: Array<{
20
+ type: 'text';
21
+ text: string;
22
+ }>;
23
+ };
24
+ interface ElementorContainer {
25
+ id: string;
26
+ model: {
27
+ id: string;
28
+ attributes?: Record<string, unknown>;
29
+ editor_settings?: {
30
+ title?: string;
31
+ };
32
+ get?: (key: string) => unknown;
33
+ };
34
+ settings: {
35
+ attributes?: Record<string, unknown>;
36
+ controls?: Record<string, unknown>;
37
+ get: (key: string) => unknown;
38
+ };
39
+ children?: ElementorContainer[];
40
+ view?: {
41
+ el: HTMLElement;
42
+ };
43
+ parent?: ElementorContainer;
44
+ }
45
+ interface ElementorControls {
46
+ [key: string]: {
47
+ type: string;
48
+ default?: unknown;
49
+ options?: Record<string, string>;
50
+ fields?: ElementorControls;
51
+ };
52
+ }
53
+ type ElementorControlsMapped = {
54
+ [key: string]: {
55
+ default: unknown;
56
+ options?: string[];
57
+ onValue?: string;
58
+ size_units?: string[];
59
+ range?: {
60
+ min: number;
61
+ max: number;
62
+ };
63
+ type: string;
64
+ fields?: ElementorControlsMapped;
65
+ };
66
+ };
67
+
68
+ declare function init(): void;
69
+
70
+ export { type ElementorContainer, type ElementorControls, type ElementorControlsMapped, type McpToolResult, RESOURCE_NAME_ELEMENT_SETTINGS, RESOURCE_NAME_PAGE_OVERVIEW, RESOURCE_NAME_PAGE_SETTINGS, RESOURCE_NAME_WIDGET_CONFIG, RESOURCE_URI_ELEMENT_SETTINGS_TEMPLATE, RESOURCE_URI_PAGE_OVERVIEW, RESOURCE_URI_PAGE_SETTINGS, RESOURCE_URI_WIDGET_CONFIG_TEMPLATE, type ToolParams, createElementorServer, init };