post-engineer-mcp 1.3.1 → 1.12.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/dist/index.js CHANGED
@@ -4,7 +4,18 @@ import { fileURLToPath } from 'node:url';
4
4
  import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
5
5
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
6
6
  import { PostEngineerClient, MAX_LIBRARY_IMAGES, MAX_LIBRARY_IMAGE_MB } from './client.js';
7
- import { CreatePersonaShape, ListPersonasShape, ListVoicesShape, ListFacesShape, UpdatePersonaShape, ListSocialAccountsShape, ConnectAccountShape, ListSchedulesShape, GetTokenBalanceShape, ListPostsShape, CancelScheduleShape, GenerateVideoShape, GetVideoStatusShape, ScheduleVideoShape, ListPersonaImagesShape, AddPersonaImageShape, UpdatePersonaImageShape, RemovePersonaImageShape, handleCreatePersona, handleListPersonas, handleListVoices, handleListFaces, handleUpdatePersona, handleListSocialAccounts, handleConnectAccount, handleListSchedules, handleListPosts, handleCancelSchedule, handleGetTokenBalance, handleGenerateVideo, handleGetVideoStatus, handleScheduleVideo, handleListPersonaImages, handleAddPersonaImage, handleUpdatePersonaImage, handleRemovePersonaImage, } from './tools.js';
7
+ import { CreatePersonaShape, ListPersonasShape, ListVoicesShape, ListFacesShape, UpdatePersonaShape, ListSocialAccountsShape, ConnectAccountShape, ListSchedulesShape, GetTokenBalanceShape, ListPostsShape, CancelScheduleShape, GeneratePersonaVideosShape, GetVideoStatusShape, GetVideoTaskProgressShape, ListPersonaImagesShape, AddPersonaImageShape, UpdatePersonaImageShape, RemovePersonaImageShape, handleCreatePersona, handleListPersonas, handleListVoices, handleListFaces, handleUpdatePersona, handleListSocialAccounts, handleConnectAccount, handleListSchedules, handleListPosts, handleCancelSchedule, handleGetTokenBalance, handleGeneratePersonaVideos, handleGetVideoStatus, handleGetVideoTaskProgress, handleListPersonaImages, handleAddPersonaImage, handleUpdatePersonaImage, handleRemovePersonaImage, } from './tools.js';
8
+ import { trackEvent } from './analytics.js';
9
+ //---------------
10
+ // Track every tool invocation as a PostHog analytics event.
11
+ // The wrapper never throws and never blocks the tool.
12
+ //---------------
13
+ function withTracking(toolName, handler) {
14
+ return async (args) => {
15
+ trackEvent('mcp_tool_called', { toolName });
16
+ return handler(args);
17
+ };
18
+ }
8
19
  // The server advertises the package version: import it so a version bump in
9
20
  // package.json flows through without touching this file.
10
21
  const { default: pkg } = await import('../package.json', { with: { type: 'json' } });
@@ -21,60 +32,60 @@ export function createPostEngineerMcpServer(client) {
21
32
  name: 'post-engineer-mcp',
22
33
  version: pkg.version,
23
34
  });
