posterly-mcp-server 0.27.1 → 0.29.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/lib/api-client.d.ts +2 -2
- package/dist/lib/version.d.ts +1 -1
- package/dist/lib/version.js +1 -1
- package/dist/tools/generate-image.d.ts +4 -4
- package/dist/tools/generate-image.js +3 -3
- package/dist/tools/generate-video.d.ts +3 -3
- package/dist/tools/generate-video.js +2 -2
- package/package.json +1 -1
- package/server.json +2 -2
- package/src/lib/api-client.ts +2 -2
- package/src/lib/version.ts +1 -1
- package/src/tools/generate-image.ts +4 -4
- package/src/tools/generate-video.ts +2 -2
package/dist/lib/api-client.d.ts
CHANGED
|
@@ -928,7 +928,7 @@ export declare class PosterlyClient {
|
|
|
928
928
|
aspect_ratio?: string;
|
|
929
929
|
style?: string;
|
|
930
930
|
variations?: number;
|
|
931
|
-
model?: 'flash' | 'pro';
|
|
931
|
+
model?: 'lite' | 'flash' | 'pro';
|
|
932
932
|
resolution?: '512' | '1K' | '2K' | '4K';
|
|
933
933
|
}): Promise<{
|
|
934
934
|
urls: string[];
|
|
@@ -960,7 +960,7 @@ export declare class PosterlyClient {
|
|
|
960
960
|
aspect_ratio?: '16:9' | '9:16';
|
|
961
961
|
duration_seconds?: 4 | 6 | 8;
|
|
962
962
|
resolution?: '720p' | '1080p';
|
|
963
|
-
model?: 'fast' | 'standard';
|
|
963
|
+
model?: 'lite' | 'fast' | 'standard';
|
|
964
964
|
image_url?: string;
|
|
965
965
|
end_image_url?: string;
|
|
966
966
|
reference_images?: Array<{
|
package/dist/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const POSTERLY_MCP_VERSION = "0.
|
|
1
|
+
export declare const POSTERLY_MCP_VERSION = "0.29.0";
|
package/dist/lib/version.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
// tool set (minus the intentional pre-auth signup tools that only this stdio
|
|
6
6
|
// package exposes). `npm run check:mcp-parity` enforces both the version match
|
|
7
7
|
// and the tool-list match, and runs in the pre-commit hook.
|
|
8
|
-
export const POSTERLY_MCP_VERSION = '0.
|
|
8
|
+
export const POSTERLY_MCP_VERSION = '0.29.0';
|
|
@@ -8,7 +8,7 @@ export declare const generateImageTool: {
|
|
|
8
8
|
aspect_ratio: z.ZodOptional<z.ZodEnum<["1:1", "9:16", "4:5", "3:4", "2:3", "1:4", "1:8", "21:9", "16:9", "4:3", "3:2", "4:1", "8:1", "5:4"]>>;
|
|
9
9
|
style: z.ZodOptional<z.ZodEnum<["photographic", "illustration", "minimal", "vibrant", "professional", "youtube_thumbnail", "reel_cover", "review_background"]>>;
|
|
10
10
|
variations: z.ZodOptional<z.ZodNumber>;
|
|
11
|
-
model: z.ZodOptional<z.ZodEnum<["flash", "pro"]>>;
|
|
11
|
+
model: z.ZodOptional<z.ZodEnum<["lite", "flash", "pro"]>>;
|
|
12
12
|
resolution: z.ZodOptional<z.ZodEnum<["512", "1K", "2K", "4K"]>>;
|
|
13
13
|
confirm: z.ZodLiteral<true>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -17,7 +17,7 @@ export declare const generateImageTool: {
|
|
|
17
17
|
aspect_ratio?: "16:9" | "9:16" | "1:1" | "4:5" | "3:4" | "2:3" | "1:4" | "1:8" | "21:9" | "4:3" | "3:2" | "4:1" | "8:1" | "5:4" | undefined;
|
|
18
18
|
style?: "minimal" | "professional" | "photographic" | "illustration" | "vibrant" | "youtube_thumbnail" | "reel_cover" | "review_background" | undefined;
|
|
19
19
|
variations?: number | undefined;
|
|
20
|
-
model?: "pro" | "flash" | undefined;
|
|
20
|
+
model?: "pro" | "lite" | "flash" | undefined;
|
|
21
21
|
resolution?: "512" | "1K" | "2K" | "4K" | undefined;
|
|
22
22
|
}, {
|
|
23
23
|
confirm: true;
|
|
@@ -25,7 +25,7 @@ export declare const generateImageTool: {
|
|
|
25
25
|
aspect_ratio?: "16:9" | "9:16" | "1:1" | "4:5" | "3:4" | "2:3" | "1:4" | "1:8" | "21:9" | "4:3" | "3:2" | "4:1" | "8:1" | "5:4" | undefined;
|
|
26
26
|
style?: "minimal" | "professional" | "photographic" | "illustration" | "vibrant" | "youtube_thumbnail" | "reel_cover" | "review_background" | undefined;
|
|
27
27
|
variations?: number | undefined;
|
|
28
|
-
model?: "pro" | "flash" | undefined;
|
|
28
|
+
model?: "pro" | "lite" | "flash" | undefined;
|
|
29
29
|
resolution?: "512" | "1K" | "2K" | "4K" | undefined;
|
|
30
30
|
}>;
|
|
31
31
|
execute(client: PosterlyClient, input: {
|
|
@@ -33,7 +33,7 @@ export declare const generateImageTool: {
|
|
|
33
33
|
aspect_ratio?: string;
|
|
34
34
|
style?: string;
|
|
35
35
|
variations?: number;
|
|
36
|
-
model?: "flash" | "pro";
|
|
36
|
+
model?: "lite" | "flash" | "pro";
|
|
37
37
|
resolution?: "512" | "1K" | "2K" | "4K";
|
|
38
38
|
confirm: true;
|
|
39
39
|
}): Promise<string>;
|
|
@@ -38,13 +38,13 @@ export const generateImageTool = {
|
|
|
38
38
|
.optional()
|
|
39
39
|
.describe('How many variations to generate. Default 1. Each variation costs credits separately - prefer 1 unless the user explicitly wants options.'),
|
|
40
40
|
model: z
|
|
41
|
-
.enum(['flash', 'pro'])
|
|
41
|
+
.enum(['lite', 'flash', 'pro'])
|
|
42
42
|
.optional()
|
|
43
|
-
.describe('flash (default,
|
|
43
|
+
.describe('lite (8 credits, 1K only) is the cheapest and suits drafts and exploration. flash (default, 15 credits at 1K) balances quality and cost. pro (30 credits at 1K) is highest quality for hero imagery. Start with lite or flash unless quality is critical.'),
|
|
44
44
|
resolution: z
|
|
45
45
|
.enum(['512', '1K', '2K', '4K'])
|
|
46
46
|
.optional()
|
|
47
|
-
.describe('Output resolution. Default 1K. Higher resolutions cost more credits. 512 is flash-only.'),
|
|
47
|
+
.describe('Output resolution. Default 1K. Higher resolutions cost more credits (flash: 10/15/23/35 for 512/1K/2K/4K; pro: 30 at 1K-2K, 55 at 4K). 512 is flash-only and lite supports 1K only.'),
|
|
48
48
|
confirm: z.literal(true).describe('Must be true after explicit user confirmation of subject, style, aspect ratio, and credit use.'),
|
|
49
49
|
}),
|
|
50
50
|
async execute(client, input) {
|
|
@@ -9,7 +9,7 @@ export declare const generateVideoTool: {
|
|
|
9
9
|
aspect_ratio: z.ZodOptional<z.ZodDefault<z.ZodEnum<["16:9", "9:16"]>>>;
|
|
10
10
|
duration_seconds: z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>]>>>;
|
|
11
11
|
resolution: z.ZodOptional<z.ZodDefault<z.ZodEnum<["720p", "1080p"]>>>;
|
|
12
|
-
model: z.ZodOptional<z.ZodDefault<z.ZodEnum<["fast", "standard"]>>>;
|
|
12
|
+
model: z.ZodOptional<z.ZodDefault<z.ZodEnum<["lite", "fast", "standard"]>>>;
|
|
13
13
|
image_url: z.ZodOptional<z.ZodString>;
|
|
14
14
|
end_image_url: z.ZodOptional<z.ZodString>;
|
|
15
15
|
reference_images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -29,7 +29,7 @@ export declare const generateVideoTool: {
|
|
|
29
29
|
confirm: true;
|
|
30
30
|
prompt: string;
|
|
31
31
|
aspect_ratio?: "16:9" | "9:16" | undefined;
|
|
32
|
-
model?: "fast" | "standard" | undefined;
|
|
32
|
+
model?: "lite" | "fast" | "standard" | undefined;
|
|
33
33
|
resolution?: "720p" | "1080p" | undefined;
|
|
34
34
|
negative_prompt?: string | undefined;
|
|
35
35
|
duration_seconds?: 4 | 6 | 8 | undefined;
|
|
@@ -45,7 +45,7 @@ export declare const generateVideoTool: {
|
|
|
45
45
|
confirm: true;
|
|
46
46
|
prompt: string;
|
|
47
47
|
aspect_ratio?: "16:9" | "9:16" | undefined;
|
|
48
|
-
model?: "fast" | "standard" | undefined;
|
|
48
|
+
model?: "lite" | "fast" | "standard" | undefined;
|
|
49
49
|
resolution?: "720p" | "1080p" | undefined;
|
|
50
50
|
negative_prompt?: string | undefined;
|
|
51
51
|
duration_seconds?: 4 | 6 | 8 | undefined;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export const generateVideoTool = {
|
|
3
3
|
name: 'generate_video',
|
|
4
|
-
description: 'Queue a Veo AI video generation job. COSTS VEO CREDITS: confirm prompt, model, duration, resolution, aspect ratio, audio choice, and credit cost with the user before calling. Poll get_video_job for status and final video_url.',
|
|
4
|
+
description: 'Queue a Veo AI video generation job. COSTS VEO CREDITS: confirm prompt, model, duration, resolution, aspect ratio, audio choice, and credit cost with the user before calling. Models cost 12 (lite), 35 (fast) or 90 (standard) credits per second; lite supports text-to-video and image-to-video only, not reference_images or source_video_url. Poll get_video_job for status and final video_url.',
|
|
5
5
|
inputSchema: z.object({
|
|
6
6
|
prompt: z.string().min(5).max(1024),
|
|
7
7
|
negative_prompt: z.string().max(500).optional(),
|
|
8
8
|
aspect_ratio: z.enum(['16:9', '9:16']).default('16:9').optional(),
|
|
9
9
|
duration_seconds: z.union([z.literal(4), z.literal(6), z.literal(8)]).default(8).optional(),
|
|
10
10
|
resolution: z.enum(['720p', '1080p']).default('720p').optional(),
|
|
11
|
-
model: z.enum(['fast', 'standard']).default('fast').optional(),
|
|
11
|
+
model: z.enum(['lite', 'fast', 'standard']).default('fast').optional(),
|
|
12
12
|
image_url: z.string().url().optional(),
|
|
13
13
|
end_image_url: z.string().url().optional(),
|
|
14
14
|
reference_images: z.array(z.object({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "posterly-mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.0",
|
|
4
4
|
"mcpName": "io.github.awpthorp/posterly",
|
|
5
5
|
"description": "MCP server for posterly: schedule and publish social media posts across 18 platforms from any MCP client (Claude, ChatGPT, Cursor, Windsurf, Cline, and more)",
|
|
6
6
|
"license": "MIT",
|
package/server.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "io.github.awpthorp/posterly",
|
|
4
4
|
"title": "posterly",
|
|
5
5
|
"description": "Validate, schedule, publish, and analyze social content across 18 platforms with posterly.",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.29.0",
|
|
7
7
|
"websiteUrl": "https://www.poster.ly/mcp",
|
|
8
8
|
"repository": {
|
|
9
9
|
"url": "https://github.com/awpthorp/posterly",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
{
|
|
15
15
|
"registryType": "npm",
|
|
16
16
|
"identifier": "posterly-mcp-server",
|
|
17
|
-
"version": "0.
|
|
17
|
+
"version": "0.29.0",
|
|
18
18
|
"transport": {
|
|
19
19
|
"type": "stdio"
|
|
20
20
|
},
|
package/src/lib/api-client.ts
CHANGED
|
@@ -1215,7 +1215,7 @@ export class PosterlyClient {
|
|
|
1215
1215
|
aspect_ratio?: string;
|
|
1216
1216
|
style?: string;
|
|
1217
1217
|
variations?: number;
|
|
1218
|
-
model?: 'flash' | 'pro';
|
|
1218
|
+
model?: 'lite' | 'flash' | 'pro';
|
|
1219
1219
|
resolution?: '512' | '1K' | '2K' | '4K';
|
|
1220
1220
|
}): Promise<{
|
|
1221
1221
|
urls: string[];
|
|
@@ -1252,7 +1252,7 @@ export class PosterlyClient {
|
|
|
1252
1252
|
aspect_ratio?: '16:9' | '9:16';
|
|
1253
1253
|
duration_seconds?: 4 | 6 | 8;
|
|
1254
1254
|
resolution?: '720p' | '1080p';
|
|
1255
|
-
model?: 'fast' | 'standard';
|
|
1255
|
+
model?: 'lite' | 'fast' | 'standard';
|
|
1256
1256
|
image_url?: string;
|
|
1257
1257
|
end_image_url?: string;
|
|
1258
1258
|
reference_images?: Array<{ url: string; type: 'character' | 'object' | 'scene' }>;
|
package/src/lib/version.ts
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
// tool set (minus the intentional pre-auth signup tools that only this stdio
|
|
6
6
|
// package exposes). `npm run check:mcp-parity` enforces both the version match
|
|
7
7
|
// and the tool-list match, and runs in the pre-commit hook.
|
|
8
|
-
export const POSTERLY_MCP_VERSION = '0.
|
|
8
|
+
export const POSTERLY_MCP_VERSION = '0.29.0';
|
|
@@ -41,13 +41,13 @@ export const generateImageTool = {
|
|
|
41
41
|
.optional()
|
|
42
42
|
.describe('How many variations to generate. Default 1. Each variation costs credits separately - prefer 1 unless the user explicitly wants options.'),
|
|
43
43
|
model: z
|
|
44
|
-
.enum(['flash', 'pro'])
|
|
44
|
+
.enum(['lite', 'flash', 'pro'])
|
|
45
45
|
.optional()
|
|
46
|
-
.describe('flash (default,
|
|
46
|
+
.describe('lite (8 credits, 1K only) is the cheapest and suits drafts and exploration. flash (default, 15 credits at 1K) balances quality and cost. pro (30 credits at 1K) is highest quality for hero imagery. Start with lite or flash unless quality is critical.'),
|
|
47
47
|
resolution: z
|
|
48
48
|
.enum(['512', '1K', '2K', '4K'])
|
|
49
49
|
.optional()
|
|
50
|
-
.describe('Output resolution. Default 1K. Higher resolutions cost more credits. 512 is flash-only.'),
|
|
50
|
+
.describe('Output resolution. Default 1K. Higher resolutions cost more credits (flash: 10/15/23/35 for 512/1K/2K/4K; pro: 30 at 1K-2K, 55 at 4K). 512 is flash-only and lite supports 1K only.'),
|
|
51
51
|
confirm: z.literal(true).describe('Must be true after explicit user confirmation of subject, style, aspect ratio, and credit use.'),
|
|
52
52
|
}),
|
|
53
53
|
|
|
@@ -58,7 +58,7 @@ export const generateImageTool = {
|
|
|
58
58
|
aspect_ratio?: string;
|
|
59
59
|
style?: string;
|
|
60
60
|
variations?: number;
|
|
61
|
-
model?: 'flash' | 'pro';
|
|
61
|
+
model?: 'lite' | 'flash' | 'pro';
|
|
62
62
|
resolution?: '512' | '1K' | '2K' | '4K';
|
|
63
63
|
confirm: true;
|
|
64
64
|
}
|
|
@@ -4,14 +4,14 @@ import type { PosterlyClient } from '../lib/api-client.js';
|
|
|
4
4
|
export const generateVideoTool = {
|
|
5
5
|
name: 'generate_video',
|
|
6
6
|
description:
|
|
7
|
-
'Queue a Veo AI video generation job. COSTS VEO CREDITS: confirm prompt, model, duration, resolution, aspect ratio, audio choice, and credit cost with the user before calling. Poll get_video_job for status and final video_url.',
|
|
7
|
+
'Queue a Veo AI video generation job. COSTS VEO CREDITS: confirm prompt, model, duration, resolution, aspect ratio, audio choice, and credit cost with the user before calling. Models cost 12 (lite), 35 (fast) or 90 (standard) credits per second; lite supports text-to-video and image-to-video only, not reference_images or source_video_url. Poll get_video_job for status and final video_url.',
|
|
8
8
|
inputSchema: z.object({
|
|
9
9
|
prompt: z.string().min(5).max(1024),
|
|
10
10
|
negative_prompt: z.string().max(500).optional(),
|
|
11
11
|
aspect_ratio: z.enum(['16:9', '9:16']).default('16:9').optional(),
|
|
12
12
|
duration_seconds: z.union([z.literal(4), z.literal(6), z.literal(8)]).default(8).optional(),
|
|
13
13
|
resolution: z.enum(['720p', '1080p']).default('720p').optional(),
|
|
14
|
-
model: z.enum(['fast', 'standard']).default('fast').optional(),
|
|
14
|
+
model: z.enum(['lite', 'fast', 'standard']).default('fast').optional(),
|
|
15
15
|
image_url: z.string().url().optional(),
|
|
16
16
|
end_image_url: z.string().url().optional(),
|
|
17
17
|
reference_images: z.array(z.object({
|