@wevi/mcp 0.2.1 → 0.2.3
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 +16 -2
- package/dist/chunk-IDFFE3P7.js +981 -0
- package/dist/chunk-IDFFE3P7.js.map +1 -0
- package/dist/http.d.ts +2 -0
- package/dist/http.js +171 -0
- package/dist/http.js.map +1 -0
- package/dist/index.js +14 -777
- 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
|
@@ -19,10 +19,11 @@ Helpers:
|
|
|
19
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
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
21
|
* **`wevi_generate_storyboard`** — draft scene titles, on-screen text and voiceover from a brief.
|
|
22
|
-
* **`
|
|
22
|
+
* **`wevi_capture_scene`** — capture a live product page into a scene whose template needs real UI (auto-selects components; steer with keywords or CSS selectors). **`wevi_select_capture`** re-picks from the candidates.
|
|
23
|
+
* **`wevi_capture_web_ui`** — standalone screenshot of a URL for plain image slots.
|
|
23
24
|
* **`wevi_get_project`** — inspect a project's scenes and status.
|
|
24
25
|
|
|
25
|
-
> Templates with `requiresUiCapture: true` need
|
|
26
|
+
> Templates with `requiresUiCapture: true` need a page capture: create the project, then call `wevi_capture_scene` for each scene listed under `scenesNeedingCapture`, then render.
|
|
26
27
|
|
|
27
28
|
---
|
|
28
29
|
|
|
@@ -97,6 +98,19 @@ Optional: set `WEVI_API_URL` to point at a self-hosted or staging API (defaults
|
|
|
97
98
|
|
|
98
99
|
---
|
|
99
100
|
|
|
101
|
+
## Remote server (Claude connectors, ChatGPT apps)
|
|
102
|
+
|
|
103
|
+
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).
|
|
104
|
+
|
|
105
|
+
To self-host the remote server:
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
npm install -g @wevi/mcp
|
|
109
|
+
MCP_PUBLIC_URL=https://mcp.example.com WEVI_API_URL=https://api-v2.wevi.ai/api/v2 wevi-mcp-http
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
It exposes `/mcp`, `/health` and `/.well-known/oauth-protected-resource`, and accepts `Authorization: Bearer <Wevi OAuth token or API key>`.
|
|
113
|
+
|
|
100
114
|
## Development
|
|
101
115
|
|
|
102
116
|
```bash
|