@diviops/mcp-server 0.2.8 → 0.2.10
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/dist/index.js +48 -48
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -107,7 +107,7 @@ server.registerTool("diviops_list_pages", {
|
|
|
107
107
|
});
|
|
108
108
|
return {
|
|
109
109
|
content: [
|
|
110
|
-
{ type: "text", text: JSON.stringify(result
|
|
110
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
111
111
|
],
|
|
112
112
|
};
|
|
113
113
|
});
|
|
@@ -120,7 +120,7 @@ server.registerTool("diviops_get_page", {
|
|
|
120
120
|
const result = await wp.request(`/page/${page_id}`);
|
|
121
121
|
return {
|
|
122
122
|
content: [
|
|
123
|
-
{ type: "text", text: JSON.stringify(result
|
|
123
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
124
124
|
],
|
|
125
125
|
};
|
|
126
126
|
});
|
|
@@ -140,7 +140,7 @@ server.registerTool("diviops_get_page_layout", {
|
|
|
140
140
|
});
|
|
141
141
|
return {
|
|
142
142
|
content: [
|
|
143
|
-
{ type: "text", text: JSON.stringify(result
|
|
143
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
144
144
|
],
|
|
145
145
|
};
|
|
146
146
|
});
|
|
@@ -150,7 +150,7 @@ server.registerTool("diviops_list_modules", {
|
|
|
150
150
|
const result = await wp.request("/modules");
|
|
151
151
|
return {
|
|
152
152
|
content: [
|
|
153
|
-
{ type: "text", text: JSON.stringify(result
|
|
153
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
154
154
|
],
|
|
155
155
|
};
|
|
156
156
|
});
|
|
@@ -171,7 +171,7 @@ server.registerTool("diviops_get_module_schema", {
|
|
|
171
171
|
const output = raw ? result : optimizeSchema(result);
|
|
172
172
|
return {
|
|
173
173
|
content: [
|
|
174
|
-
{ type: "text", text: JSON.stringify(output
|
|
174
|
+
{ type: "text", text: JSON.stringify(output) },
|
|
175
175
|
],
|
|
176
176
|
};
|
|
177
177
|
});
|
|
@@ -181,7 +181,7 @@ server.registerTool("diviops_get_settings", {
|
|
|
181
181
|
const result = await wp.request("/settings");
|
|
182
182
|
return {
|
|
183
183
|
content: [
|
|
184
|
-
{ type: "text", text: JSON.stringify(result
|
|
184
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
185
185
|
],
|
|
186
186
|
};
|
|
187
187
|
});
|
|
@@ -191,7 +191,7 @@ server.registerTool("diviops_get_global_colors", {
|
|
|
191
191
|
const result = await wp.request("/global-colors");
|
|
192
192
|
return {
|
|
193
193
|
content: [
|
|
194
|
-
{ type: "text", text: JSON.stringify(result
|
|
194
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
195
195
|
],
|
|
196
196
|
};
|
|
197
197
|
});
|
|
@@ -201,7 +201,7 @@ server.registerTool("diviops_get_global_fonts", {
|
|
|
201
201
|
const result = await wp.request("/global-fonts");
|
|
202
202
|
return {
|
|
203
203
|
content: [
|
|
204
|
-
{ type: "text", text: JSON.stringify(result
|
|
204
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
205
205
|
],
|
|
206
206
|
};
|
|
207
207
|
});
|
|
@@ -226,7 +226,7 @@ server.registerTool("diviops_find_icon", {
|
|
|
226
226
|
const result = await wp.request(`/icons/search?q=${encodeURIComponent(query)}&type=${type ?? "all"}&limit=${limit ?? 10}`);
|
|
227
227
|
return {
|
|
228
228
|
content: [
|
|
229
|
-
{ type: "text", text: JSON.stringify(result
|
|
229
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
230
230
|
],
|
|
231
231
|
};
|
|
232
232
|
});
|
|
@@ -246,7 +246,7 @@ server.registerTool("diviops_update_page_content", {
|
|
|
246
246
|
});
|
|
247
247
|
return {
|
|
248
248
|
content: [
|
|
249
|
-
{ type: "text", text: JSON.stringify(result
|
|
249
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
250
250
|
],
|
|
251
251
|
};
|
|
252
252
|
});
|
|
@@ -262,7 +262,7 @@ server.registerTool("diviops_render_preview", {
|
|
|
262
262
|
});
|
|
263
263
|
return {
|
|
264
264
|
content: [
|
|
265
|
-
{ type: "text", text: JSON.stringify(result
|
|
265
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
266
266
|
],
|
|
267
267
|
};
|
|
268
268
|
});
|
|
@@ -278,7 +278,7 @@ server.registerTool("diviops_validate_blocks", {
|
|
|
278
278
|
});
|
|
279
279
|
return {
|
|
280
280
|
content: [
|
|
281
|
-
{ type: "text", text: JSON.stringify(result
|
|
281
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
282
282
|
],
|
|
283
283
|
};
|
|
284
284
|
});
|
|
@@ -302,7 +302,7 @@ server.registerTool("diviops_append_section", {
|
|
|
302
302
|
});
|
|
303
303
|
return {
|
|
304
304
|
content: [
|
|
305
|
-
{ type: "text", text: JSON.stringify(result
|
|
305
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
306
306
|
],
|
|
307
307
|
};
|
|
308
308
|
});
|
|
@@ -341,7 +341,7 @@ server.registerTool("diviops_replace_section", {
|
|
|
341
341
|
});
|
|
342
342
|
return {
|
|
343
343
|
content: [
|
|
344
|
-
{ type: "text", text: JSON.stringify(result
|
|
344
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
345
345
|
],
|
|
346
346
|
};
|
|
347
347
|
});
|
|
@@ -377,7 +377,7 @@ server.registerTool("diviops_remove_section", {
|
|
|
377
377
|
});
|
|
378
378
|
return {
|
|
379
379
|
content: [
|
|
380
|
-
{ type: "text", text: JSON.stringify(result
|
|
380
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
381
381
|
],
|
|
382
382
|
};
|
|
383
383
|
});
|
|
@@ -411,7 +411,7 @@ server.registerTool("diviops_get_section", {
|
|
|
411
411
|
const result = await wp.request(`/page/${page_id}/get-section?${qs}`);
|
|
412
412
|
return {
|
|
413
413
|
content: [
|
|
414
|
-
{ type: "text", text: JSON.stringify(result
|
|
414
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
415
415
|
],
|
|
416
416
|
};
|
|
417
417
|
});
|
|
@@ -458,7 +458,7 @@ server.registerTool("diviops_update_module", {
|
|
|
458
458
|
});
|
|
459
459
|
return {
|
|
460
460
|
content: [
|
|
461
|
-
{ type: "text", text: JSON.stringify(result
|
|
461
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
462
462
|
],
|
|
463
463
|
};
|
|
464
464
|
});
|
|
@@ -532,7 +532,7 @@ server.registerTool("diviops_move_module", {
|
|
|
532
532
|
});
|
|
533
533
|
return {
|
|
534
534
|
content: [
|
|
535
|
-
{ type: "text", text: JSON.stringify(result
|
|
535
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
536
536
|
],
|
|
537
537
|
};
|
|
538
538
|
});
|
|
@@ -558,7 +558,7 @@ server.registerTool("diviops_create_page", {
|
|
|
558
558
|
});
|
|
559
559
|
return {
|
|
560
560
|
content: [
|
|
561
|
-
{ type: "text", text: JSON.stringify(result
|
|
561
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
562
562
|
],
|
|
563
563
|
};
|
|
564
564
|
});
|
|
@@ -569,7 +569,7 @@ server.registerTool("diviops_preset_audit", {
|
|
|
569
569
|
const result = await wp.request("/preset-audit");
|
|
570
570
|
return {
|
|
571
571
|
content: [
|
|
572
|
-
{ type: "text", text: JSON.stringify(result
|
|
572
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
573
573
|
],
|
|
574
574
|
};
|
|
575
575
|
});
|
|
@@ -615,7 +615,7 @@ server.registerTool("diviops_preset_cleanup", {
|
|
|
615
615
|
});
|
|
616
616
|
return {
|
|
617
617
|
content: [
|
|
618
|
-
{ type: "text", text: JSON.stringify(result
|
|
618
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
619
619
|
],
|
|
620
620
|
};
|
|
621
621
|
});
|
|
@@ -641,7 +641,7 @@ server.registerTool("diviops_preset_update", {
|
|
|
641
641
|
});
|
|
642
642
|
return {
|
|
643
643
|
content: [
|
|
644
|
-
{ type: "text", text: JSON.stringify(result
|
|
644
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
645
645
|
],
|
|
646
646
|
};
|
|
647
647
|
});
|
|
@@ -657,7 +657,7 @@ server.registerTool("diviops_preset_delete", {
|
|
|
657
657
|
});
|
|
658
658
|
return {
|
|
659
659
|
content: [
|
|
660
|
-
{ type: "text", text: JSON.stringify(result
|
|
660
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
661
661
|
],
|
|
662
662
|
};
|
|
663
663
|
});
|
|
@@ -670,7 +670,7 @@ server.registerTool("diviops_preset_create", {
|
|
|
670
670
|
name: z.string().describe("Display name for the new preset"),
|
|
671
671
|
attrs: z
|
|
672
672
|
.record(z.string(), z.any())
|
|
673
|
-
.describe("Full module attribute bag (same shape as a module's top-level attrs in block markup). Saved to
|
|
673
|
+
.describe("Full module attribute bag (same shape as a module's top-level attrs in block markup). Saved to attrs, styleAttrs, and renderAttrs — matches VB save semantics so render cache stays in sync with edit state."),
|
|
674
674
|
type: z
|
|
675
675
|
.enum(["module", "group"])
|
|
676
676
|
.optional()
|
|
@@ -703,7 +703,7 @@ server.registerTool("diviops_preset_create", {
|
|
|
703
703
|
const result = await wp.request("/preset-create", { method: "POST", body });
|
|
704
704
|
return {
|
|
705
705
|
content: [
|
|
706
|
-
{ type: "text", text: JSON.stringify(result
|
|
706
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
707
707
|
],
|
|
708
708
|
};
|
|
709
709
|
});
|
|
@@ -741,7 +741,7 @@ server.registerTool("diviops_preset_reassign", {
|
|
|
741
741
|
});
|
|
742
742
|
return {
|
|
743
743
|
content: [
|
|
744
|
-
{ type: "text", text: JSON.stringify(result
|
|
744
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
745
745
|
],
|
|
746
746
|
};
|
|
747
747
|
});
|
|
@@ -751,7 +751,7 @@ server.registerTool("diviops_preset_scan_orphans", {
|
|
|
751
751
|
const result = await wp.request("/preset-scan-orphans");
|
|
752
752
|
return {
|
|
753
753
|
content: [
|
|
754
|
-
{ type: "text", text: JSON.stringify(result
|
|
754
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
755
755
|
],
|
|
756
756
|
};
|
|
757
757
|
});
|
|
@@ -784,7 +784,7 @@ server.registerTool("diviops_list_library", {
|
|
|
784
784
|
const result = await wp.request("/library", { params });
|
|
785
785
|
return {
|
|
786
786
|
content: [
|
|
787
|
-
{ type: "text", text: JSON.stringify(result
|
|
787
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
788
788
|
],
|
|
789
789
|
};
|
|
790
790
|
});
|
|
@@ -797,7 +797,7 @@ server.registerTool("diviops_get_library_item", {
|
|
|
797
797
|
const result = await wp.request(`/library/${item_id}`);
|
|
798
798
|
return {
|
|
799
799
|
content: [
|
|
800
|
-
{ type: "text", text: JSON.stringify(result
|
|
800
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
801
801
|
],
|
|
802
802
|
};
|
|
803
803
|
});
|
|
@@ -831,7 +831,7 @@ server.registerTool("diviops_save_to_library", {
|
|
|
831
831
|
});
|
|
832
832
|
return {
|
|
833
833
|
content: [
|
|
834
|
-
{ type: "text", text: JSON.stringify(result
|
|
834
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
835
835
|
],
|
|
836
836
|
};
|
|
837
837
|
});
|
|
@@ -856,7 +856,7 @@ server.registerTool("diviops_list_tb_templates", {
|
|
|
856
856
|
const result = await wp.request("/theme-builder/templates", { params });
|
|
857
857
|
return {
|
|
858
858
|
content: [
|
|
859
|
-
{ type: "text", text: JSON.stringify(result
|
|
859
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
860
860
|
],
|
|
861
861
|
};
|
|
862
862
|
});
|
|
@@ -871,7 +871,7 @@ server.registerTool("diviops_get_tb_layout", {
|
|
|
871
871
|
const result = await wp.request(`/theme-builder/layout/${layout_id}`);
|
|
872
872
|
return {
|
|
873
873
|
content: [
|
|
874
|
-
{ type: "text", text: JSON.stringify(result
|
|
874
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
875
875
|
],
|
|
876
876
|
};
|
|
877
877
|
});
|
|
@@ -888,7 +888,7 @@ server.registerTool("diviops_update_tb_layout", {
|
|
|
888
888
|
});
|
|
889
889
|
return {
|
|
890
890
|
content: [
|
|
891
|
-
{ type: "text", text: JSON.stringify(result
|
|
891
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
892
892
|
],
|
|
893
893
|
};
|
|
894
894
|
});
|
|
@@ -917,7 +917,7 @@ server.registerTool("diviops_create_tb_template", {
|
|
|
917
917
|
});
|
|
918
918
|
return {
|
|
919
919
|
content: [
|
|
920
|
-
{ type: "text", text: JSON.stringify(result
|
|
920
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
921
921
|
],
|
|
922
922
|
};
|
|
923
923
|
});
|
|
@@ -962,7 +962,7 @@ server.registerTool("diviops_create_canvas", {
|
|
|
962
962
|
const result = await wp.request("/canvas/create", { method: "POST", body });
|
|
963
963
|
return {
|
|
964
964
|
content: [
|
|
965
|
-
{ type: "text", text: JSON.stringify(result
|
|
965
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
966
966
|
],
|
|
967
967
|
};
|
|
968
968
|
});
|
|
@@ -991,7 +991,7 @@ server.registerTool("diviops_list_canvases", {
|
|
|
991
991
|
const result = await wp.request("/canvases", { params });
|
|
992
992
|
return {
|
|
993
993
|
content: [
|
|
994
|
-
{ type: "text", text: JSON.stringify(result
|
|
994
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
995
995
|
],
|
|
996
996
|
};
|
|
997
997
|
});
|
|
@@ -1006,7 +1006,7 @@ server.registerTool("diviops_get_canvas", {
|
|
|
1006
1006
|
const result = await wp.request(`/canvas/${canvas_post_id}`);
|
|
1007
1007
|
return {
|
|
1008
1008
|
content: [
|
|
1009
|
-
{ type: "text", text: JSON.stringify(result
|
|
1009
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
1010
1010
|
],
|
|
1011
1011
|
};
|
|
1012
1012
|
});
|
|
@@ -1041,7 +1041,7 @@ server.registerTool("diviops_update_canvas", {
|
|
|
1041
1041
|
});
|
|
1042
1042
|
return {
|
|
1043
1043
|
content: [
|
|
1044
|
-
{ type: "text", text: JSON.stringify(result
|
|
1044
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
1045
1045
|
],
|
|
1046
1046
|
};
|
|
1047
1047
|
});
|
|
@@ -1056,7 +1056,7 @@ server.registerTool("diviops_delete_canvas", {
|
|
|
1056
1056
|
});
|
|
1057
1057
|
return {
|
|
1058
1058
|
content: [
|
|
1059
|
-
{ type: "text", text: JSON.stringify(result
|
|
1059
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
1060
1060
|
],
|
|
1061
1061
|
};
|
|
1062
1062
|
});
|
|
@@ -1092,7 +1092,7 @@ server.registerTool("diviops_test_connection", {
|
|
|
1092
1092
|
const result = await wp.testConnection();
|
|
1093
1093
|
return {
|
|
1094
1094
|
content: [
|
|
1095
|
-
{ type: "text", text: JSON.stringify(result
|
|
1095
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
1096
1096
|
],
|
|
1097
1097
|
};
|
|
1098
1098
|
});
|
|
@@ -1121,7 +1121,7 @@ server.registerTool("diviops_server_info", {
|
|
|
1121
1121
|
};
|
|
1122
1122
|
return {
|
|
1123
1123
|
content: [
|
|
1124
|
-
{ type: "text", text: JSON.stringify(info
|
|
1124
|
+
{ type: "text", text: JSON.stringify(info) },
|
|
1125
1125
|
],
|
|
1126
1126
|
};
|
|
1127
1127
|
});
|
|
@@ -1229,7 +1229,7 @@ server.registerTool("diviops_list_templates", {
|
|
|
1229
1229
|
requires_css: t.requires_css ?? false,
|
|
1230
1230
|
}));
|
|
1231
1231
|
return {
|
|
1232
|
-
content: [{ type: "text", text: JSON.stringify(list
|
|
1232
|
+
content: [{ type: "text", text: JSON.stringify(list) }],
|
|
1233
1233
|
};
|
|
1234
1234
|
});
|
|
1235
1235
|
server.registerTool("diviops_get_template", {
|
|
@@ -1254,7 +1254,7 @@ server.registerTool("diviops_get_template", {
|
|
|
1254
1254
|
}
|
|
1255
1255
|
return {
|
|
1256
1256
|
content: [
|
|
1257
|
-
{ type: "text", text: JSON.stringify(template
|
|
1257
|
+
{ type: "text", text: JSON.stringify(template) },
|
|
1258
1258
|
],
|
|
1259
1259
|
};
|
|
1260
1260
|
});
|
|
@@ -1280,7 +1280,7 @@ server.registerTool("diviops_list_variables", {
|
|
|
1280
1280
|
const result = await wp.request("/variables", { params });
|
|
1281
1281
|
return {
|
|
1282
1282
|
content: [
|
|
1283
|
-
{ type: "text", text: JSON.stringify(result
|
|
1283
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
1284
1284
|
],
|
|
1285
1285
|
};
|
|
1286
1286
|
});
|
|
@@ -1335,7 +1335,7 @@ server.registerTool("diviops_create_variable", {
|
|
|
1335
1335
|
});
|
|
1336
1336
|
return {
|
|
1337
1337
|
content: [
|
|
1338
|
-
{ type: "text", text: JSON.stringify(result
|
|
1338
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
1339
1339
|
],
|
|
1340
1340
|
};
|
|
1341
1341
|
});
|
|
@@ -1358,7 +1358,7 @@ server.registerTool("diviops_delete_variable", {
|
|
|
1358
1358
|
});
|
|
1359
1359
|
return {
|
|
1360
1360
|
content: [
|
|
1361
|
-
{ type: "text", text: JSON.stringify(result
|
|
1361
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
1362
1362
|
],
|
|
1363
1363
|
};
|
|
1364
1364
|
});
|
|
@@ -1368,7 +1368,7 @@ server.registerTool("diviops_variables_scan_orphans", {
|
|
|
1368
1368
|
const result = await wp.request("/variables-scan-orphans");
|
|
1369
1369
|
return {
|
|
1370
1370
|
content: [
|
|
1371
|
-
{ type: "text", text: JSON.stringify(result
|
|
1371
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
1372
1372
|
],
|
|
1373
1373
|
};
|
|
1374
1374
|
});
|
|
@@ -1407,7 +1407,7 @@ server.registerTool("diviops_flush_static_cache", {
|
|
|
1407
1407
|
});
|
|
1408
1408
|
return {
|
|
1409
1409
|
content: [
|
|
1410
|
-
{ type: "text", text: JSON.stringify(result
|
|
1410
|
+
{ type: "text", text: JSON.stringify(result) },
|
|
1411
1411
|
],
|
|
1412
1412
|
};
|
|
1413
1413
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@diviops/mcp-server",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10",
|
|
4
4
|
"description": "MCP server exposing Divi 5 Visual Builder as tools for Claude",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"repository": {
|
|
31
31
|
"type": "git",
|
|
32
|
-
"url": "https://github.com/oaris-dev/diviops.git",
|
|
32
|
+
"url": "git+https://github.com/oaris-dev/diviops.git",
|
|
33
33
|
"directory": "diviops-server"
|
|
34
34
|
},
|
|
35
35
|
"bugs": {
|