@wevi/mcp 0.1.1 → 0.2.1

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
@@ -6,16 +6,23 @@ Connect Claude Desktop, Claude Code, Cursor, or Windsurf directly to your Wevi a
6
6
 
7
7
  ---
8
8
 
9
- ## Features & Tools
9
+ ## How a video gets made
10
10
 
11
- * **`wevi_list_templates`**: Search and discover video templates by aspect ratio (`16:9`, `16:12`), category, or keywords.
12
- * **`wevi_get_template_schema`**: Inspect dynamic editable layers (text, colors, images, animations).
13
- * **`wevi_create_project`**: Create draft video projects and configure dynamic layer variables.
14
- * **`wevi_get_project`**: Retrieve video configuration parameters and render status.
15
- * **`wevi_trigger_render`**: Render high-definition MP4 videos via Wevi's cloud rendering pipeline with automatic polling and preview links.
16
- * **`wevi_get_render_status`**: Check export progress and fetch final download links.
17
- * **`wevi_generate_storyboard`**: Generate AI copywriting and scripts tailored to Wevi video templates.
18
- * **`wevi_capture_web_ui`**: Capture automated high-resolution web screenshots directly from live URLs.
11
+ 1. **`wevi_list_templates`** browse *published* templates. Pick every template for the video from **one aspect ratio** (`16:9` or `16:12`).
12
+ 2. **`wevi_get_template_schema`** read the editable layer keys (text, colors, sliders, toggles, dropdowns) for each template.
13
+ 3. **`wevi_create_project`** create **one project with all scenes** (`scenes: [{ templateId, parameters, voiceoverText }]`). The aspect ratio is taken from the templates automatically.
14
+ 4. **`wevi_trigger_render`** renders every scene and exports them as **one concatenated MP4** with music and voiceover. Returns the video URL when ready, or the current phase.
15
+ 5. **`wevi_get_render_status`** poll by `projectId` until `phase` is `completed`, then use `videoUrl`.
16
+
17
+ Helpers:
18
+
19
+ * **`wevi_get_capabilities`** — what Wevi can and cannot make, what to ask the user first, limits and costs. Also sent as server instructions on connect.
20
+ * **`wevi_get_credits`** — credit balance, per-action costs, packs and the top-up link. Live keys spend credits: 1 per scene render, 1/2/4 per 720p/1080p/4K export, 1 per storyboard draft or capture.
21
+ * **`wevi_generate_storyboard`** — draft scene titles, on-screen text and voiceover from a brief.
22
+ * **`wevi_capture_web_ui`** — capture a high-resolution screenshot of a live URL.
23
+ * **`wevi_get_project`** — inspect a project's scenes and status.
24
+
25
+ > Templates with `requiresUiCapture: true` need an interactive screen capture in the Wevi web app and are rejected by `wevi_create_project` for now.
19
26
 
20
27
  ---
21
28
 
@@ -23,8 +30,13 @@ Connect Claude Desktop, Claude Code, Cursor, or Windsurf directly to your Wevi a
23
30
 
24
31
  ### 1. Get your Wevi API Key
