@wplaunchify/ml-mcp-server 1.0.10 → 1.0.12

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.
@@ -24,7 +24,9 @@ const createPostSchema = z.object({
24
24
  message: z.string().describe('Post content/message'),
25
25
  type: z.string().optional().default('text').describe('Post type (text, video, etc.)'),
26
26
  status: z.enum(['published', 'draft', 'pending']).optional().default('published').describe('Post status'),
27
- privacy: z.enum(['public', 'private', 'friends']).optional().default('public').describe('Post privacy setting')
27
+ privacy: z.enum(['public', 'private', 'friends']).optional().default('public').describe('Post privacy setting'),
28
+ use_html5_bypass: z.boolean().optional().describe('Enable HTML5 bypass mode for full HTML/CSS/iframe support (bypasses markdown processing)'),
29
+ bypass_sanitization: z.boolean().optional().describe('Alias for use_html5_bypass - bypasses sanitization for full HTML5 support')
28
30
  });
29
31
  const updatePostSchema = z.object({
30
32
  post_id: z.number().describe('The ID of the post to update'),
@@ -307,6 +309,10 @@ export const fluentCommunityHandlers = {
307
309
  };
308
310
  if (args.title)
309
311
  postData.title = args.title;
312
+ if (args.use_html5_bypass)
313
+ postData.use_html5_bypass = args.use_html5_bypass;
314
+ if (args.bypass_sanitization)
315
+ postData.bypass_sanitization = args.bypass_sanitization;
310
316
  const response = await makeWordPressRequest('POST', 'fc-manager/v1/posts', postData);
311
317
  return { toolResult: { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] } };
312
318
  }