@wplaunchify/ml-mcp-server 1.0.0
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/LICENSE +22 -0
- package/README.md +220 -0
- package/build/cli.d.ts +2 -0
- package/build/cli.js +52 -0
- package/build/server.d.ts +2 -0
- package/build/server.js +97 -0
- package/build/tools/comments.d.ts +212 -0
- package/build/tools/comments.js +181 -0
- package/build/tools/fluent-affiliate.d.ts +2 -0
- package/build/tools/fluent-affiliate.js +3 -0
- package/build/tools/fluent-cart.d.ts +706 -0
- package/build/tools/fluent-cart.js +642 -0
- package/build/tools/fluent-community-BACKUP.d.ts +364 -0
- package/build/tools/fluent-community-BACKUP.js +883 -0
- package/build/tools/fluent-community-MINIMAL.d.ts +69 -0
- package/build/tools/fluent-community-MINIMAL.js +92 -0
- package/build/tools/fluent-community-design.d.ts +3 -0
- package/build/tools/fluent-community-design.js +150 -0
- package/build/tools/fluent-community-layout.d.ts +119 -0
- package/build/tools/fluent-community-layout.js +88 -0
- package/build/tools/fluent-community.d.ts +364 -0
- package/build/tools/fluent-community.js +528 -0
- package/build/tools/fluent-crm.d.ts +3 -0
- package/build/tools/fluent-crm.js +392 -0
- package/build/tools/index.d.ts +2205 -0
- package/build/tools/index.js +54 -0
- package/build/tools/media.d.ts +135 -0
- package/build/tools/media.js +168 -0
- package/build/tools/ml-canvas.d.ts +91 -0
- package/build/tools/ml-canvas.js +109 -0
- package/build/tools/ml-image-editor.d.ts +230 -0
- package/build/tools/ml-image-editor.js +270 -0
- package/build/tools/ml-media-hub.d.ts +575 -0
- package/build/tools/ml-media-hub.js +714 -0
- package/build/tools/plugin-repository.d.ts +62 -0
- package/build/tools/plugin-repository.js +149 -0
- package/build/tools/plugins.d.ts +129 -0
- package/build/tools/plugins.js +148 -0
- package/build/tools/unified-content.d.ts +313 -0
- package/build/tools/unified-content.js +615 -0
- package/build/tools/unified-taxonomies.d.ts +229 -0
- package/build/tools/unified-taxonomies.js +479 -0
- package/build/tools/users.d.ts +227 -0
- package/build/tools/users.js +182 -0
- package/build/types/wordpress-types.d.ts +151 -0
- package/build/types/wordpress-types.js +2 -0
- package/build/wordpress.d.ts +26 -0
- package/build/wordpress.js +223 -0
- package/package.json +67 -0
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
declare const listContentSchema: z.ZodObject<{
|
|
4
|
+
content_type: z.ZodString;
|
|
5
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
per_page: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
search: z.ZodOptional<z.ZodString>;
|
|
8
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
9
|
+
status: z.ZodOptional<z.ZodString>;
|
|
10
|
+
author: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber, "many">]>>;
|
|
11
|
+
categories: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber, "many">]>>;
|
|
12
|
+
tags: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber, "many">]>>;
|
|
13
|
+
parent: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
orderby: z.ZodOptional<z.ZodString>;
|
|
15
|
+
order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
|
|
16
|
+
after: z.ZodOptional<z.ZodString>;
|
|
17
|
+
before: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
content_type: string;
|
|
20
|
+
page?: number | undefined;
|
|
21
|
+
per_page?: number | undefined;
|
|
22
|
+
search?: string | undefined;
|
|
23
|
+
slug?: string | undefined;
|
|
24
|
+
status?: string | undefined;
|
|
25
|
+
author?: number | number[] | undefined;
|
|
26
|
+
categories?: number | number[] | undefined;
|
|
27
|
+
tags?: number | number[] | undefined;
|
|
28
|
+
parent?: number | undefined;
|
|
29
|
+
orderby?: string | undefined;
|
|
30
|
+
order?: "asc" | "desc" | undefined;
|
|
31
|
+
after?: string | undefined;
|
|
32
|
+
before?: string | undefined;
|
|
33
|
+
}, {
|
|
34
|
+
content_type: string;
|
|
35
|
+
page?: number | undefined;
|
|
36
|
+
per_page?: number | undefined;
|
|
37
|
+
search?: string | undefined;
|
|
38
|
+
slug?: string | undefined;
|
|
39
|
+
status?: string | undefined;
|
|
40
|
+
author?: number | number[] | undefined;
|
|
41
|
+
categories?: number | number[] | undefined;
|
|
42
|
+
tags?: number | number[] | undefined;
|
|
43
|
+
parent?: number | undefined;
|
|
44
|
+
orderby?: string | undefined;
|
|
45
|
+
order?: "asc" | "desc" | undefined;
|
|
46
|
+
after?: string | undefined;
|
|
47
|
+
before?: string | undefined;
|
|
48
|
+
}>;
|
|
49
|
+
declare const getContentSchema: z.ZodObject<{
|
|
50
|
+
content_type: z.ZodString;
|
|
51
|
+
id: z.ZodNumber;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
content_type: string;
|
|
54
|
+
id: number;
|
|
55
|
+
}, {
|
|
56
|
+
content_type: string;
|
|
57
|
+
id: number;
|
|
58
|
+
}>;
|
|
59
|
+
declare const createContentSchema: z.ZodObject<{
|
|
60
|
+
content_type: z.ZodString;
|
|
61
|
+
title: z.ZodString;
|
|
62
|
+
content: z.ZodString;
|
|
63
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
64
|
+
excerpt: z.ZodOptional<z.ZodString>;
|
|
65
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
66
|
+
author: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
parent: z.ZodOptional<z.ZodNumber>;
|
|
68
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
69
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
70
|
+
featured_media: z.ZodOptional<z.ZodNumber>;
|
|
71
|
+
format: z.ZodOptional<z.ZodString>;
|
|
72
|
+
menu_order: z.ZodOptional<z.ZodNumber>;
|
|
73
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
74
|
+
custom_fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
75
|
+
}, "strip", z.ZodTypeAny, {
|
|
76
|
+
content_type: string;
|
|
77
|
+
status: string;
|
|
78
|
+
title: string;
|
|
79
|
+
content: string;
|
|
80
|
+
slug?: string | undefined;
|
|
81
|
+
author?: number | undefined;
|
|
82
|
+
categories?: number[] | undefined;
|
|
83
|
+
tags?: number[] | undefined;
|
|
84
|
+
parent?: number | undefined;
|
|
85
|
+
excerpt?: string | undefined;
|
|
86
|
+
featured_media?: number | undefined;
|
|
87
|
+
format?: string | undefined;
|
|
88
|
+
menu_order?: number | undefined;
|
|
89
|
+
meta?: Record<string, any> | undefined;
|
|
90
|
+
custom_fields?: Record<string, any> | undefined;
|
|
91
|
+
}, {
|
|
92
|
+
content_type: string;
|
|
93
|
+
title: string;
|
|
94
|
+
content: string;
|
|
95
|
+
slug?: string | undefined;
|
|
96
|
+
status?: string | undefined;
|
|
97
|
+
author?: number | undefined;
|
|
98
|
+
categories?: number[] | undefined;
|
|
99
|
+
tags?: number[] | undefined;
|
|
100
|
+
parent?: number | undefined;
|
|
101
|
+
excerpt?: string | undefined;
|
|
102
|
+
featured_media?: number | undefined;
|
|
103
|
+
format?: string | undefined;
|
|
104
|
+
menu_order?: number | undefined;
|
|
105
|
+
meta?: Record<string, any> | undefined;
|
|
106
|
+
custom_fields?: Record<string, any> | undefined;
|
|
107
|
+
}>;
|
|
108
|
+
declare const updateContentSchema: z.ZodObject<{
|
|
109
|
+
content_type: z.ZodString;
|
|
110
|
+
id: z.ZodNumber;
|
|
111
|
+
title: z.ZodOptional<z.ZodString>;
|
|
112
|
+
content: z.ZodOptional<z.ZodString>;
|
|
113
|
+
status: z.ZodOptional<z.ZodString>;
|
|
114
|
+
excerpt: z.ZodOptional<z.ZodString>;
|
|
115
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
116
|
+
author: z.ZodOptional<z.ZodNumber>;
|
|
117
|
+
parent: z.ZodOptional<z.ZodNumber>;
|
|
118
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
119
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
120
|
+
featured_media: z.ZodOptional<z.ZodNumber>;
|
|
121
|
+
format: z.ZodOptional<z.ZodString>;
|
|
122
|
+
menu_order: z.ZodOptional<z.ZodNumber>;
|
|
123
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
124
|
+
custom_fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
content_type: string;
|
|
127
|
+
id: number;
|
|
128
|
+
slug?: string | undefined;
|
|
129
|
+
status?: string | undefined;
|
|
130
|
+
author?: number | undefined;
|
|
131
|
+
categories?: number[] | undefined;
|
|
132
|
+
tags?: number[] | undefined;
|
|
133
|
+
parent?: number | undefined;
|
|
134
|
+
title?: string | undefined;
|
|
135
|
+
content?: string | undefined;
|
|
136
|
+
excerpt?: string | undefined;
|
|
137
|
+
featured_media?: number | undefined;
|
|
138
|
+
format?: string | undefined;
|
|
139
|
+
menu_order?: number | undefined;
|
|
140
|
+
meta?: Record<string, any> | undefined;
|
|
141
|
+
custom_fields?: Record<string, any> | undefined;
|
|
142
|
+
}, {
|
|
143
|
+
content_type: string;
|
|
144
|
+
id: number;
|
|
145
|
+
slug?: string | undefined;
|
|
146
|
+
status?: string | undefined;
|
|
147
|
+
author?: number | undefined;
|
|
148
|
+
categories?: number[] | undefined;
|
|
149
|
+
tags?: number[] | undefined;
|
|
150
|
+
parent?: number | undefined;
|
|
151
|
+
title?: string | undefined;
|
|
152
|
+
content?: string | undefined;
|
|
153
|
+
excerpt?: string | undefined;
|
|
154
|
+
featured_media?: number | undefined;
|
|
155
|
+
format?: string | undefined;
|
|
156
|
+
menu_order?: number | undefined;
|
|
157
|
+
meta?: Record<string, any> | undefined;
|
|
158
|
+
custom_fields?: Record<string, any> | undefined;
|
|
159
|
+
}>;
|
|
160
|
+
declare const deleteContentSchema: z.ZodObject<{
|
|
161
|
+
content_type: z.ZodString;
|
|
162
|
+
id: z.ZodNumber;
|
|
163
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
164
|
+
}, "strip", z.ZodTypeAny, {
|
|
165
|
+
content_type: string;
|
|
166
|
+
id: number;
|
|
167
|
+
force?: boolean | undefined;
|
|
168
|
+
}, {
|
|
169
|
+
content_type: string;
|
|
170
|
+
id: number;
|
|
171
|
+
force?: boolean | undefined;
|
|
172
|
+
}>;
|
|
173
|
+
declare const discoverContentTypesSchema: z.ZodObject<{
|
|
174
|
+
refresh_cache: z.ZodOptional<z.ZodBoolean>;
|
|
175
|
+
}, "strip", z.ZodTypeAny, {
|
|
176
|
+
refresh_cache?: boolean | undefined;
|
|
177
|
+
}, {
|
|
178
|
+
refresh_cache?: boolean | undefined;
|
|
179
|
+
}>;
|
|
180
|
+
declare const findContentByUrlSchema: z.ZodObject<{
|
|
181
|
+
url: z.ZodString;
|
|
182
|
+
update_fields: z.ZodOptional<z.ZodObject<{
|
|
183
|
+
title: z.ZodOptional<z.ZodString>;
|
|
184
|
+
content: z.ZodOptional<z.ZodString>;
|
|
185
|
+
status: z.ZodOptional<z.ZodString>;
|
|
186
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
187
|
+
custom_fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
188
|
+
}, "strip", z.ZodTypeAny, {
|
|
189
|
+
status?: string | undefined;
|
|
190
|
+
title?: string | undefined;
|
|
191
|
+
content?: string | undefined;
|
|
192
|
+
meta?: Record<string, any> | undefined;
|
|
193
|
+
custom_fields?: Record<string, any> | undefined;
|
|
194
|
+
}, {
|
|
195
|
+
status?: string | undefined;
|
|
196
|
+
title?: string | undefined;
|
|
197
|
+
content?: string | undefined;
|
|
198
|
+
meta?: Record<string, any> | undefined;
|
|
199
|
+
custom_fields?: Record<string, any> | undefined;
|
|
200
|
+
}>>;
|
|
201
|
+
}, "strip", z.ZodTypeAny, {
|
|
202
|
+
url: string;
|
|
203
|
+
update_fields?: {
|
|
204
|
+
status?: string | undefined;
|
|
205
|
+
title?: string | undefined;
|
|
206
|
+
content?: string | undefined;
|
|
207
|
+
meta?: Record<string, any> | undefined;
|
|
208
|
+
custom_fields?: Record<string, any> | undefined;
|
|
209
|
+
} | undefined;
|
|
210
|
+
}, {
|
|
211
|
+
url: string;
|
|
212
|
+
update_fields?: {
|
|
213
|
+
status?: string | undefined;
|
|
214
|
+
title?: string | undefined;
|
|
215
|
+
content?: string | undefined;
|
|
216
|
+
meta?: Record<string, any> | undefined;
|
|
217
|
+
custom_fields?: Record<string, any> | undefined;
|
|
218
|
+
} | undefined;
|
|
219
|
+
}>;
|
|
220
|
+
declare const getContentBySlugSchema: z.ZodObject<{
|
|
221
|
+
slug: z.ZodString;
|
|
222
|
+
content_types: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
223
|
+
}, "strip", z.ZodTypeAny, {
|
|
224
|
+
slug: string;
|
|
225
|
+
content_types?: string[] | undefined;
|
|
226
|
+
}, {
|
|
227
|
+
slug: string;
|
|
228
|
+
content_types?: string[] | undefined;
|
|
229
|
+
}>;
|
|
230
|
+
type ListContentParams = z.infer<typeof listContentSchema>;
|
|
231
|
+
type GetContentParams = z.infer<typeof getContentSchema>;
|
|
232
|
+
type CreateContentParams = z.infer<typeof createContentSchema>;
|
|
233
|
+
type UpdateContentParams = z.infer<typeof updateContentSchema>;
|
|
234
|
+
type DeleteContentParams = z.infer<typeof deleteContentSchema>;
|
|
235
|
+
type DiscoverContentTypesParams = z.infer<typeof discoverContentTypesSchema>;
|
|
236
|
+
type FindContentByUrlParams = z.infer<typeof findContentByUrlSchema>;
|
|
237
|
+
type GetContentBySlugParams = z.infer<typeof getContentBySlugSchema>;
|
|
238
|
+
export declare const unifiedContentTools: Tool[];
|
|
239
|
+
export declare const unifiedContentHandlers: {
|
|
240
|
+
list_content: (params: ListContentParams) => Promise<{
|
|
241
|
+
toolResult: {
|
|
242
|
+
content: {
|
|
243
|
+
type: string;
|
|
244
|
+
text: string;
|
|
245
|
+
}[];
|
|
246
|
+
isError: boolean;
|
|
247
|
+
};
|
|
248
|
+
}>;
|
|
249
|
+
get_content: (params: GetContentParams) => Promise<{
|
|
250
|
+
toolResult: {
|
|
251
|
+
content: {
|
|
252
|
+
type: string;
|
|
253
|
+
text: string;
|
|
254
|
+
}[];
|
|
255
|
+
isError: boolean;
|
|
256
|
+
};
|
|
257
|
+
}>;
|
|
258
|
+
create_content: (params: CreateContentParams) => Promise<{
|
|
259
|
+
toolResult: {
|
|
260
|
+
content: {
|
|
261
|
+
type: string;
|
|
262
|
+
text: string;
|
|
263
|
+
}[];
|
|
264
|
+
isError: boolean;
|
|
265
|
+
};
|
|
266
|
+
}>;
|
|
267
|
+
update_content: (params: UpdateContentParams) => Promise<{
|
|
268
|
+
toolResult: {
|
|
269
|
+
content: {
|
|
270
|
+
type: string;
|
|
271
|
+
text: string;
|
|
272
|
+
}[];
|
|
273
|
+
isError: boolean;
|
|
274
|
+
};
|
|
275
|
+
}>;
|
|
276
|
+
delete_content: (params: DeleteContentParams) => Promise<{
|
|
277
|
+
toolResult: {
|
|
278
|
+
content: {
|
|
279
|
+
type: string;
|
|
280
|
+
text: string;
|
|
281
|
+
}[];
|
|
282
|
+
isError: boolean;
|
|
283
|
+
};
|
|
284
|
+
}>;
|
|
285
|
+
discover_content_types: (params: DiscoverContentTypesParams) => Promise<{
|
|
286
|
+
toolResult: {
|
|
287
|
+
content: {
|
|
288
|
+
type: string;
|
|
289
|
+
text: string;
|
|
290
|
+
}[];
|
|
291
|
+
isError: boolean;
|
|
292
|
+
};
|
|
293
|
+
}>;
|
|
294
|
+
find_content_by_url: (params: FindContentByUrlParams) => Promise<{
|
|
295
|
+
toolResult: {
|
|
296
|
+
content: {
|
|
297
|
+
type: string;
|
|
298
|
+
text: string;
|
|
299
|
+
}[];
|
|
300
|
+
isError: boolean;
|
|
301
|
+
};
|
|
302
|
+
}>;
|
|
303
|
+
get_content_by_slug: (params: GetContentBySlugParams) => Promise<{
|
|
304
|
+
toolResult: {
|
|
305
|
+
content: {
|
|
306
|
+
type: string;
|
|
307
|
+
text: string;
|
|
308
|
+
}[];
|
|
309
|
+
isError: boolean;
|
|
310
|
+
};
|
|
311
|
+
}>;
|
|
312
|
+
};
|
|
313
|
+
export {};
|