@ssemble/mcp-server 1.1.8 → 1.1.10

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 CHANGED
@@ -84,12 +84,34 @@ Add to your MCP settings:
84
84
  | `get_status` | Check processing progress (0-100%) and current step |
85
85
  | `get_shorts` | Retrieve completed clips with video URLs, titles, viral scores |
86
86
  | `list_requests` | List all your requests with pagination and status filtering |
87
+ | `list_posts` | List your scheduled / published social posts (YouTube, Instagram, TikTok) with status, public URL, publish time and failure reasons |
87
88
  | `delete_request` | Permanently delete a request and its videos |
88
89
  | `list_templates` | Browse caption style templates |
89
90
  | `list_music` | Browse background music tracks |
90
91
  | `list_game_videos` | Browse gameplay overlay videos |
91
92
  | `list_meme_hooks` | Browse meme hook attention-grabber clips |
92
93
 
94
+ ### `create_short` parameters
95
+
96
+ Required: a source (`url` for YouTube or `fileUrl` for a public video file) plus `start` and `end` in seconds (60 s to 1200 s apart). Everything else is optional:
97
+
98
+ | Group | Parameters |
99
+ |-------|------------|
100
+ | Clipping | `preferredLength` (`under30sec` … `under10min`, default `under60sec`), `maxShorts` (1-12), `noClipping` (render the whole range as one clip) |
101
+ | Language | `language` (spoken, ISO 639-1, 54 codes — read the `ssemble://supported-languages` resource), `captionLanguage` (if different) |
102
+ | Captions | `templateId` (from `list_templates`), `captionsEnabled` (default `true`; set `false` for sources that already carry captions) |
103
+ | Framing | `layout` (`auto` / `fill` / `fit` / `square`), `blurBackground` (with `fit`: `true` = blurred copy of the video behind the clip, `false` = the template's solid colour; omit to use the account's saved editor preference) |
104
+ | Overlays | `hookTitle`, `memeHook` + `memeHookName`, `gameVideo` + `gameVideoName`, `ctaEnabled` + `ctaText` |
105
+ | Music | `music` + `musicName`, `musicVolume` (0-100, default 10) |
106
+ | End-screen outro | `outroEnabled` (default `false`), then `outroText` (≤ 80 chars, default a localized "Please subscribe"), `outroImageUrl` (custom card), `outroSeconds` (1-3, default 2), `outroSting` (bell sound, default `true`), `outroHandle` (e.g. `@mychannel`) |
107
+ | Automation | `webhookUrl` — POST callback when processing finishes (see below) |
108
+
109
+ Example — Romanian podcast, fit layout on a solid background, with an outro:
110
+
111
+ > "Create shorts from https://youtube.com/watch?v=abc123 between 10:00 and 20:00, language ro, layout fit with blurBackground false, and add an outro with the handle @mypodcast"
112
+
113
+ Full parameter reference: https://www.ssemble.com/docs/endpoints/create-short
114
+
93
115
  ## How Processing Works
94
116
 
95
117
  Video processing takes 5-30 minutes. Two workflows available:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ssemble/mcp-server",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "mcpName": "com.ssemble/mcp-server",
5
5
  "description": "MCP server for Ssemble AI Clipping — create viral short-form videos from any AI assistant. Webhook callbacks for n8n, Zapier, and Make automation.",
6
6
  "type": "module",
package/server.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "com.ssemble/mcp-server",
4
4
  "title": "Ssemble AI Clipping",
5
5
  "description": "Create AI-powered short-form video clips from YouTube videos. Supports webhook callbacks.",
6
- "version": "1.1.8",
6
+ "version": "1.1.10",
7
7
  "websiteUrl": "https://www.ssemble.com/mcp",
