@agentmedia/mcp-server 0.2.1 → 0.3.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 +20 -3
- package/dist/index.js +79 -1
- package/dist/index.js.map +1 -1
- package/package.json +5 -3
- package/server.json +4 -4
package/README.md
CHANGED
|
@@ -9,11 +9,13 @@ UGC for developers. Script in, video URL out — directly from your IDE.
|
|
|
9
9
|
|
|
10
10
|
## What It Does
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Five tools that let AI agents generate UGC videos:
|
|
13
13
|
|
|
14
14
|
| Tool | Description |
|
|
15
15
|
|---|---|
|
|
16
16
|
| `create_video` | Generate a UGC video from a script. Polls until complete, returns the video URL. |
|
|
17
|
+
| `show_your_app` | Generate an actor holding a phone that shows your app screenshot. |
|
|
18
|
+
| `product_acting_ugc` | Generate an actor presenting or reacting to a product image. |
|
|
17
19
|
| `list_actors` | Browse available AI actors — slugs, names, demographics. |
|
|
18
20
|
| `get_video_status` | Check a generation job's status, video URL, or error message. |
|
|
19
21
|
|
|
@@ -89,7 +91,9 @@ Once configured, ask your AI assistant:
|
|
|
89
91
|
|
|
90
92
|
> "Generate a 10-second UGC video with Sofia explaining why our product is great"
|
|
91
93
|
|
|
92
|
-
> "List available actors and create a
|
|
94
|
+
> "List available actors and create a SaaS Review video with an enthusiastic tone"
|
|
95
|
+
|
|
96
|
+
> "Create a product acting UGC video with Sofia holding this perfume bottle image"
|
|
93
97
|
|
|
94
98
|
> "Check the status of job abc123"
|
|
95
99
|
|
|
@@ -110,10 +114,23 @@ The MCP server handles the API calls, polling, and returns the finished video UR
|
|
|
110
114
|
| `target_duration` | number | `5`, `10`, or `15` seconds |
|
|
111
115
|
| `aspect_ratio` | string | `9:16`, `16:9`, `1:1` |
|
|
112
116
|
| `allow_broll` | boolean | Include AI-generated B-roll footage |
|
|
113
|
-
| `template` | string | `
|
|
117
|
+
| `template` | string | `saas-review`, `testimonial`, `monologue`, `listicle`, etc. |
|
|
114
118
|
| `composition_mode` | string | `pip` for picture-in-picture |
|
|
115
119
|
| `webhook_url` | string | Async completion callback URL |
|
|
116
120
|
|
|
121
|
+
### product_acting_ugc
|
|
122
|
+
|
|
123
|
+
| Parameter | Type | Description |
|
|
124
|
+
|---|---|---|
|
|
125
|
+
| `product_image_url` | string | Public product image URL. Required. |
|
|
126
|
+
| `actor_slug` | string | Actor to use (from `list_actors`). Required. |
|
|
127
|
+
| `product_description` | string | Product context used when script is omitted. |
|
|
128
|
+
| `script` | string | Exact words the actor says. Optional if `product_description` is provided. |
|
|
129
|
+
| `template` | string | `product-in-hand`, `mirror-selfie`, `bathroom-reaction`, `kitchen-counter`, `car-selfie`, `couch-review`, `expert-interview`, `product-closeup` |
|
|
130
|
+
| `acting_style` | string | `raw-selfie`, `shocked`, `angry`, `excited`, `dramatic`, `weird-hook`, `casual-demo`, `honest-review` |
|
|
131
|
+
| `duration` | number | `5`, `10`, or `15` seconds |
|
|
132
|
+
| `subtitle_style` | string | `hormozi` or `none` |
|
|
133
|
+
|
|
117
134
|
### list_actors
|
|
118
135
|
|
|
119
136
|
| Parameter | Type | Default | Description |
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
|
18
18
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
19
19
|
import { CallToolRequestSchema, ListToolsRequestSchema, } from '@modelcontextprotocol/sdk/types.js';
|
|
20
20
|
import { zodToJsonSchema } from 'zod-to-json-schema';
|
|
21
|
-
import { GENERATORS, CreateVideoSchema, ShowYourAppSchema, } from '@agentmedia/schema';
|
|
21
|
+
import { GENERATORS, CreateVideoSchema, ShowYourAppSchema, ProductActingSchema, LaptopUgcSchema, } from '@agentmedia/schema';
|
|
22
22
|
const API_URL = process.env.AGENT_MEDIA_API_URL || 'https://api.agent-media.ai';
|
|
23
23
|
const API_KEY = process.env.AGENT_MEDIA_API_KEY || '';
|
|
24
24
|
if (!API_KEY) {
|
|
@@ -60,6 +60,16 @@ const showYourAppSchema = zodToJsonSchema(ShowYourAppSchema, {
|
|
|
60
60
|
$refStrategy: 'none',
|
|
61
61
|
});
|
|
62
62
|
const showYourAppInputSchema = showYourAppSchema.definitions?.show_your_app_input ?? showYourAppSchema;
|
|
63
|
+
const productActingSchema = zodToJsonSchema(ProductActingSchema, {
|
|
64
|
+
name: 'product_acting_ugc_input',
|
|
65
|
+
$refStrategy: 'none',
|
|
66
|
+
});
|
|
67
|
+
const productActingInputSchema = productActingSchema.definitions?.product_acting_ugc_input ?? productActingSchema;
|
|
68
|
+
const laptopUgcSchema = zodToJsonSchema(LaptopUgcSchema, {
|
|
69
|
+
name: 'laptop_ugc_input',
|
|
70
|
+
$refStrategy: 'none',
|
|
71
|
+
});
|
|
72
|
+
const laptopUgcInputSchema = laptopUgcSchema.definitions?.laptop_ugc_input ?? laptopUgcSchema;
|
|
63
73
|
const tools = [
|
|
64
74
|
{
|
|
65
75
|
name: 'create_video',
|
|
@@ -71,6 +81,16 @@ const tools = [
|
|
|
71
81
|
description: 'Generate a video of an AI actor holding a phone that shows your app screenshot, with Hormozi-style word-by-word subtitles burned in. The app_screenshot_url MUST be vertical (portrait) — PNG, JPEG, or WebP. If actor_slug is omitted, a random actor from the show_your_app pool is selected. Script is capped at 3 words/second × duration. Submits the job and polls until complete. Returns the video URL.',
|
|
72
82
|
inputSchema: showYourAppInputSchema,
|
|
73
83
|
},
|
|
84
|
+
{
|
|
85
|
+
name: 'product_acting_ugc',
|
|
86
|
+
description: 'Generate Product Acting UGC: an AI creator presents or reacts to a product image in a real-world UGC scenario. Requires product_image_url and actor_slug. Provide script for exact words, or product_description so the API can generate a short script. Submits the job and polls until complete. Returns the video URL.',
|
|
87
|
+
inputSchema: productActingInputSchema,
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: 'laptop_ugc',
|
|
91
|
+
description: 'Generate a 3-scene Laptop UGC ad: actor holds laptop showing your app, scrolling B-roll, then a face-only selfie close. Native lip-synced audio + Hormozi-style subtitles. Provide EITHER app_screen_recording_url (mp4/mov, max 10 MB, 10s) OR app_screen_image_url (png/jpeg/webp, max 5 MB), not both. Script auto-splits at sentence boundary between two face shots. Duration is 15 or 20 seconds. If actor_slug is omitted, a random actor is selected. Submits the job and polls until complete. Returns the video URL.',
|
|
92
|
+
inputSchema: laptopUgcInputSchema,
|
|
93
|
+
},
|
|
74
94
|
{
|
|
75
95
|
name: 'list_actors',
|
|
76
96
|
description: 'List available AI actors for talking head videos. Returns slugs, names, and demographics. Use the slug in create_video\'s actor_slug field.',
|
|
@@ -161,6 +181,64 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
161
181
|
};
|
|
162
182
|
}
|
|
163
183
|
}
|
|
184
|
+
case 'product_acting_ugc': {
|
|
185
|
+
const { status, data } = await apiCall('POST', '/v1/generate/product_acting_ugc', args);
|
|
186
|
+
if (status !== 201) {
|
|
187
|
+
return {
|
|
188
|
+
content: [{ type: 'text', text: `Error (${status}): ${data.error?.message ?? JSON.stringify(data)}` }],
|
|
189
|
+
isError: true,
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
const result = await pollUntilDone(data.job_id);
|
|
193
|
+
if (result.status === 'completed') {
|
|
194
|
+
return {
|
|
195
|
+
content: [{
|
|
196
|
+
type: 'text',
|
|
197
|
+
text: `Product Acting UGC video generated!\n\nJob ID: ${data.job_id}\nActor: ${data.actor_slug}\nSubtitles: ${data.subtitle_style}\nCredits: ${data.credits_deducted}\nVideo URL: ${result.video_url}`,
|
|
198
|
+
}],
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
else if (result.status === 'failed') {
|
|
202
|
+
return {
|
|
203
|
+
content: [{ type: 'text', text: `Product Acting UGC failed: ${result.error_message}` }],
|
|
204
|
+
isError: true,
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
else {
|
|
208
|
+
return {
|
|
209
|
+
content: [{ type: 'text', text: `Product Acting UGC timed out. Job ID: ${data.job_id} — check status later.` }],
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
case 'laptop_ugc': {
|
|
214
|
+
const { status, data } = await apiCall('POST', '/v1/generate/laptop_ugc', args);
|
|
215
|
+
if (status !== 201) {
|
|
216
|
+
return {
|
|
217
|
+
content: [{ type: 'text', text: `Error (${status}): ${data.error?.message ?? JSON.stringify(data)}` }],
|
|
218
|
+
isError: true,
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
const result = await pollUntilDone(data.job_id);
|
|
222
|
+
if (result.status === 'completed') {
|
|
223
|
+
return {
|
|
224
|
+
content: [{
|
|
225
|
+
type: 'text',
|
|
226
|
+
text: `Laptop UGC video generated!\n\nJob ID: ${data.job_id}\nActor: ${data.actor_slug}${data.actor_random ? ' (random)' : ''}\nSubtitles: ${data.subtitle_style}\nCredits: ${data.credits_deducted}\nVideo URL: ${result.video_url}`,
|
|
227
|
+
}],
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
else if (result.status === 'failed') {
|
|
231
|
+
return {
|
|
232
|
+
content: [{ type: 'text', text: `Laptop UGC failed: ${result.error_message}` }],
|
|
233
|
+
isError: true,
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
else {
|
|
237
|
+
return {
|
|
238
|
+
content: [{ type: 'text', text: `Laptop UGC timed out. Job ID: ${data.job_id} — check status later.` }],
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
}
|
|
164
242
|
case 'list_actors': {
|
|
165
243
|
const limit = args?.limit ?? 20;
|
|
166
244
|
const offset = args?.offset ?? 0;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,+DAA+D;AAE/D;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,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MAAM,KAAK,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,cAAc,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,UAAU,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE;qBACxK,CAAC;aACH,CAAC;QACJ,CAAC;QAED;YACE,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,IAAI,EAAE,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IACzF,CAAC;AACH,CAAC,CAAC,CAAC;AAEH,gFAAgF;AAEhF,KAAK,UAAU,IAAI;IACjB,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAChC,OAAO,CAAC,KAAK,CAAC,yCAAyC,CAAC,CAAC;AAC3D,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IAC7B,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentmedia/mcp-server",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"mcpName": "io.github.
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"mcpName": "io.github.gitroomhq/agent-media",
|
|
5
5
|
"description": "MCP server for agent-media — generate AI UGC videos from Claude Code, Cursor, Windsurf, or any MCP-compatible client.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -22,6 +22,8 @@
|
|
|
22
22
|
"ai",
|
|
23
23
|
"developer-tools",
|
|
24
24
|
"ai-agent",
|
|
25
|
+
"product-video",
|
|
26
|
+
"product-ugc",
|
|
25
27
|
"talking-head",
|
|
26
28
|
"text-to-video",
|
|
27
29
|
"agent-media"
|
|
@@ -46,7 +48,7 @@
|
|
|
46
48
|
"dependencies": {
|
|
47
49
|
"@modelcontextprotocol/sdk": "^1.12.0",
|
|
48
50
|
"zod-to-json-schema": "^3.25.0",
|
|
49
|
-
"@agentmedia/schema": "0.
|
|
51
|
+
"@agentmedia/schema": "0.3.0"
|
|
50
52
|
},
|
|
51
53
|
"devDependencies": {
|
|
52
54
|
"typescript": "^5.7.3"
|
package/server.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
|
-
"name": "io.github.
|
|
3
|
+
"name": "io.github.gitroomhq/agent-media",
|
|
4
4
|
"description": "Generate AI UGC videos with talking heads, B-roll, and subtitles.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "https://github.com/gitroomhq/agent-media",
|
|
7
7
|
"source": "github",
|
|
8
8
|
"subfolder": "packages/mcp-server"
|
|
9
9
|
},
|
|
10
|
-
"version": "0.
|
|
10
|
+
"version": "0.1.3",
|
|
11
11
|
"packages": [
|
|
12
12
|
{
|
|
13
13
|
"registryType": "npm",
|
|
14
14
|
"identifier": "@agentmedia/mcp-server",
|
|
15
|
-
"version": "0.
|
|
15
|
+
"version": "0.1.3",
|
|
16
16
|
"transport": {
|
|
17
17
|
"type": "stdio"
|
|
18
18
|
},
|
|
@@ -27,4 +27,4 @@
|
|
|
27
27
|
]
|
|
28
28
|
}
|
|
29
29
|
]
|
|
30
|
-
}
|
|
30
|
+
}
|