@wplaunchify/ml-mcp-server 1.0.9 → 1.0.11

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.
@@ -163,17 +163,6 @@ export declare const fluentCartTools: ({
163
163
  subscription_id: z.ZodNumber;
164
164
  };
165
165
  };
166
- } | {
167
- name: string;
168
- description: string;
169
- inputSchema: {
170
- type: "object";
171
- properties: {
172
- date_from: z.ZodOptional<z.ZodString>;
173
- date_to: z.ZodOptional<z.ZodString>;
174
- metrics: z.ZodOptional<z.ZodArray<z.ZodEnum<["revenue", "orders", "customers", "products_sold"]>, "many">>;
175
- };
176
- };
177
166
  })[];
178
167
  export declare const fluentCartHandlers: {
179
168
  fcart_list_products: (args: any) => Promise<{
@@ -686,21 +675,4 @@ export declare const fluentCartHandlers: {
686
675
  }[];
687
676
  };
688
677
  }>;
689
- fcart_get_analytics: (args: any) => Promise<{
690
- toolResult: {
691
- content: {
692
- type: string;
693
- text: string;
694
- }[];
695
- isError?: undefined;
696
- };
697
- } | {
698
- toolResult: {
699
- isError: boolean;
700
- content: {
701
- type: string;
702
- text: string;
703
- }[];
704
- };
705
- }>;
706
678
  };
@@ -280,16 +280,6 @@ export const fluentCartTools = [
280
280
  subscription_id: z.number().describe('Subscription ID'),
281
281
  }).shape },
282
282
  },
283
- // Analytics
284
- {
285
- name: 'fcart_get_analytics',
286
- description: 'Get store analytics and sales data',
287
- inputSchema: { type: 'object', properties: z.object({
288
- date_from: z.string().optional().describe('Start date (YYYY-MM-DD)'),
289
- date_to: z.string().optional().describe('End date (YYYY-MM-DD)'),
290
- metrics: z.array(z.enum(['revenue', 'orders', 'customers', 'products_sold'])).optional().describe('Metrics to retrieve'),
291
- }).shape },
292
- },
293
283
  ];
294
284
  export const fluentCartHandlers = {
295
285
  // Product handlers
@@ -622,21 +612,4 @@ export const fluentCartHandlers = {
622
612
  return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${error.message}` }] } };
623
613
  }
624
614
  },
625
- // Analytics handler
626
- fcart_get_analytics: async (args) => {
627
- try {
628
- const params = new URLSearchParams();
629
- if (args.date_from)
630
- params.append('date_from', args.date_from);
631
- if (args.date_to)
632
- params.append('date_to', args.date_to);
633
- if (args.metrics)
634
- params.append('metrics', args.metrics.join(','));
635
- const response = await makeWordPressRequest('GET', `fc-manager/v1/fcart/analytics?${params}`);
636
- return { toolResult: { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] } };
637
- }
638
- catch (error) {
639
- return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${error.message}` }] } };
640
- }
641
- },
642
615
  };