@wevi/mcp 0.1.2 → 0.2.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.
- package/LICENSE +21 -0
- package/README.md +48 -25
- package/dist/chunk-YQ5AW3YY.js +798 -0
- package/dist/chunk-YQ5AW3YY.js.map +1 -0
- package/dist/http.d.ts +2 -0
- package/dist/http.js +148 -0
- package/dist/http.js.map +1 -0
- package/dist/index.js +21 -547
- package/dist/index.js.map +1 -1
- package/package.json +8 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Wevi AI
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
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
|
-
##
|
|
9
|
+
## How a video gets made
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
|
27
|
-
3. Click **"Create New API Key"** and copy your secret key
|
|
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,25 +84,42 @@ 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
|
-
* *"
|
|
86
|
-
* *"
|
|
87
|
-
* *"
|
|
88
|
-
* *"
|
|
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
|
|
|
100
|
+
## Remote server (Claude connectors, ChatGPT apps)
|
|
101
|
+
|
|
102
|
+
The same tools are also served over HTTPS at `https://mcp.wevi.ai/mcp`, so you can add Wevi as a **custom connector** in Claude or as an app in ChatGPT without installing anything. Those clients sign you in with your Wevi account; no API key needed. See [docs.wevi.ai/docs/connectors](https://docs.wevi.ai/docs/connectors).
|
|
103
|
+
|
|
104
|
+
To self-host the remote server:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
npm install -g @wevi/mcp
|
|
108
|
+
MCP_PUBLIC_URL=https://mcp.example.com WEVI_API_URL=https://api-v2.wevi.ai/api/v2 wevi-mcp-http
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
It exposes `/mcp`, `/health` and `/.well-known/oauth-protected-resource`, and accepts `Authorization: Bearer <Wevi OAuth token or API key>`.
|
|
112
|
+
|
|
92
113
|
## Development
|
|
93
114
|
|
|
94
115
|
```bash
|
|
95
116
|
cd v2/mcp
|
|
96
117
|
npm install
|
|
97
118
|
npm run build
|
|
98
|
-
npm start
|
|
119
|
+
WEVI_API_KEY=wevi_test_... npm start
|
|
99
120
|
```
|
|
100
121
|
|
|
122
|
+
Inspect the tools locally with `npx @modelcontextprotocol/inspector node dist/index.js`.
|
|
123
|
+
|
|
101
124
|
## License
|
|
102
125
|
MIT © [Wevi AI](https://wevi.ai)
|