24
- server.tool('create_persona', 'Create a new AI persona with avatar, voice, language, and niche prompt.', CreatePersonaShape, async (args) => {
35
+ server.tool('create_persona', 'Create a new AI persona with avatar, voice, language, and niche prompt.', CreatePersonaShape, withTracking('create_persona', async (args) => {
25
36
  return handleCreatePersona(apiClient, args);
26
- });
27
- server.tool('list_personas', 'List all existing personas for the authenticated user.', ListPersonasShape, async () => {
37
+ }));
38
+ server.tool('list_personas', 'List all existing personas for the authenticated user.', ListPersonasShape, withTracking('list_personas', async () => {
28
39
  return handleListPersonas(apiClient);
29
- });
30
- server.tool('list_voices', 'List all available persona voices (voiceId options) for the authenticated user.', ListVoicesShape, async () => {
40
+ }));
41
+ server.tool('list_voices', 'List all available persona voices (voiceId options) for the authenticated user.', ListVoicesShape, withTracking('list_voices', async () => {
31
42
  return handleListVoices(apiClient);
32
- });
33
- server.tool('list_faces', 'List default/stock persona faces (avatar options). Each face includes id, url, name, gender, age (single number, not a range), ethnicity, hair, and description in English so you can pick without seeing the photo. Pass a face url as avatarUrl when calling create_persona.', ListFacesShape, async () => {
43
+ }));
44
+ server.tool('list_faces', 'List default/stock persona faces (avatar options). Each face includes id, url, name, gender, age (single number, not a range), ethnicity, hair, and description in English so you can pick without seeing the photo. Pass a face url as avatarUrl when calling create_persona.', ListFacesShape, withTracking('list_faces', async () => {
34
45
  return handleListFaces(apiClient);
35
- });
36
- server.tool('update_persona', 'Update an existing AI persona (only the provided fields change).', UpdatePersonaShape, async (args) => {
46
+ }));
47
+ server.tool('update_persona', 'Update an existing AI persona (only the provided fields change).', UpdatePersonaShape, withTracking('update_persona', async (args) => {
37
48
  return handleUpdatePersona(apiClient, args);
38
- });
39
- server.tool('list_social_accounts', 'List connected social accounts (YouTube, Instagram, LinkedIn, Bluesky) with the account IDs needed for schedule_video.', ListSocialAccountsShape, async () => {
49
+ }));
50
+ server.tool('list_social_accounts', 'List connected social accounts (YouTube, Instagram, LinkedIn, Bluesky) with the account IDs needed for batch posting.', ListSocialAccountsShape, withTracking('list_social_accounts', async () => {
40
51
  return handleListSocialAccounts(apiClient);
41
- });
42
- server.tool('connect_account', 'Connect a social account. For youtube/instagram/linkedin: returns an authorization URL — the user must open it in a browser and authorize, then the account connects automatically (verify with list_social_accounts). For bluesky: connects directly with handle + appPassword (app password, not the main account password).', ConnectAccountShape, async (args) => {
52
+ }));
53
+ server.tool('connect_account', 'Connect a social account. For youtube/instagram/linkedin: returns an authorization URL — the user must open it in a browser and authorize, then the account connects automatically (verify with list_social_accounts). For bluesky: connects directly with handle + appPassword (app password, not the main account password).', ConnectAccountShape, withTracking('connect_account', async (args) => {
43
54
  return handleConnectAccount(apiClient, args);
44
- });
45
- server.tool('list_schedules', 'List all automation schedules for the authenticated user.', ListSchedulesShape, async () => {
55
+ }));
56
+ server.tool('list_schedules', 'List all automation schedules for the authenticated user.', ListSchedulesShape, withTracking('list_schedules', async () => {
46
57
  return handleListSchedules(apiClient);
47
- });
48
- server.tool('list_posts', 'List upcoming (scheduled) and past (published/failed) posts across all connected accounts. Returns two lists: upcoming slots (id, slot_at, status, topic, schedule_id) and recent results (id, slot_at, status, topic, error, published_at, schedule_id). Use when the user asks about their posts — what is coming next, what already went out, or why a post failed. Combine with list_schedules or list_social_accounts when persona/account names are needed.', ListPostsShape, async (args) => {
58
+ }));
59
+ server.tool('list_posts', 'List upcoming (scheduled) and past (published/failed) posts across all connected accounts. Returns two lists: upcoming slots and recent results, each with id, slot_at, status (awaiting|generating|ready|publishing|published|failed), topic, schedule_id, task_id, progress (0-100: 0 for awaiting, 100 for ready/publishing/published, live engine progress for generating, last known for failed), stage (engine pipeline stage like "lipsync" while generating, "done" when complete, null otherwise), queuePosition/queueTotal (1-based position among the schedule\'s awaiting+generating slots; awaiting slots only, null otherwise). Failed slots also carry error and retryable (boolean: true when the failure looks transient). Use when the user asks about their posts — what is coming next, what already went out, how far a video has generated, where it sits in the queue, or why a post failed. Combine with list_schedules or list_social_accounts when persona/account names are needed.', ListPostsShape, withTracking('list_posts', async (args) => {
49
60
  return handleListPosts(apiClient, args);
50
- });
51
- server.tool('cancel_schedule', 'Cancel (delete) an automation schedule by its schedule ID. Use list_schedules to find the ID.', CancelScheduleShape, async (args) => {
61
+ }));
62
+ server.tool('cancel_schedule', 'Cancel (delete) an automation schedule by its schedule ID. Use list_schedules to find the ID.', CancelScheduleShape, withTracking('cancel_schedule', async (args) => {
52
63
  return handleCancelSchedule(apiClient, args);
53
- });
54
- server.tool('get_token_balance', 'Get the prepaid token wallet balance. Check before triggering video generation, which costs tokens.', GetTokenBalanceShape, async () => {
64
+ }));
65
+ server.tool('get_token_balance', 'Get the prepaid token wallet balance. Check before triggering video generation, which costs tokens.', GetTokenBalanceShape, withTracking('get_token_balance', async () => {
55
66
  return handleGetTokenBalance(apiClient);
56
- });
57
- server.tool('generate_video_from_persona', 'Trigger video generation using an existing persona. Optional scriptPrompt overrides the video script; optional audioUrl (public http(s) URL) supplies custom audio for this video, overriding the persona voice; optional imageId picks a specific image from the persona image library (see list_persona_images), overriding the deterministic per-video selection. For faceless generation, omit personaId and provide videoSubject plus a voice source (audioUrl or voiceId).', GenerateVideoShape, async (args) => {
58
- return handleGenerateVideo(apiClient, args);
59
- });
60
- server.tool('get_video_status', 'Check the generation status and fetch final video URLs for a taskId.', GetVideoStatusShape, async (args) => {
67
+ }));
68
+ server.tool('generate_persona_videos', 'Generate and schedule 1-10 persona videos in ONE operation. Product rule: generation is always tied to publishing — one call generates each video AND schedules its automatic publish; there is no separate schedule step and no orphan generation. personaId is REQUIRED even for faceless videos (set options.faceless: true to drop the face; the persona voice, niche, and script prompt still apply). topics is one topic per video; the server assigns publish slots (topic i lands on day startAt\'s date + floor(i/times.length) at the i-th sorted time in times). Pass providers plus per-provider account IDs (see list_social_accounts), startAt (ISO datetime, wall-clock in timezone when naive), times (HH:MM, 24h), and timezone. Every slot must be 24h-30d ahead. idempotencyKey is generated automatically; reuse it to retry without generating twice (replayed: true). Poll each slot\'s taskId with get_video_task_progress.', GeneratePersonaVideosShape, withTracking('generate_persona_videos', async (args) => {
69
+ return handleGeneratePersonaVideos(apiClient, args);
70
+ }));
71
+ server.tool('get_video_status', 'Check the generation status and fetch final video URLs for a taskId.', GetVideoStatusShape, withTracking('get_video_status', async (args) => {
61
72
  return handleGetVideoStatus(apiClient, args);
62
- });
63
- server.tool('list_persona_images', `List the image library of a persona (up to ${MAX_LIBRARY_IMAGES} tagged images). Each entry has id, tag, description, and is_primary. Use the ids with generate_video_from_persona imageId to force a specific image for one video.`, ListPersonaImagesShape, async (args) => {
73
+ }));
74
+ server.tool('get_video_task_progress', 'Poll one video task for its machine-readable progress: returns {task_id, state, progress, stage, error}. error is the engine failure reason when state is -1 (failed), null otherwise. Use per-video (1/6, 2/6, ...) after generate_persona_videos; prefer this over get_video_status when only progress matters.', GetVideoTaskProgressShape, withTracking('get_video_task_progress', async (args) => {
75
+ return handleGetVideoTaskProgress(apiClient, args);
76
+ }));
77
+ server.tool('list_persona_images', `List the image library of a persona (up to ${MAX_LIBRARY_IMAGES} tagged images). Each entry has id, tag, description, and is_primary. Use the ids with generate_persona_videos options.imageId to force a specific image for every video in one call.`, ListPersonaImagesShape, withTracking('list_persona_images', async (args) => {
64
78
  return handleListPersonaImages(apiClient, args);
65
- });
66
- server.tool('add_persona_image', `Add an image to a persona image library from a local file path (JPG/JPEG, PNG, or WebP, max ${MAX_LIBRARY_IMAGE_MB}MB). Optional tag and description drive the deterministic per-video image selection. The server rejects faceless personas and full libraries (${MAX_LIBRARY_IMAGES} max).`, AddPersonaImageShape, async (args) => {
79
+ }));
80
+ server.tool('add_persona_image', `Add an image to a persona image library from a local file path (JPG/JPEG, PNG, or WebP, max ${MAX_LIBRARY_IMAGE_MB}MB). Optional tag and description drive the deterministic per-video image selection. The server rejects faceless personas and full libraries (${MAX_LIBRARY_IMAGES} max).`, AddPersonaImageShape, withTracking('add_persona_image', async (args) => {
67
81
  return handleAddPersonaImage(apiClient, args);
68
- });
69
- server.tool('update_persona_image', 'Update a persona library image tag, description, or primary flag.', UpdatePersonaImageShape, async (args) => {
82
+ }));
83
+ server.tool('update_persona_image', 'Update a persona library image tag, description, or primary flag.', UpdatePersonaImageShape, withTracking('update_persona_image', async (args) => {
70
84
  return handleUpdatePersonaImage(apiClient, args);
71
- });
72
- server.tool('remove_persona_image', 'Remove an image from a persona image library.', RemovePersonaImageShape, async (args) => {
85
+ }));
86
+ server.tool('remove_persona_image', 'Remove an image from a persona image library.', RemovePersonaImageShape, withTracking('remove_persona_image', async (args) => {
73
87
  return handleRemovePersonaImage(apiClient, args);
74
- });
75
- server.tool('schedule_video', 'Schedule automated video generation and posting to social channels. IMPORTANT: Schedules must be between 24h and 30 days in advance. Each provider requires at least one account ID — discover them with list_social_accounts first.', ScheduleVideoShape, async (args) => {
76
- return handleScheduleVideo(apiClient, args);
77
- });
88
+ }));
78
89
  return server;
