@agentmedia/mcp-server 0.1.0 → 0.1.2

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.
@@ -0,0 +1,3 @@
1
+ {
2
+ "0bd6ae0e-31bc-4fd0-a11b-5a413dfb6071": 6747
3
+ }
@@ -0,0 +1 @@
1
+ []
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "mcp-server",
3
+ "description": "",
4
+ "extractionCount": 3
5
+ }
package/CLAUDE.md ADDED
@@ -0,0 +1,7 @@
1
+ <!-- MEMORY:START -->
2
+ # mcp-server
3
+
4
+ _Last updated: 2026-04-13 | 0 active memories, 0 total_
5
+
6
+ _For deeper context, use memory_search, memory_related, or memory_ask tools._
7
+ <!-- MEMORY:END -->
package/README.md CHANGED
@@ -1,28 +1,31 @@
1
- # @agent-media/mcp-server
1
+ # @agentmedia/mcp-server
2
2
 
3
- MCP server for agent-media — generate UGC videos from Claude Code, Cursor, Windsurf, or any MCP-compatible client.
3
+ MCP server for [agent-media](https://agent-media.ai) — generate AI UGC videos from Claude Code, Cursor, Windsurf, or any MCP-compatible client.
4
4
 
5
- ## Setup
5
+ UGC for developers. Script in, video URL out — directly from your IDE.
6
6
 
7
- ```bash
8
- npm install -g @agent-media/mcp-server
9
- ```
7
+ [![npm version](https://img.shields.io/npm/v/@agentmedia/mcp-server)](https://www.npmjs.com/package/@agentmedia/mcp-server)
8
+ [![license](https://img.shields.io/npm/l/@agentmedia/mcp-server)](https://github.com/yuvalsuede/agent-media/blob/main/LICENSE)
10
9
 
11
- Or run directly:
10
+ ## What It Does
12
11
 
13
- ```bash
14
- npx @agent-media/mcp-server
15
- ```
12
+ Three tools that let AI agents generate UGC videos:
13
+
14
+ | Tool | Description |
15
+ |---|---|
16
+ | `create_video` | Generate a UGC video from a script. Polls until complete, returns the video URL. |
17
+ | `list_actors` | Browse available AI actors — slugs, names, demographics. |
18
+ | `get_video_status` | Check a generation job's status, video URL, or error message. |
16
19
 
17
- ## Configuration
20
+ ## Setup
18
21
 
19
- Set your API key as an environment variable:
22
+ ### 1. Get an API Key
20
23
 
21
- ```bash
22
- export AGENT_MEDIA_API_KEY=ma_your_key_here
23
- ```
24
+ Sign up at [agent-media.ai](https://agent-media.ai) and generate an API key in Settings.
25
+
26
+ ### 2. Configure Your IDE
24
27
 
25
- ### Claude Code
28
+ #### Claude Code
26
29
 
27
30
  Add to `~/.claude/settings.json`:
28
31
 
@@ -31,7 +34,7 @@ Add to `~/.claude/settings.json`:
31
34
  "mcpServers": {
32
35
  "agent-media": {
33
36
  "command": "npx",
34
- "args": ["@agent-media/mcp-server"],
37
+ "args": ["-y", "@agentmedia/mcp-server"],
35
38
  "env": {
36
39
  "AGENT_MEDIA_API_KEY": "ma_your_key_here"
37
40
  }
@@ -40,29 +43,113 @@ Add to `~/.claude/settings.json`:
40
43
  }
41
44
  ```
42
45
 
43
- ### Cursor
46
+ #### Cursor
44
47
 
45
- Add to Cursor MCP settings with the same configuration.
48
+ Open Settings > MCP Servers > Add Server:
46
49
 
47
- ## Tools
50
+ ```json
51
+ {
52
+ "agent-media": {
53
+ "command": "npx",
54
+ "args": ["-y", "@agentmedia/mcp-server"],
55
+ "env": {
56
+ "AGENT_MEDIA_API_KEY": "ma_your_key_here"
57
+ }
58
+ }
59
+ }
60
+ ```
48
61
 
49
- ### create_video
62
+ #### Windsurf
50
63
 
51
- Generate a UGC video from a script. Submits the job, polls until complete, returns the video URL.
64
+ Open Settings > MCP > Add:
52
65
 
53
- **Parameters:** script, actor_slug, tone, style, music, target_duration, aspect_ratio, allow_broll, broll_images, and more.
66
+ ```json
67
+ {
68
+ "agent-media": {
69
+ "command": "npx",
70
+ "args": ["-y", "@agentmedia/mcp-server"],
71
+ "env": {
72
+ "AGENT_MEDIA_API_KEY": "ma_your_key_here"
73
+ }
74
+ }
75
+ }
76
+ ```
77
+
78
+ #### Global Install (Alternative)
79
+
80
+ ```bash
81
+ npm install -g @agentmedia/mcp-server
82
+ export AGENT_MEDIA_API_KEY=ma_your_key_here
83
+ agent-media-mcp
84
+ ```
85
+
86
+ ## Usage Examples
87
+
88
+ Once configured, ask your AI assistant:
89
+
90
+ > "Generate a 10-second UGC video with Sofia explaining why our product is great"
91
+
92
+ > "List available actors and create a product review video with an enthusiastic tone"
93
+
94
+ > "Check the status of job abc123"
95
+
96
+ The MCP server handles the API calls, polling, and returns the finished video URL.
97
+
98
+ ## Tool Parameters
99
+
100
+ ### create_video
101
+
102
+ | Parameter | Type | Description |
103
+ |---|---|---|
104
+ | `script` | string | Video script (50-3000 chars). Required unless `prompt` is set. |
105
+ | `prompt` | string | AI generates the script from this prompt. |
106
+ | `actor_slug` | string | Actor to use (from `list_actors`). |
107
+ | `tone` | string | `energetic`, `calm`, `confident`, `dramatic` |
108
+ | `music` | string | `chill`, `energetic`, `corporate`, `dramatic`, `upbeat` |
109
+ | `style` | string | Subtitle style — 17 options including `hormozi`, `bold`, `neon`, `fire` |
110
+ | `target_duration` | number | `5`, `10`, or `15` seconds |
111
+ | `aspect_ratio` | string | `9:16`, `16:9`, `1:1` |
112
+ | `allow_broll` | boolean | Include AI-generated B-roll footage |
113
+ | `template` | string | `product-review`, `testimonial`, `monologue`, `listicle`, etc. |
114
+ | `composition_mode` | string | `pip` for picture-in-picture |
115
+ | `webhook_url` | string | Async completion callback URL |
54
116
 
55
117
  ### list_actors
56
118
 
57
- Browse available AI actors. Returns slugs, names, age, gender, nationality.
119
+ | Parameter | Type | Default | Description |
120
+ |---|---|---|---|
121
+ | `limit` | number | 20 | Max actors to return (max 200) |
122
+ | `offset` | number | 0 | Pagination offset |
58
123
 
59
124
  ### get_video_status
60
125
 
61
- Check a generation job's status. Returns status, video URL, error message.
126
+ | Parameter | Type | Required | Description |
127
+ |---|---|---|---|
128
+ | `job_id` | string | Yes | Job ID from `create_video` |
62
129
 
63
130
  ## Environment Variables
64
131
 
65
132
  | Variable | Required | Default | Description |
66
133
  |---|---|---|---|
67
- | `AGENT_MEDIA_API_KEY` | Yes | — | Your API key (ma_xxx format) |
68
- | `AGENT_MEDIA_API_URL` | No | `https://api-v2-production-2f24.up.railway.app` | API base URL |
134
+ | `AGENT_MEDIA_API_KEY` | Yes | — | Your API key (`ma_xxx` format) |
135
+ | `AGENT_MEDIA_API_URL` | No | Production API | Override the API base URL |
136
+
137
+ ## Related Packages
138
+
139
+ | Package | Description |
140
+ |---|---|
141
+ | [`@agentmedia/sdk`](https://www.npmjs.com/package/@agentmedia/sdk) | TypeScript SDK for direct API integration |
142
+ | [`agent-media-cli`](https://www.npmjs.com/package/agent-media-cli) | CLI tool — generate videos from your terminal |
143
+ | [`@agentmedia/schema`](https://www.npmjs.com/package/@agentmedia/schema) | Shared schema — enums, types, Zod validation |
144
+ | [`agent-media`](https://pypi.org/project/agent-media/) | Python SDK |
145
+
146
+ ## Links
147
+
148
+ - [Interactive API Docs](https://agent-media.ai/docs/api-reference)
149
+ - [OpenAPI Spec](https://agent-media.ai/openapi.json)
150
+ - [Website](https://agent-media.ai)
151
+ - [GitHub](https://github.com/yuvalsuede/agent-media)
152
+
153
+ ## License
154
+
155
+ Apache-2.0
package/package.json CHANGED
@@ -1,8 +1,31 @@
1
1
  {
2
2
  "name": "@agentmedia/mcp-server",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
+ "mcpName": "io.github.yuvalsuede/agent-media",
5
+ "description": "MCP server for agent-media — generate AI UGC videos from Claude Code, Cursor, Windsurf, or any MCP-compatible client.",
4
6
  "type": "module",
5
7
  "license": "Apache-2.0",
8
+ "homepage": "https://agent-media.ai/integrations",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/yuvalsuede/agent-media.git",
12
+ "directory": "packages/mcp-server"
13
+ },
14
+ "keywords": [
15
+ "mcp",
16
+ "model-context-protocol",
17
+ "claude-code",
18
+ "cursor",
19
+ "windsurf",
20
+ "ugc",
21
+ "video-generation",
22
+ "ai",
23
+ "developer-tools",
24
+ "ai-agent",
25
+ "talking-head",
26
+ "text-to-video",
27
+ "agent-media"
28
+ ],
6
29
  "publishConfig": {
7
30
  "access": "public"
8
31
  },
@@ -17,7 +40,7 @@
17
40
  "dependencies": {
18
41
  "@modelcontextprotocol/sdk": "^1.12.0",
19
42
  "zod-to-json-schema": "^3.25.0",
20
- "@agentmedia/schema": "0.1.0"
43
+ "@agentmedia/schema": "0.1.1"
21
44
  },
22
45
  "devDependencies": {
23
46
  "typescript": "^5.7.3"