8
8
  "repository": {
9
9
  "url": "https://github.com/ssembleinc/ssemble-mcp-server",
@@ -14,7 +14,7 @@
14
14
  "registryType": "npm",
15
15
  "registryBaseUrl": "https://registry.npmjs.org",
16
16
  "identifier": "@ssemble/mcp-server",
17
- "version": "1.1.8",
17
+ "version": "1.1.10",
18
18
  "transport": {
19
19
  "type": "stdio"
20
20
  },
package/src/api/client.js CHANGED
@@ -185,6 +185,11 @@ export class SsembleClient {
185
185
  return this._request('GET', '/shorts', { query });
186
186
  }
187
187
 
188
+ // Endpoint 5b: GET /posts — scheduled / published social posts
189
+ async listPosts(query) {
190
+ return this._request('GET', '/posts', { query });
191
+ }
192
+
188
193
  // Endpoint 6: DELETE /shorts/:id
189
194
  async deleteRequest(requestId) {
190
195
  return this._request('DELETE', `/shorts/${requestId}`);
package/src/index.js CHANGED
@@ -11,6 +11,7 @@ import { registerCreateShort } from './tools/create-short.js';
11
11
  import { registerGetStatus } from './tools/get-status.js';
12
12
  import { registerGetShorts } from './tools/get-shorts.js';
13
13
  import { registerListRequests } from './tools/list-requests.js';
14
+ import { registerListPosts } from './tools/list-posts.js';
14
15
  import { registerDeleteRequest } from './tools/delete-request.js';
15
16
  import { registerListTemplates } from './tools/list-templates.js';
16
17
  import { registerListMusic } from './tools/list-music.js';
@@ -46,6 +47,7 @@ export function createSsembleMcpServer(apiKey, baseUrl) {
46
47
  registerListMusic(server, client);
47
48
  registerListGameVideos(server, client);
48
49
  registerListMemeHooks(server, client);
50
+ registerListPosts(server, client);
49
51
 
50
52
  // Register resources
51
53
  registerResources(server);
@@ -0,0 +1,36 @@
1
+ import { z } from 'zod';
2
+ import { formatListPostsResponse, formatError } from '../utils/format.js';
3
+
4
+ // Mirrors GET /api/v1/posts (plugin-shortsmaker-node-backend services/postsService.js).
5
+ const POST_STATUSES = ['scheduled', 'processing', 'published', 'failed', 'canceled'];
6
+ const PLATFORMS = ['youtube', 'instagram', 'tiktok'];
7
+ const SOURCES = ['manual', 'automation'];
8
+
9
+ const schema = {
10
+ status: z.enum(POST_STATUSES).describe('Filter by post status: scheduled (queued), processing (uploading or waiting for the platform), published (live, has url), failed (has error), canceled').optional(),
11
+ platform: z.enum(PLATFORMS).describe('Filter by platform').optional(),
12
+ source: z.enum(SOURCES).describe('manual = scheduled by hand from the shorts list; automation = posted by channel automation').optional(),
13
+ requestId: z.string().regex(/^[0-9a-fA-F]{24}$/).describe('Only posts made from this request (24-char hex request ID)').optional(),
14
+ shortId: z.string().uuid().describe('Only posts made from this clip (short ID)').optional(),
15
+ since: z.string().datetime({ offset: true }).describe('ISO 8601 lower bound. Applies to scheduledAt, or to publishedAt when date=published').optional(),
16
+ until: z.string().datetime({ offset: true }).describe('ISO 8601 upper bound (same field as since)').optional(),
17
+ date: z.enum(['scheduled', 'published']).describe('Which timestamp since/until filter and sort by. Use "published" with since to poll for newly live posts.').optional(),
18
+ page: z.number().int().min(1).default(1).describe('Page number').optional(),
19
+ limit: z.number().int().min(1).max(100).default(50).describe('Items per page (1-100)').optional(),
20
+ };
21
+
22
+ export function registerListPosts(server, client) {
23
+ server.tool(
24
+ 'list_posts',
25
+ 'List your scheduled and published social posts (YouTube, Instagram, TikTok) with status, public URL and publish time. Filter by status, platform, request, clip or time window; use date=published with since to find posts that went live after a given moment.',
26
+ schema,
27
+ async (params) => {
28
+ try {
29
+ const result = await client.listPosts(params);
30
+ return { content: [{ type: 'text', text: formatListPostsResponse(result) }] };
31
+ } catch (error) {
32
+ return { content: [{ type: 'text', text: formatError(error) }], isError: true };
33
+ }
34
+ }
35
+ );
36
+ }
@@ -126,6 +126,37 @@ export function formatListRequestsResponse(result) {
126
126
  return text;
127
127
  }
128
128
 
129
+ /**
130
+ * Formats GET /posts: one line per post with platform, status, time and URL or failure reason.
131
+ */
132
+ export function formatListPostsResponse(result) {
133
+ const d = result.data || {};
134
+ const posts = d.posts || [];
135
+ const p = d.pagination || { page: 1, totalPages: 0, totalCount: 0, limit: posts.length };
136
+
137
+ if (posts.length === 0) {
138
+ return `No posts found for these filters.${formatRateLimits(result.rateLimits)}`;
139
+ }
140
+
141
+ let text = `## Your Posts (Page ${p.page}/${p.totalPages}, ${p.totalCount} total)\n\n`;
142
+ posts.forEach((post, i) => {
143
+ const num = (p.page - 1) * p.limit + i + 1;
144
+ const when = post.status === 'published' && post.publishedAt
145
+ ? `published ${new Date(post.publishedAt).toLocaleString()}`
146
+ : post.scheduledAt ? `scheduled for ${new Date(post.scheduledAt).toLocaleString()}` : '';
147
+ const handle = post.account && post.account.handle ? ` @${post.account.handle}` : '';
148
+ text += `**${num}. ${post.platform}${handle} — ${post.status}** (${post.source})\n`;
149
+ if (post.title) text += ` ${post.title}\n`;
150
+ if (when) text += ` ${when}\n`;
151
+ if (post.url) text += ` URL: ${post.url}\n`;
152
+ if (post.status === 'failed' && post.error) text += ` Failed (${post.errorCode}${post.retryable ? ', retryable' : ''}): ${post.error}\n`;
153
+ text += ` ID: \`${post.id}\` | clip: \`${post.shortId}\` | request: \`${post.requestId}\`\n\n`;
154
+ });
155
+ if (p.totalPages > 1) text += `Page ${p.page} of ${p.totalPages}. Use \`page\` to browse more.`;
156
+ text += formatRateLimits(result.rateLimits);
157
+ return text;
158
+ }
159
+
129
160
  /**
130
161
  * Formats recent requests for the "no requestId given" UX.
131
162
  * Used by get_status and get_shorts when called without a requestId.