79
90
  }
80
91
  export function isMainModule() {
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,M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C;IAEF,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,YAAY;IAC1B,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC9B,IAAI,CAAC,KAAK;QAAE,OAAO,KAAK,CAAC;IACzB,IAAI,CAAC;QACH,yEAAyE;QACzE,sEAAsE;QACtE,6EAA6E;QAC7E,OAAO,YAAY,CAAC,KAAK,CAAC,KAAK,YAAY,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9E,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,0EAA0E;IAC1E,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAC/B,MAAM,MAAM,GAAG,2BAA2B,CAAC,IAAI,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;IAC/E,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;AAClC,CAAC;AAED,IAAI,YAAY,EAAE,EAAE,CAAC;IACnB,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;QACnB,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,GAAG,CAAC,CAAC;QAC9C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC"}
package/dist/tools.d.ts CHANGED
@@ -2,14 +2,6 @@ import { z } from 'zod';
2
2
  import type { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
3
3
  import type { PostEngineerClient } from './client.js';
4
4
  export type McpToolResponse = CallToolResult;
5
- export declare function missingProviderAccountIds(args: {
6
- providers: string[];
7
- youtubeAccountIds?: string[];
8
- instagramAccountIds?: string[];
9
- linkedinAccountIds?: string[];
10
- blueskyAccountIds?: string[];
11
- }): string[];
12
- export declare function recordIdShapedBlueskyIds(blueskyAccountIds: readonly string[] | undefined): string[];
13
5
  export declare const CreatePersonaShape: {
14
6
  name: z.ZodString;
15
7
  avatarUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -222,35 +214,123 @@ export declare const CancelScheduleSchema: z.ZodObject<{
222
214
  }>;
223
215
  export declare const GetTokenBalanceShape: {};
224
216
  export declare const GetTokenBalanceSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
225
- export declare const GenerateVideoShape: {
226
- personaId: z.ZodOptional<z.ZodString>;
227
- videoSubject: z.ZodOptional<z.ZodString>;
228
- voiceId: z.ZodOptional<z.ZodString>;
229
- scriptPrompt: z.ZodOptional<z.ZodString>;
230
- audioUrl: z.ZodOptional<z.ZodString>;
231
- imageId: z.ZodOptional<z.ZodString>;
217
+ export declare const GeneratePersonaVideosShape: {
218
+ startAt: z.ZodEffects<z.ZodString, string, string>;
219
+ times: z.ZodArray<z.ZodString, "many">;
220
+ timezone: z.ZodDefault<z.ZodString>;
221
+ options: z.ZodOptional<z.ZodObject<{
222
+ faceless: z.ZodOptional<z.ZodBoolean>;
223
+ audioUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
224
+ imageId: z.ZodOptional<z.ZodString>;
225
+ scriptPrompt: z.ZodOptional<z.ZodString>;
226
+ scriptPrompts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
227
+ voiceId: z.ZodOptional<z.ZodString>;
228
+ webhookUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
229
+ }, "strip", z.ZodTypeAny, {
230
+ faceless?: boolean | undefined;
231
+ voiceId?: string | undefined;
232
+ scriptPrompt?: string | undefined;
233
+ audioUrl?: string | undefined;
234
+ imageId?: string | undefined;
235
+ scriptPrompts?: string[] | undefined;
236
+ webhookUrl?: string | undefined;
237
+ }, {
238
+ faceless?: boolean | undefined;
239
+ voiceId?: string | undefined;
240
+ scriptPrompt?: string | undefined;
241
+ audioUrl?: string | undefined;
242
+ imageId?: string | undefined;
243
+ scriptPrompts?: string[] | undefined;
244
+ webhookUrl?: string | undefined;
245
+ }>>;
246
+ idempotencyKey: z.ZodOptional<z.ZodString>;
247
+ youtubeAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
248
+ instagramAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
249
+ linkedinAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
250
+ blueskyAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
251
+ personaId: z.ZodString;
252
+ topics: z.ZodArray<z.ZodString, "many">;
253
+ providers: z.ZodArray<z.ZodEnum<["youtube", "instagram", "linkedin", "bluesky"]>, "many">;
232
254
  };
233
- export declare const GenerateVideoSchema: z.ZodObject<{
234
- personaId: z.ZodOptional<z.ZodString>;
235
- videoSubject: z.ZodOptional<z.ZodString>;
236
- voiceId: z.ZodOptional<z.ZodString>;
237
- scriptPrompt: z.ZodOptional<z.ZodString>;
238
- audioUrl: z.ZodOptional<z.ZodString>;
239
- imageId: z.ZodOptional<z.ZodString>;
255
+ export declare const GeneratePersonaVideosSchema: z.ZodObject<{
256
+ startAt: z.ZodEffects<z.ZodString, string, string>;
257
+ times: z.ZodArray<z.ZodString, "many">;
258
+ timezone: z.ZodDefault<z.ZodString>;
259
+ options: z.ZodOptional<z.ZodObject<{
260
+ faceless: z.ZodOptional<z.ZodBoolean>;
261
+ audioUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
262
+ imageId: z.ZodOptional<z.ZodString>;
263
+ scriptPrompt: z.ZodOptional<z.ZodString>;
264
+ scriptPrompts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
265
+ voiceId: z.ZodOptional<z.ZodString>;
266
+ webhookUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
267
+ }, "strip", z.ZodTypeAny, {
268
+ faceless?: boolean | undefined;
269
+ voiceId?: string | undefined;
270
+ scriptPrompt?: string | undefined;
271
+ audioUrl?: string | undefined;
272
+ imageId?: string | undefined;
273
+ scriptPrompts?: string[] | undefined;
274
+ webhookUrl?: string | undefined;
275
+ }, {
276
+ faceless?: boolean | undefined;
277
+ voiceId?: string | undefined;
278
+ scriptPrompt?: string | undefined;
279
+ audioUrl?: string | undefined;
280
+ imageId?: string | undefined;
281
+ scriptPrompts?: string[] | undefined;
282
+ webhookUrl?: string | undefined;
283
+ }>>;
284
+ idempotencyKey: z.ZodOptional<z.ZodString>;
285
+ youtubeAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
286
+ instagramAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
287
+ linkedinAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
288
+ blueskyAccountIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
289
+ personaId: z.ZodString;
290
+ topics: z.ZodArray<z.ZodString, "many">;
291
+ providers: z.ZodArray<z.ZodEnum<["youtube", "instagram", "linkedin", "bluesky"]>, "many">;
240
292
  }, "strip", z.ZodTypeAny, {
241
- voiceId?: string | undefined;
242
- scriptPrompt?: string | undefined;
243
- personaId?: string | undefined;
244
- videoSubject?: string | undefined;
245
- audioUrl?: string | undefined;
246
- imageId?: string | undefined;
293
+ personaId: string;
294
+ startAt: string;
295
+ times: string[];
296
+ timezone: string;
297
+ topics: string[];
298
+ providers: ("youtube" | "instagram" | "linkedin" | "bluesky")[];
299
+ options?: {
300
+ faceless?: boolean | undefined;
301
+ voiceId?: string | undefined;
302
+ scriptPrompt?: string | undefined;
303
+ audioUrl?: string | undefined;
304
+ imageId?: string | undefined;
305
+ scriptPrompts?: string[] | undefined;
306
+ webhookUrl?: string | undefined;
307
+ } | undefined;
308
+ idempotencyKey?: string | undefined;
309
+ youtubeAccountIds?: string[] | undefined;
310
+ instagramAccountIds?: string[] | undefined;
311
+ linkedinAccountIds?: string[] | undefined;
312
+ blueskyAccountIds?: string[] | undefined;
247
313
  }, {
248
- voiceId?: string | undefined;
249
- scriptPrompt?: string | undefined;
250
- personaId?: string | undefined;
251
- videoSubject?: string | undefined;
252
- audioUrl?: string | undefined;
253
- imageId?: string | undefined;
314
+ personaId: string;
315
+ startAt: string;
316
+ times: string[];
317
+ topics: string[];
318
+ providers: ("youtube" | "instagram" | "linkedin" | "bluesky")[];
319
+ options?: {
320
+ faceless?: boolean | undefined;
321
+ voiceId?: string | undefined;
322
+ scriptPrompt?: string | undefined;
323
+ audioUrl?: string | undefined;
324
+ imageId?: string | undefined;
325
+ scriptPrompts?: string[] | undefined;
326
+ webhookUrl?: string | undefined;
327
+ } | undefined;
328
+ timezone?: string | undefined;
329
+ idempotencyKey?: string | undefined;
330
+ youtubeAccountIds?: string[] | undefined;
331
+ instagramAccountIds?: string[] | undefined;
332
+ linkedinAccountIds?: string[] | undefined;
333
+ blueskyAccountIds?: string[] | undefined;
254
334
  }>;
255
335
  export declare const ListPersonaImagesShape: {
256
336
  personaId: z.ZodString;
@@ -340,111 +420,15 @@ export declare const GetVideoStatusSchema: z.ZodObject<{
340
420
  }, {
341
421
  taskId: string;
342
422
  }>;
343
- export declare const ScheduleVideoShape: {
344
- personaId: z.ZodString;
345
- providers: z.ZodArray<z.ZodEnum<["youtube", "instagram", "linkedin", "bluesky"]>, "many">;
346
- youtubeAccountIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
347
- instagramAccountIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
348
- linkedinAccountIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
349
- blueskyAccountIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
350
- scheduledAt: z.ZodString;
351
- daysOfWeek: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
352
- startHour: z.ZodOptional<z.ZodNumber>;
353
- endHour: z.ZodOptional<z.ZodNumber>;
354
- postsPerDay: z.ZodOptional<z.ZodNumber>;
355
- timezone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
423
+ export declare const GetVideoTaskProgressShape: {
424
+ taskId: z.ZodString;
356
425
  };
357
- export declare const ScheduleVideoSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
358
- personaId: z.ZodString;
359
- providers: z.ZodArray<z.ZodEnum<["youtube", "instagram", "linkedin", "bluesky"]>, "many">;
360
- youtubeAccountIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
361
- instagramAccountIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
362
- linkedinAccountIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
363
- blueskyAccountIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
364
- scheduledAt: z.ZodString;
365
- daysOfWeek: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
366
- startHour: z.ZodOptional<z.ZodNumber>;
367
- endHour: z.ZodOptional<z.ZodNumber>;
368
- postsPerDay: z.ZodOptional<z.ZodNumber>;
369
- timezone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
426
+ export declare const GetVideoTaskProgressSchema: z.ZodObject<{
427
+ taskId: z.ZodString;
370
428
  }, "strip", z.ZodTypeAny, {
371
- personaId: string;
372
- providers: ("youtube" | "instagram" | "linkedin" | "bluesky")[];
373
- youtubeAccountIds: string[];
374
- instagramAccountIds: string[];
375
- linkedinAccountIds: string[];
376
- blueskyAccountIds: string[];
377
- scheduledAt: string;
378
- timezone: string;
379
- daysOfWeek?: number[] | undefined;
380
- startHour?: number | undefined;
381
- endHour?: number | undefined;
382
- postsPerDay?: number | undefined;
383
- }, {
384
- personaId: string;
385
- providers: ("youtube" | "instagram" | "linkedin" | "bluesky")[];
386
- scheduledAt: string;
387
- youtubeAccountIds?: string[] | undefined;
388
- instagramAccountIds?: string[] | undefined;
389
- linkedinAccountIds?: string[] | undefined;
390
- blueskyAccountIds?: string[] | undefined;
391
- daysOfWeek?: number[] | undefined;
392
- startHour?: number | undefined;
393
- endHour?: number | undefined;
394
- postsPerDay?: number | undefined;
395
- timezone?: string | undefined;
396
- }>, {
397
- personaId: string;
398
- providers: ("youtube" | "instagram" | "linkedin" | "bluesky")[];
399
- youtubeAccountIds: string[];
400
- instagramAccountIds: string[];
401
- linkedinAccountIds: string[];
402
- blueskyAccountIds: string[];
403
- scheduledAt: string;
404
- timezone: string;
405
- daysOfWeek?: number[] | undefined;
406
- startHour?: number | undefined;
407
- endHour?: number | undefined;
408
- postsPerDay?: number | undefined;
409
- }, {
410
- personaId: string;
411
- providers: ("youtube" | "instagram" | "linkedin" | "bluesky")[];
412
- scheduledAt: string;
413
- youtubeAccountIds?: string[] | undefined;
414
- instagramAccountIds?: string[] | undefined;
415
- linkedinAccountIds?: string[] | undefined;
416
- blueskyAccountIds?: string[] | undefined;
417
- daysOfWeek?: number[] | undefined;
418
- startHour?: number | undefined;
419
- endHour?: number | undefined;
420
- postsPerDay?: number | undefined;
421
- timezone?: string | undefined;
422
- }>, {
423
- personaId: string;
424
- providers: ("youtube" | "instagram" | "linkedin" | "bluesky")[];
425
- youtubeAccountIds: string[];
426
- instagramAccountIds: string[];
427
- linkedinAccountIds: string[];
428
- blueskyAccountIds: string[];
429
- scheduledAt: string;
430
- timezone: string;
431
- daysOfWeek?: number[] | undefined;
432
- startHour?: number | undefined;
433
- endHour?: number | undefined;
434
- postsPerDay?: number | undefined;
429
+ taskId: string;
435
430
  }, {
436
- personaId: string;
437
- providers: ("youtube" | "instagram" | "linkedin" | "bluesky")[];
438
- scheduledAt: string;
439
- youtubeAccountIds?: string[] | undefined;
440
- instagramAccountIds?: string[] | undefined;
441
- linkedinAccountIds?: string[] | undefined;
442
- blueskyAccountIds?: string[] | undefined;
443
- daysOfWeek?: number[] | undefined;
444
- startHour?: number | undefined;
445
- endHour?: number | undefined;
446
- postsPerDay?: number | undefined;
447
- timezone?: string | undefined;
431
+ taskId: string;
448
432
  }>;
449
433
  export declare function handleCreatePersona(client: PostEngineerClient, args: z.infer<typeof CreatePersonaSchema>): Promise<McpToolResponse>;
450
434
  export declare function handleListPersonas(client: PostEngineerClient): Promise<McpToolResponse>;
@@ -457,10 +441,17 @@ export declare function handleListSchedules(client: PostEngineerClient): Promise
457
441
  export declare function handleListPosts(client: PostEngineerClient, args: z.infer<typeof ListPostsSchema>): Promise<McpToolResponse>;
458
442
  export declare function handleCancelSchedule(client: PostEngineerClient, args: z.infer<typeof CancelScheduleSchema>): Promise<McpToolResponse>;
459
443
  export declare function handleGetTokenBalance(client: PostEngineerClient): Promise<McpToolResponse>;
460
- export declare function handleGenerateVideo(client: PostEngineerClient, args: z.infer<typeof GenerateVideoSchema>): Promise<McpToolResponse>;
461
444
  export declare function handleListPersonaImages(client: PostEngineerClient, args: z.infer<typeof ListPersonaImagesSchema>): Promise<McpToolResponse>;
462
445
  export declare function handleAddPersonaImage(client: PostEngineerClient, args: z.infer<typeof AddPersonaImageSchema>): Promise<McpToolResponse>;
463
446
  export declare function handleUpdatePersonaImage(client: PostEngineerClient, args: z.infer<typeof UpdatePersonaImageSchema>): Promise<McpToolResponse>;
464
447
  export declare function handleRemovePersonaImage(client: PostEngineerClient, args: z.infer<typeof RemovePersonaImageSchema>): Promise<McpToolResponse>;
465
448
  export declare function handleGetVideoStatus(client: PostEngineerClient, args: z.infer<typeof GetVideoStatusSchema>): Promise<McpToolResponse>;
466
- export declare function handleScheduleVideo(client: PostEngineerClient, args: z.infer<typeof ScheduleVideoSchema>): Promise<McpToolResponse>;
449
+ /** Redacts credential-shaped material from an engine failure reason before
450
+ * it reaches the MCP client. The engine error is the user's own task failure
451
+ * text (e.g. "persona hook must end between 3 and 6 seconds"), but provider
452
+ * exceptions can echo request URLs, DSNs, or bearer tokens into it. Keep the
453
+ * human-readable reason intact; only the secret-shaped fragments are masked.
454
+ * Mirrors the app-password redaction in client.ts. */
455
+ export declare function sanitizeEngineError(error: string): string;
456
+ export declare function handleGetVideoTaskProgress(client: PostEngineerClient, args: z.infer<typeof GetVideoTaskProgressSchema>): Promise<McpToolResponse>;
457
+ export declare function handleGeneratePersonaVideos(client: PostEngineerClient, args: z.infer<typeof GeneratePersonaVideosSchema>): Promise<McpToolResponse>;