instantclips-mcp 1.7.1 → 1.9.0
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.es.md +22 -10
- package/README.md +19 -8
- package/README.zh-CN.md +15 -6
- package/manifest/instantclips-mcp.json +914 -237
- package/package.json +1 -1
package/README.es.md
CHANGED
|
@@ -212,20 +212,22 @@ El flujo de trabajo, en orden:
|
|
|
212
212
|
|
|
213
213
|
1. **Importar** — usa `import_product_from_url` para una página de tienda o
|
|
214
214
|
`create_product_from_images` cuando no haya una página que leer.
|
|
215
|
-
2. **Esperar
|
|
216
|
-
|
|
217
|
-
3. **
|
|
218
|
-
|
|
219
|
-
|
|
215
|
+
2. **Esperar la importación** — consulta `get_product` periódicamente hasta que `import_status` sea
|
|
216
|
+
"imported".
|
|
217
|
+
3. **Elegir la idea y revisar el plan** — ofrece las `ideas` del producto, como hace la web. La
|
|
218
|
+
elección del usuario, o sus propias palabras, va en el `creator_note` de `update_video_direction`,
|
|
219
|
+
que redacta el plan; `redraft_video_direction` sin idea elige una por él. El plan se devuelve
|
|
220
|
+
como texto para que el usuario lo revise, y `update_video_direction` cambia lo que haga falta.
|
|
220
221
|
4. **Generar** — usa `generate_video` pasando `expected_credit_cost`: el coste que se le indicó al
|
|
221
222
|
usuario, tal como lo informó `get_product`. Si no coincide, se rechaza sin cobrar.
|
|
222
|
-
5. **Recoger el resultado** — consulta `get_video` periódicamente
|
|
223
|
-
|
|
223
|
+
5. **Recoger el resultado** — consulta `get_video` periódicamente hasta que termine y entrega al
|
|
224
|
+
usuario el `download_url`, la página propia del vídeo y su enlace público para compartirlo.
|
|
224
225
|
|
|
225
226
|
Otro vídeo del mismo producto sigue el mismo flujo sobre ese producto: editar o volver a preparar el
|
|
226
227
|
plan abre el borrador del siguiente vídeo, y `generate_video` sin borrador genera otra toma del último
|
|
227
228
|
plan. Un vídeo ya generado no se puede modificar. Cada respuesta de `get_product` incluye `next_step`:
|
|
228
|
-
qué hacer a continuación.
|
|
229
|
+
qué hacer a continuación. Cuando el usuario ha visto un vídeo, `rate_video` registra su valoración;
|
|
230
|
+
`send_feedback` envía al equipo una nota sobre las propias herramientas, con el visto bueno del usuario.
|
|
229
231
|
|
|
230
232
|
Las marcas funcionan de la misma manera: `list_brands`, `create_brand`, `set_product_brand`. Cada
|
|
231
233
|
vídeo se prepara con la voz de una marca; por eso, si el escaparate de un producto importado no
|
|
@@ -294,8 +296,18 @@ de nombres de marca `ai.instantclips`; no lo sustituyas por un nombre `io.github
|
|
|
294
296
|
firma no se guarda en el repositorio: `.gitignore` cubre `*.pem`, y una clave privada incluida en un
|
|
295
297
|
commit es una clave publicada.
|
|
296
298
|
|
|
297
|
-
|
|
298
|
-
|
|
299
|
+
El paquete npm se publica desde GitHub Actions, no desde un portátil. Haz commit del cambio de
|
|
300
|
+
versión (`package.json`, `server.json` y los valores fijados en `test/shim.test.js`) y sube una
|
|
301
|
+
etiqueta con su nombre (`git tag v1.7.2 && git push origin main v1.7.2`);
|
|
302
|
+
`.github/workflows/publish.yml` ejecuta las pruebas y publica mediante la publicación de confianza
|
|
303
|
+
de npm (trusted publishing), sin token de npm ni confirmación en el navegador. El trabajo se detiene
|
|
304
|
+
si la etiqueta no coincide con el `version` de `package.json`. El publicador de confianza del paquete
|
|
305
|
+
en npmjs.com nombra este repositorio y `publish.yml`, así que renombrar el archivo del flujo de
|
|
306
|
+
trabajo impide publicar.
|
|
307
|
+
|
|
308
|
+
Una versión nueva puede tardar varios minutos en aparecer en npm, y el registro rechaza una entrada
|
|
309
|
+
cuya versión de npm no encuentra ("version … was not found"; no cambia nada). Ejecuta el paso de
|
|
310
|
+
`mcp-publisher` cuando `https://registry.npmjs.org/instantclips-mcp/<versión>` responda.
|
|
299
311
|
|
|
300
312
|
Inicia sesión y publica en un mismo comando — el token del registro caduca a los cinco minutos — y el
|
|
301
313
|
dominio se verifica por HTTP, no por DNS: `instantclips.ai/.well-known/mcp-registry-auth`, en el
|
package/README.md
CHANGED
|
@@ -200,18 +200,21 @@ The workflow, in order:
|
|
|
200
200
|
|
|
201
201
|
1. **Import** — `import_product_from_url` for a store page, or `create_product_from_images` when
|
|
202
202
|
there is no page to read.
|
|
203
|
-
2. **Wait for the
|
|
204
|
-
3. **
|
|
205
|
-
|
|
206
|
-
|
|
203
|
+
2. **Wait for the import** — poll `get_product` until `import_status` is "imported".
|
|
204
|
+
3. **Choose the idea, then read the plan** — offer the product's `ideas`, as the website does. The
|
|
205
|
+
user's pick, or their own words, goes in `update_video_direction`'s `creator_note`, which writes
|
|
206
|
+
the plan; `redraft_video_direction` with no idea picks one for them. The plan comes back as
|
|
207
|
+
text for the user to review, and `update_video_direction` changes anything in it.
|
|
207
208
|
4. **Generate** — `generate_video`, passing `expected_credit_cost`: the cost the user was told, as
|
|
208
209
|
`get_product` reported it. A mismatch is refused without charging.
|
|
209
|
-
5. **Collect** — poll `get_video`
|
|
210
|
+
5. **Collect** — poll `get_video` until it is done, then give the user `download_url`, the video's
|
|
211
|
+
own page and its public share link.
|
|
210
212
|
|
|
211
213
|
Another video for the same product is the same flow on that product: editing or redrafting opens the
|
|
212
214
|
next video's draft, and `generate_video` with no draft renders another take of the last plan. A
|
|
213
215
|
generated video itself cannot be changed. Every `get_product` response carries `next_step`: what to
|
|
214
|
-
do now.
|
|
216
|
+
do now. Once the user has watched a video, `rate_video` records their verdict; `send_feedback` sends
|
|
217
|
+
the team a note about the tools themselves, with the user's OK.
|
|
215
218
|
|
|
216
219
|
Brands work the same way: `list_brands`, `create_brand`, `set_product_brand`. Every video is
|
|
217
220
|
drafted in a brand's voice, so an import whose storefront matches no existing brand stops and asks
|
|
@@ -274,8 +277,16 @@ Publish the npm package first, then re-publish this same registry entry with
|
|
|
274
277
|
`ai.instantclips` namespace; do not replace it with an `io.github.*` name. The signing key stays out
|
|
275
278
|
of the repository — `.gitignore` covers `*.pem`, and a committed private key is a published one.
|
|
276
279
|
|
|
277
|
-
|
|
278
|
-
|
|
280
|
+
npm is published from GitHub Actions, not from a laptop. Commit the version bump (`package.json`,
|
|
281
|
+
`server.json`, and the pins in `test/shim.test.js`), then push a tag named for it
|
|
282
|
+
(`git tag v1.7.2 && git push origin main v1.7.2`); `.github/workflows/publish.yml` runs the tests
|
|
283
|
+
and publishes through npm's trusted publishing, with no npm token and no browser confirmation. The job stops if the tag does not match `package.json`'s `version`. The package's
|
|
284
|
+
trusted publisher on npmjs.com names this repository and `publish.yml`, so renaming the workflow
|
|
285
|
+
file breaks publishing.
|
|
286
|
+
|
|
287
|
+
A new version can take several minutes to appear on npm, and the registry refuses an entry whose
|
|
288
|
+
npm version it cannot find ("version … was not found"; nothing changes). Run the `mcp-publisher`
|
|
289
|
+
step once `https://registry.npmjs.org/instantclips-mcp/<version>` answers.
|
|
279
290
|
|
|
280
291
|
Log in and publish in one command — the registry token expires five minutes after login — and the
|
|
281
292
|
domain is verified over HTTP, not DNS: `instantclips.ai/.well-known/mcp-registry-auth` on the marketing site
|
package/README.zh-CN.md
CHANGED
|
@@ -183,16 +183,18 @@ INSTANTCLIPS_TOKEN="your-token" npx -y instantclips-mcp --check --json
|
|
|
183
183
|
|
|
184
184
|
1. **导入** — 如果有店铺商品页面,使用 `import_product_from_url`;如果没有可读取的页面,则使用
|
|
185
185
|
`create_product_from_images`。
|
|
186
|
-
2.
|
|
187
|
-
3.
|
|
188
|
-
|
|
186
|
+
2. **等待导入** — 轮询 `get_product`,直到 `import_status` 为 "imported"。
|
|
187
|
+
3. **选择创意,再查看方案** — 像网站一样,提供商品的 `ideas`。用户选中的创意或自己的描述放进
|
|
188
|
+
`update_video_direction` 的 `creator_note`,由它写出方案;不带创意调用 `redraft_video_direction`
|
|
189
|
+
则由我们选一个。方案以文本返回,供用户审阅,使用 `update_video_direction` 可修改其中任何内容。
|
|
189
190
|
4. **生成** — 使用 `generate_video`,并传入 `expected_credit_cost`:即 `get_product` 报告并已告知用户的
|
|
190
191
|
算力费用。费用不一致时会拒绝执行,不会扣费。
|
|
191
|
-
5. **获取结果** — 轮询 `get_video
|
|
192
|
+
5. **获取结果** — 轮询 `get_video` 直到完成,然后把 `download_url`、视频自己的页面和公开分享链接交给用户。
|
|
192
193
|
|
|
193
194
|
为同一商品制作另一个视频,走的是同一流程:编辑或重新起草会打开下一个视频的草稿;没有草稿时调用
|
|
194
195
|
`generate_video` 会按上一方案再生成一版。已生成的视频本身无法修改。每次 `get_product` 的响应都带有
|
|
195
|
-
`next_step
|
|
196
|
+
`next_step`,说明下一步该做什么。用户看过视频后,`rate_video` 记录用户自己的评价;`send_feedback`
|
|
197
|
+
经用户同意后,把关于这些工具本身的意见发给团队。
|
|
196
198
|
|
|
197
199
|
品牌的操作方式相同:`list_brands`、`create_brand`、`set_product_brand`。每个视频都会采用对应品牌
|
|
198
200
|
的表达风格进行起草。因此,当导入商品的店铺与任何现有品牌都不匹配时,流程会暂停并询问,而不是
|
|
@@ -252,7 +254,14 @@ npm 软件包中的 `mcpName` 必须与该注册表名称完全一致。仓库
|
|
|
252
254
|
域名身份验证会保留品牌命名空间 `ai.instantclips`;请勿将其替换为 `io.github.*` 名称。签名密钥不
|
|
253
255
|
存放在仓库中:`.gitignore` 已忽略 `*.pem`,因为一旦提交私钥,就等于公开了私钥。
|
|
254
256
|
|
|
255
|
-
|
|
257
|
+
npm 软件包从 GitHub Actions 发布,而不是从个人电脑发布。先提交版本号的修改(`package.json`、`server.json` 以及 `test/shim.test.js` 中写死的版本号),再推送以该版本命名的标签
|
|
258
|
+
(`git tag v1.7.2 && git push origin main v1.7.2`);`.github/workflows/publish.yml` 会运行测试,并通过
|
|
259
|
+
npm 的可信发布(trusted publishing)完成发布,不需要 npm 令牌,也不需要在浏览器里确认。标签与
|
|
260
|
+
`package.json` 的 `version` 不一致时,任务会中止。npmjs.com 上该软件包的可信发布者指定了本仓库和
|
|
261
|
+
`publish.yml`,所以重命名这个工作流文件会导致无法发布。
|
|
262
|
+
|
|
263
|
+
新版本可能要过几分钟才会出现在 npm 上,而注册表会拒绝找不到对应 npm 版本的条目("version … was not found",不会有任何改动)。
|
|
264
|
+
等 `https://registry.npmjs.org/instantclips-mcp/<版本>` 能返回结果后,再运行 `mcp-publisher` 这一步。
|
|
256
265
|
|
|
257
266
|
登录和发布要在同一条命令里完成——注册表令牌登录五分钟后就会过期——域名验证走的是 HTTP 而非 DNS:营销站点上的
|
|
258
267
|
`instantclips.ai/.well-known/mcp-registry-auth` 提供这把密钥的公钥部分(`v=MCPv1; k=ed25519; p=…`),
|