post-engineer-mcp 1.4.0 → 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/README.md +17 -4
- package/dist/analytics.d.ts +3 -0
- package/dist/analytics.js +115 -0
- package/dist/analytics.js.map +1 -0
- package/dist/client.d.ts +26 -37
- package/dist/client.js +57 -58
- package/dist/client.js.map +1 -1
- package/dist/errors.d.ts +14 -0
- package/dist/errors.js +19 -0
- package/dist/errors.js.map +1 -1
- package/dist/index.js +49 -44
- package/dist/index.js.map +1 -1
- package/dist/tools.d.ts +122 -173
- package/dist/tools.js +183 -190
- package/dist/tools.js.map +1 -1
- package/package.json +2 -1
- package/dist/validator.d.ts +0 -9
- package/dist/validator.js +0 -28
- package/dist/validator.js.map +0 -1
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,
|
|
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,66 +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
|
|
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
|
|
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('
|
|
58
|
-
return
|
|
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('get_video_task_progress', 'Poll one video task for its machine-readable progress: returns {task_id, state, progress, stage}. Use per-video (1/6, 2/6, ...) after
|
|
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) => {
|
|
64
75
|
return handleGetVideoTaskProgress(apiClient, args);
|
|
65
|
-
});
|
|
66
|
-
server.tool('
|
|
67
|
-
return handleGenerateVideoBatch(apiClient, args);
|
|
68
|
-
});
|
|
69
|
-
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) => {
|
|
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) => {
|
|
70
78
|
return handleListPersonaImages(apiClient, args);
|
|
71
|
-
});
|
|
72
|
-
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) => {
|
|
73
81
|
return handleAddPersonaImage(apiClient, args);
|
|
74
|
-
});
|
|
75
|
-
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) => {
|
|
76
84
|
return handleUpdatePersonaImage(apiClient, args);
|
|
77
|
-
});
|
|
78
|
-
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) => {
|
|
79
87
|
return handleRemovePersonaImage(apiClient, args);
|
|
80
|
-
});
|
|
81
|
-
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) => {
|
|
82
|
-
return handleScheduleVideo(apiClient, args);
|
|
83
|
-
});
|
|
88
|
+
}));
|
|
84
89
|
return server;
|
|
85
90
|
}
|
|
86
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,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAC3F,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,uBAAuB,EACvB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,cAAc,EACd,mBAAmB,EACnB,
|
|
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,EA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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,39 +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
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
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">;
|
|
233
254
|
};
|
|
234
|
-
export declare const
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
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">;
|
|
242
292
|
}, "strip", z.ZodTypeAny, {
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
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;
|
|
250
313
|
}, {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
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;
|
|
258
334
|
}>;
|
|
259
335
|
export declare const ListPersonaImagesShape: {
|
|
260
336
|
personaId: z.ZodString;
|
|
@@ -354,138 +430,6 @@ export declare const GetVideoTaskProgressSchema: z.ZodObject<{
|
|
|
354
430
|
}, {
|
|
355
431
|
taskId: string;
|
|
356
432
|
}>;
|
|
357
|
-
export declare const GenerateVideoBatchShape: {
|
|
358
|
-
topics: z.ZodArray<z.ZodString, "many">;
|
|
359
|
-
personaId: z.ZodOptional<z.ZodString>;
|
|
360
|
-
voiceId: z.ZodOptional<z.ZodString>;
|
|
361
|
-
imageId: z.ZodOptional<z.ZodString>;
|
|
362
|
-
webhookUrl: z.ZodOptional<z.ZodString>;
|
|
363
|
-
};
|
|
364
|
-
export declare const GenerateVideoBatchSchema: z.ZodObject<{
|
|
365
|
-
topics: z.ZodArray<z.ZodString, "many">;
|
|
366
|
-
personaId: z.ZodOptional<z.ZodString>;
|
|
367
|
-
voiceId: z.ZodOptional<z.ZodString>;
|
|
368
|
-
imageId: z.ZodOptional<z.ZodString>;
|
|
369
|
-
webhookUrl: z.ZodOptional<z.ZodString>;
|
|
370
|
-
}, "strip", z.ZodTypeAny, {
|
|
371
|
-
topics: string[];
|
|
372
|
-
voiceId?: string | undefined;
|
|
373
|
-
personaId?: string | undefined;
|
|
374
|
-
imageId?: string | undefined;
|
|
375
|
-
webhookUrl?: string | undefined;
|
|
376
|
-
}, {
|
|
377
|
-
topics: string[];
|
|
378
|
-
voiceId?: string | undefined;
|
|
379
|
-
personaId?: string | undefined;
|
|
380
|
-
imageId?: string | undefined;
|
|
381
|
-
webhookUrl?: string | undefined;
|
|
382
|
-
}>;
|
|
383
|
-
export declare const ScheduleVideoShape: {
|
|
384
|
-
personaId: z.ZodString;
|
|
385
|
-
providers: z.ZodArray<z.ZodEnum<["youtube", "instagram", "linkedin", "bluesky"]>, "many">;
|
|
386
|
-
youtubeAccountIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
387
|
-
instagramAccountIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
388
|
-
linkedinAccountIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
389
|
-
blueskyAccountIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
390
|
-
scheduledAt: z.ZodString;
|
|
391
|
-
daysOfWeek: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
392
|
-
startHour: z.ZodOptional<z.ZodNumber>;
|
|
393
|
-
endHour: z.ZodOptional<z.ZodNumber>;
|
|
394
|
-
postsPerDay: z.ZodOptional<z.ZodNumber>;
|
|
395
|
-
timezone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
396
|
-
};
|
|
397
|
-
export declare const ScheduleVideoSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
398
|
-
personaId: z.ZodString;
|
|
399
|
-
providers: z.ZodArray<z.ZodEnum<["youtube", "instagram", "linkedin", "bluesky"]>, "many">;
|
|
400
|
-
youtubeAccountIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
401
|
-
instagramAccountIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
402
|
-
linkedinAccountIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
403
|
-
blueskyAccountIds: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
404
|
-
scheduledAt: z.ZodString;
|
|
405
|
-
daysOfWeek: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
406
|
-
startHour: z.ZodOptional<z.ZodNumber>;
|
|
407
|
-
endHour: z.ZodOptional<z.ZodNumber>;
|
|
408
|
-
postsPerDay: z.ZodOptional<z.ZodNumber>;
|
|
409
|
-
timezone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
410
|
-
}, "strip", z.ZodTypeAny, {
|
|
411
|
-
personaId: string;
|
|
412
|
-
providers: ("youtube" | "instagram" | "linkedin" | "bluesky")[];
|
|
413
|
-
youtubeAccountIds: string[];
|
|
414
|
-
instagramAccountIds: string[];
|
|
415
|
-
linkedinAccountIds: string[];
|
|
416
|
-
blueskyAccountIds: string[];
|
|
417
|
-
scheduledAt: string;
|
|
418
|
-
timezone: string;
|
|
419
|
-
daysOfWeek?: number[] | undefined;
|
|
420
|
-
startHour?: number | undefined;
|
|
421
|
-
endHour?: number | undefined;
|
|
422
|
-
postsPerDay?: number | undefined;
|
|
423
|
-
}, {
|
|
424
|
-
personaId: string;
|
|
425
|
-
providers: ("youtube" | "instagram" | "linkedin" | "bluesky")[];
|
|
426
|
-
scheduledAt: string;
|
|
427
|
-
youtubeAccountIds?: string[] | undefined;
|
|
428
|
-
instagramAccountIds?: string[] | undefined;
|
|
429
|
-
linkedinAccountIds?: string[] | undefined;
|
|
430
|
-
blueskyAccountIds?: string[] | undefined;
|
|
431
|
-
daysOfWeek?: number[] | undefined;
|
|
432
|
-
startHour?: number | undefined;
|
|
433
|
-
endHour?: number | undefined;
|
|
434
|
-
postsPerDay?: number | undefined;
|
|
435
|
-
timezone?: string | undefined;
|
|
436
|
-
}>, {
|
|
437
|
-
personaId: string;
|
|
438
|
-
providers: ("youtube" | "instagram" | "linkedin" | "bluesky")[];
|
|
439
|
-
youtubeAccountIds: string[];
|
|
440
|
-
instagramAccountIds: string[];
|
|
441
|
-
linkedinAccountIds: string[];
|
|
442
|
-
blueskyAccountIds: string[];
|
|
443
|
-
scheduledAt: string;
|
|
444
|
-
timezone: string;
|
|
445
|
-
daysOfWeek?: number[] | undefined;
|
|
446
|
-
startHour?: number | undefined;
|
|
447
|
-
endHour?: number | undefined;
|
|
448
|
-
postsPerDay?: number | undefined;
|
|
449
|
-
}, {
|
|
450
|
-
personaId: string;
|
|
451
|
-
providers: ("youtube" | "instagram" | "linkedin" | "bluesky")[];
|
|
452
|
-
scheduledAt: string;
|
|
453
|
-
youtubeAccountIds?: string[] | undefined;
|
|
454
|
-
instagramAccountIds?: string[] | undefined;
|
|
455
|
-
linkedinAccountIds?: string[] | undefined;
|
|
456
|
-
blueskyAccountIds?: string[] | undefined;
|
|
457
|
-
daysOfWeek?: number[] | undefined;
|
|
458
|
-
startHour?: number | undefined;
|
|
459
|
-
endHour?: number | undefined;
|
|
460
|
-
postsPerDay?: number | undefined;
|
|
461
|
-
timezone?: string | undefined;
|
|
462
|
-
}>, {
|
|
463
|
-
personaId: string;
|
|
464
|
-
providers: ("youtube" | "instagram" | "linkedin" | "bluesky")[];
|
|
465
|
-
youtubeAccountIds: string[];
|
|
466
|
-
instagramAccountIds: string[];
|
|
467
|
-
linkedinAccountIds: string[];
|
|
468
|
-
blueskyAccountIds: string[];
|
|
469
|
-
scheduledAt: string;
|
|
470
|
-
timezone: string;
|
|
471
|
-
daysOfWeek?: number[] | undefined;
|
|
472
|
-
startHour?: number | undefined;
|
|
473
|
-
endHour?: number | undefined;
|
|
474
|
-
postsPerDay?: number | undefined;
|
|
475
|
-
}, {
|
|
476
|
-
personaId: string;
|
|
477
|
-
providers: ("youtube" | "instagram" | "linkedin" | "bluesky")[];
|
|
478
|
-
scheduledAt: string;
|
|
479
|
-
youtubeAccountIds?: string[] | undefined;
|
|
480
|
-
instagramAccountIds?: string[] | undefined;
|
|
481
|
-
linkedinAccountIds?: string[] | undefined;
|
|
482
|
-
blueskyAccountIds?: string[] | undefined;
|
|
483
|
-
daysOfWeek?: number[] | undefined;
|
|
484
|
-
startHour?: number | undefined;
|
|
485
|
-
endHour?: number | undefined;
|
|
486
|
-
postsPerDay?: number | undefined;
|
|
487
|
-
timezone?: string | undefined;
|
|
488
|
-
}>;
|
|
489
433
|
export declare function handleCreatePersona(client: PostEngineerClient, args: z.infer<typeof CreatePersonaSchema>): Promise<McpToolResponse>;
|
|
490
434
|
export declare function handleListPersonas(client: PostEngineerClient): Promise<McpToolResponse>;
|
|
491
435
|
export declare function handleListVoices(client: PostEngineerClient): Promise<McpToolResponse>;
|
|
@@ -497,12 +441,17 @@ export declare function handleListSchedules(client: PostEngineerClient): Promise
|
|
|
497
441
|
export declare function handleListPosts(client: PostEngineerClient, args: z.infer<typeof ListPostsSchema>): Promise<McpToolResponse>;
|
|
498
442
|
export declare function handleCancelSchedule(client: PostEngineerClient, args: z.infer<typeof CancelScheduleSchema>): Promise<McpToolResponse>;
|
|
499
443
|
export declare function handleGetTokenBalance(client: PostEngineerClient): Promise<McpToolResponse>;
|
|
500
|
-
export declare function handleGenerateVideo(client: PostEngineerClient, args: z.infer<typeof GenerateVideoSchema>): Promise<McpToolResponse>;
|
|
501
444
|
export declare function handleListPersonaImages(client: PostEngineerClient, args: z.infer<typeof ListPersonaImagesSchema>): Promise<McpToolResponse>;
|
|
502
445
|
export declare function handleAddPersonaImage(client: PostEngineerClient, args: z.infer<typeof AddPersonaImageSchema>): Promise<McpToolResponse>;
|
|
503
446
|
export declare function handleUpdatePersonaImage(client: PostEngineerClient, args: z.infer<typeof UpdatePersonaImageSchema>): Promise<McpToolResponse>;
|
|
504
447
|
export declare function handleRemovePersonaImage(client: PostEngineerClient, args: z.infer<typeof RemovePersonaImageSchema>): Promise<McpToolResponse>;
|
|
505
448
|
export declare function handleGetVideoStatus(client: PostEngineerClient, args: z.infer<typeof GetVideoStatusSchema>): 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;
|
|
506
456
|
export declare function handleGetVideoTaskProgress(client: PostEngineerClient, args: z.infer<typeof GetVideoTaskProgressSchema>): Promise<McpToolResponse>;
|
|
507
|
-
export declare function
|
|
508
|
-
export declare function handleScheduleVideo(client: PostEngineerClient, args: z.infer<typeof ScheduleVideoSchema>): Promise<McpToolResponse>;
|
|
457
|
+
export declare function handleGeneratePersonaVideos(client: PostEngineerClient, args: z.infer<typeof GeneratePersonaVideosSchema>): Promise<McpToolResponse>;
|