@wplaunchify/ml-mcp-server 2.7.7 → 2.7.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.
@@ -6,12 +6,20 @@ import { makeWordPressRequest } from '../wordpress.js';
6
6
  * Proxies to FluentCRM's database via WordPress plugin
7
7
  */
8
8
  // ==================== ZOD SCHEMA DEFINITIONS ====================
9
+ const fluentCrmContactStatusSchema = z.enum([
10
+ 'subscribed',
11
+ 'pending',
12
+ 'unsubscribed',
13
+ 'bounced',
14
+ 'complained',
15
+ 'transactional',
16
+ ]);
9
17
  // Contact schemas
10
18
  const listContactsSchema = z.object({
11
19
  page: z.number().optional(),
12
20
  per_page: z.number().optional(),
13
21
  search: z.string().optional(),
14
- status: z.enum(['subscribed', 'unsubscribed', 'bounced', 'complained']).optional(),
22
+ status: fluentCrmContactStatusSchema.optional(),
15
23
  tags: z.array(z.number()).optional(),
16
24
  lists: z.array(z.number()).optional(),
17
25
  });
@@ -19,11 +27,18 @@ const createContactSchema = z.object({
19
27
  email: z.string().email(),
20
28
  first_name: z.string().optional(),
21
29
  last_name: z.string().optional(),
22
- status: z.enum(['subscribed', 'unsubscribed', 'pending']).optional(),
30
+ status: fluentCrmContactStatusSchema.optional(),
23
31
  tags: z.array(z.number()).optional(),
24
32
  lists: z.array(z.number()).optional(),
25
33
  custom_fields: z.record(z.any()).optional(),
26
34
  });
35
+ const updateContactSchema = z.object({
36
+ id: z.number(),
37
+ email: z.string().email().optional(),
38
+ first_name: z.string().optional(),
39
+ last_name: z.string().optional(),
40
+ status: fluentCrmContactStatusSchema.optional(),
41
+ });
27
42
  // List schemas
28
43
  const listListsSchema = z.object({
29
44
  page: z.number().optional(),
@@ -92,13 +107,7 @@ export const fluentCRMTools = [
92
107
  {
93
108
  name: 'fcrm_update_contact',
94
109
  description: 'Update an existing FluentCRM contact',
95
- inputSchema: { type: 'object', properties: z.object({
96
- id: z.number(),
97
- email: z.string().email().optional(),
98
- first_name: z.string().optional(),
99
- last_name: z.string().optional(),
100
- status: z.enum(['subscribed', 'unsubscribed', 'pending']).optional(),
101
- }).shape }
110
+ inputSchema: { type: 'object', properties: updateContactSchema.shape }
102
111
  },
103
112
  {
104
113
  name: 'fcrm_delete_contact',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wplaunchify/ml-mcp-server",
3
- "version": "2.7.7",
3
+ "version": "2.7.8",
4
4
  "description": "Universal MCP Server for WordPress + Fluent Suite (Community, CRM, Cart) + FluentMCP Pro. Comprehensive tools for AI-powered WordPress management via Claude, Cursor, and other MCP clients.",
5
5
  "type": "module",
6
6
  "main": "./build/server.js",