@ssemble/mcp-server 1.1.17 → 1.1.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ssemble/mcp-server",
3
- "version": "1.1.17",
3
+ "version": "1.1.18",
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.17",
6
+ "version": "1.1.18",
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.17",
17
+ "version": "1.1.18",
18
18
  "transport": {
19
19
  "type": "stdio"
20
20
  },
@@ -41,8 +41,20 @@ const HOOK_TITLE_PRESETS = {
41
41
  editorial: 'Editorial — serif lead line, big lime keyword, small tail line; animates in, leaves after ~4s',
42
42
  statement: 'Statement — small setup line, big condensed payoff; animates in, leaves after ~4s',
43
43
  native: 'Regular — plain white left-aligned text, like a caption typed in the Instagram app; stays for the whole clip',
44
+ custom: 'Custom — your own design: shape, font, size, colours, outline, corners and letter case, set in hookTitleStyle (fonts: ssemble://hook-title-fonts); stays for the whole clip',
44
45
  };
45
46
 
47
+ // Fonts for hookTitleStyle.fontId (same list as GET /api/v1/hook-title-fonts).
48
+ const HOOK_TITLE_FONTS = [
49
+ ['montserrat-black', 'Montserrat Black'], ['montserrat-extrabold', 'Montserrat ExtraBold'], ['montserrat-bold', 'Montserrat Bold'],
50
+ ['inter', 'Inter'], ['inter-extrabold', 'Inter ExtraBold'], ['poppins-bold', 'Poppins Bold'], ['poppins-black', 'Poppins Black'],
51
+ ['rubik-extrabold', 'Rubik ExtraBold'], ['lexend-bold', 'Lexend Bold'], ['nunito-black', 'Nunito Black'],
52
+ ['space-grotesk-bold', 'Space Grotesk Bold'], ['archivo-black', 'Archivo Black'], ['anton', 'Anton'], ['bebas-neue', 'Bebas Neue'],
53
+ ['oswald-bold', 'Oswald Bold'], ['roboto-condensed-extrabold', 'Roboto Condensed ExtraBold'], ['bangers', 'Bangers'],
54
+ ['luckiest-guy', 'Luckiest Guy'], ['lilita-one', 'Lilita One'], ['permanent-marker', 'Permanent Marker'], ['caveat-bold', 'Caveat Bold'],
55
+ ['playfair-extrabold', 'Playfair Display ExtraBold'], ['dm-serif-display', 'DM Serif Display'], ['gloock', 'Gloock'],
56
+ ];
57
+
46
58
  export function registerResources(server) {
47
59
  server.resource(
48
60
  'supported-languages',
@@ -90,6 +102,20 @@ export function registerResources(server) {
90
102
  }
91
103
  );
92
104
 
105
+ server.resource(
106
+ 'hook-title-fonts',
107
+ 'ssemble://hook-title-fonts',
108
+ { description: "Fonts for hookTitleStyle.fontId (hookTitlePresetId 'custom')" },
109
+ async () => {
110
+ let text = '## Hook Title Fonts\n\n';
111
+ text += '| fontId | Font |\n|--------|------|\n';
112
+ for (const [id, name] of HOOK_TITLE_FONTS) text += `| \`${id}\` | ${name} |\n`;
113
+ text += '\nDefault: `montserrat-black`. Every font is scaled to look the same size. Titles in Korean, Japanese, Chinese, Arabic, Hebrew, Hindi or Thai use a font made for that script.';
114
+ text += '\n\nExample: `hookTitle: true, hookTitlePresetId: \'custom\', hookTitleStyle: { shape: \'box\', fontId: \'archivo-black\', backgroundColor: \'#FFE600\', textColor: \'#111111\', textCase: \'upper\' }`';
115
+ return { contents: [{ uri: 'ssemble://hook-title-fonts', mimeType: 'text/markdown', text }] };
116
+ }
117
+ );
118
+
93
119
  server.resource(
94
120
  'layouts',
95
121
  'ssemble://layouts',
@@ -27,8 +27,19 @@ const schema = {
27
27
  templateId: z.string().regex(/^[0-9a-fA-F]{24}$/).describe('Caption template ID from list_templates (24-char hex)').optional(),
28
28
  noClipping: z.boolean().default(false).describe('Skip AI clipping, process entire range as one clip').optional(),
29
29
  hookTitle: z.boolean().default(false).describe('Add animated hook title at start').optional(),
30
- hookTitlePresetId: z.enum(['classic-pill', 'dark-pill', 'bold-outline', 'editorial', 'statement', 'classic', 'native'])
31
- .describe('Hook title style (requires hookTitle=true). classic-pill (default) = black text on white pills; dark-pill = white on dark pills; bold-outline = white text with black outline; classic = one white box; native = Regular style: plain white left-aligned text like an Instagram caption; editorial = serif with a lime keyword; statement = condensed setup + big payoff. editorial and statement animate in and leave after ~4s; the others stay for the whole clip. See ssemble://hook-title-presets.').optional(),
30
+ hookTitlePresetId: z.enum(['classic-pill', 'dark-pill', 'bold-outline', 'editorial', 'statement', 'classic', 'native', 'custom'])
31
+ .describe('Hook title style (requires hookTitle=true). classic-pill (default) = black text on white pills; dark-pill = white on dark pills; bold-outline = white text with black outline; classic = one white box; native = Regular style: plain white left-aligned text like an Instagram caption; editorial = serif with a lime keyword; statement = condensed setup + big payoff; custom = your own design, set in hookTitleStyle. editorial and statement animate in and leave after ~4s; the others stay for the whole clip. See ssemble://hook-title-presets.').optional(),
32
+ hookTitleStyle: z.object({
33
+ shape: z.enum(['pill', 'box', 'plain']).describe('pill = a rounded box behind each line; box = one box around the whole title; plain = text only'),
34
+ fontId: z.string().describe('Font id from ssemble://hook-title-fonts (default montserrat-black)').optional(),
35
+ fontSize: z.number().describe('Text size: pill 30-90 (default 56), box 24-64 (default 40), plain 36-90 (default 58)').optional(),
36
+ textColor: z.string().describe('Hex colour like #FFFFFF').optional(),
37
+ backgroundColor: z.string().describe("Box colour as hex (pill and box only). Pill also accepts 'none' for text without a box").optional(),
38
+ outlineWidth: z.number().min(0).max(12).describe('Text outline 0-12, pill only (0 = none)').optional(),
39
+ outlineColor: z.string().describe('Outline hex colour, pill only').optional(),
40
+ cornerRadius: z.number().describe('Corner roundness: pill 0-60 (default 40), box 0-40 (default 10)').optional(),
41
+ textCase: z.enum(['upper', 'asis']).describe('upper = UPPERCASE (default); asis = keep the title as written').optional(),
42
+ }).describe("Your own hook title design. Required when hookTitlePresetId is 'custom', not allowed otherwise. Titles in Korean, Japanese, Chinese, Arabic, Hebrew, Hindi or Thai use a font made for that script.").optional(),
32
43
  memeHook: z.boolean().default(false).describe('Prepend a meme hook clip (2-5s attention grabber)').optional(),
33
44
  memeHookName: z.string().describe('Exact meme hook name from list_meme_hooks (case-sensitive)').optional(),
34
45
  gameVideo: z.boolean().default(false).describe('Add split-screen gameplay overlay').optional(),
@@ -75,6 +86,12 @@ export function registerCreateShort(server, client) {
75
86
  if (params.hookTitlePresetId !== undefined && params.hookTitle !== true) {
76
87
  return { content: [{ type: 'text', text: formatError({ message: 'hookTitlePresetId requires hookTitle: true', code: 'invalid_request' }) }], isError: true };
77
88
  }
89
+ if (params.hookTitlePresetId === 'custom' && !params.hookTitleStyle) {
90
+ return { content: [{ type: 'text', text: formatError({ message: "hookTitlePresetId 'custom' requires hookTitleStyle", code: 'invalid_request' }) }], isError: true };
91
+ }
92
+ if (params.hookTitleStyle && params.hookTitlePresetId !== 'custom') {
93
+ return { content: [{ type: 'text', text: formatError({ message: "hookTitleStyle requires hookTitlePresetId: 'custom'", code: 'invalid_request' }) }], isError: true };
94
+ }
78
95
  if (params.ctaEnabled && !params.ctaText) {
79
96
  return { content: [{ type: 'text', text: formatError({ message: 'ctaText is required when ctaEnabled is true', code: 'invalid_request' }) }], isError: true };
80
97
  }