25
32
  1. Log in to [app.wevi.ai](https://app.wevi.ai).
26
- 2. Go to **Profile → API Keys & MCP** (or visit [app.wevi.ai/app/profile?id=api-keys](https://app.wevi.ai/app/profile?id=api-keys)).
27
- 3. Click **"Create New API Key"** and copy your secret key (`wevi_live_...`).
33
+ 2. Go to **Profile API Keys & MCP** (or visit [app.wevi.ai/app/profile?id=api-keys](https://app.wevi.ai/app/profile?id=api-keys)).
34
+ 3. Click **"Create New API Key"** and copy your secret key.
35
+
36
+ | Key | Behaviour |
37
+ | :-- | :-- |
38
+ | `wevi_live_…` | Production renders. Quality follows your plan (free plans export 720p with watermark). Spends API credits: your plan's monthly allowance first, then purchased packs. A `402` tells you how many credits are missing and where to top up. |
39
+ | `wevi_test_…` | **Sandbox.** Every render is watermarked and capped at 720p, and nothing counts against your credits. Hard daily caps per key: 20 scene renders, 5 exports, max 4 scenes per project (reset 00:00 UTC). Ideal for trying prompts and CI. |
28
40
 
29
41
  ---
30
42
 
@@ -40,7 +52,7 @@ Add this to your Claude Desktop configuration file:
40
52
  "mcpServers": {
41
53
  "wevi": {
42
54
  "command": "npx",
43
- "args": ["-y", "@wevi/mcp"],
55
+ "args": ["-y", "@wevi/mcp@latest"],
44
56
  "env": {
45
57
  "WEVI_API_KEY": "wevi_live_YOUR_SECRET_KEY_HERE"
46
58
  }
@@ -49,17 +61,11 @@ Add this to your Claude Desktop configuration file:
49
61
  }
50
62
  ```
51
63
 
52
- ---
53
-
54
64
  #### B. Claude Code CLI
55
- Run the following command in your terminal:
56
65
 
57
66
  ```bash
58
- claude mcp add wevi -- npx -y @wevi/mcp
67
+ claude mcp add wevi -e WEVI_API_KEY="wevi_live_YOUR_SECRET_KEY_HERE" -- npx -y @wevi/mcp@latest
59
68
  ```
60
- *(When prompted or in your `.env`, provide `WEVI_API_KEY=wevi_live_...`)*
61
-
62
- ---
63
69
 
64
70
  #### C. Cursor & Windsurf
65
71
  Add to `.cursor/mcp.json` in your workspace:
@@ -69,7 +75,7 @@ Add to `.cursor/mcp.json` in your workspace:
69
75
  "mcpServers": {
70
76
  "wevi": {
71
77
  "command": "npx",
72
- "args": ["-y", "@wevi/mcp"],
78
+ "args": ["-y", "@wevi/mcp@latest"],
73
79
  "env": {
74
80
  "WEVI_API_KEY": "wevi_live_YOUR_SECRET_KEY_HERE"
75
81
  }
@@ -78,14 +84,16 @@ Add to `.cursor/mcp.json` in your workspace:
78
84
  }
79
85
  ```
80
86
 
87
+ Optional: set `WEVI_API_URL` to point at a self-hosted or staging API (defaults to `https://api-v2.wevi.ai/api/v2`).
88
+
81
89
  ---
82
90
 
83
91
  ## Example Prompts to Try in Claude
84
92
 
85
- * *"Show me available 16:9 widescreen templates for our product launch video."*
86
- * *"Find 16:12 desktop app templates in the SaaS category."*
87
- * *"Create a product promo video for our new feature launch called 'Wevi AI' and render it."*
88
- * *"Take a screenshot of stripe.com and use it in our showcase video template."*
93
+ * *"List published 16:9 Wevi templates for a SaaS product launch."*
94
+ * *"Build a 3-scene launch video for 'FocusFlow': hook, feature, CTA. Use one project, then render it and give me the MP4."*
95
+ * *"Draft a storyboard for a 30-second promo about automated scheduling, then map it onto Wevi templates."*
96
+ * *"Check whether my Wevi project 4f2c… has finished rendering."*
89
97
 
90
98
  ---
91
99
 
@@ -95,8 +103,10 @@ Add to `.cursor/mcp.json` in your workspace:
95
103
  cd v2/mcp
96
104
  npm install
97
105
  npm run build
98
- npm start
106
+ WEVI_API_KEY=wevi_test_... npm start
99
107
  ```
100
108
 
109
+ Inspect the tools locally with `npx @modelcontextprotocol/inspector node dist/index.js`.
110
+
101
111
  ## License
102
112
  MIT © [Wevi AI](https://wevi.ai)