@cutpro/mcp 1.0.0 → 1.0.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 +15 -11
- package/dist/index.js +279 -124
- package/package.json +12 -4
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# @cutpro/mcp
|
|
2
2
|
|
|
3
|
+
[](https://smithery.ai/servers/contact-8lma/cutpro)
|
|
4
|
+
|
|
3
5
|
MCP server that exposes the public CutPro v1 API as tools, so AI clients can drive
|
|
4
6
|
the full clipping flow: **analyze → submit → poll → list clips → render → download**,
|
|
5
7
|
plus balance and templates.
|
|
@@ -57,18 +59,18 @@ claude mcp add cutpro --env CUTPRO_API_KEY=SUA_CHAVE -- npx -y @cutpro/mcp
|
|
|
57
59
|
|
|
58
60
|
```json
|
|
59
61
|
{
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
62
|
+
"mcpServers": {
|
|
63
|
+
"cutpro": {
|
|
64
|
+
"command": "npx",
|
|
65
|
+
"args": ["-y", "@cutpro/mcp"],
|
|
66
|
+
"env": { "CUTPRO_API_KEY": "SUA_CHAVE" }
|
|
67
|
+
}
|
|
68
|
+
}
|
|
67
69
|
}
|
|
68
70
|
```
|
|
69
71
|
|
|
70
|
-
|
|
71
|
-
`bun run /path/to/
|
|
72
|
+
For local development against unpublished changes, replace `npx -y @cutpro/mcp`
|
|
73
|
+
with `bun run /path/to/mcp/src/index.ts`.
|
|
72
74
|
|
|
73
75
|
### Streamable HTTP (remote / self-host)
|
|
74
76
|
|
|
@@ -98,8 +100,10 @@ revocation) using the MCP SDK helpers. The flow:
|
|
|
98
100
|
4. `/mcp` is protected by bearer auth; each call uses the token's key.
|
|
99
101
|
|
|
100
102
|
`MCP_PUBLIC_URL` is the public endpoint (e.g. `https://mcp.cut.pro`); its origin
|
|
101
|
-
becomes the OAuth issuer.
|
|
102
|
-
|
|
103
|
+
becomes the OAuth issuer. Set `MCP_REDIS_URL` (e.g. `redis://127.0.0.1:6379`) to
|
|
104
|
+
back the OAuth state (clients, codes, tokens) with **Redis** so it survives
|
|
105
|
+
restarts and works across multiple instances. Without it, an in-memory store is
|
|
106
|
+
used (single instance, state lost on restart).
|
|
103
107
|
|
|
104
108
|
**Hosting**: run it on a dedicated host at the root and point a reverse proxy at it:
|
|
105
109
|
|