@starreel/mcp 0.1.140 → 0.1.141

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/dist/client.js CHANGED
@@ -23,7 +23,9 @@ const MIME_BY_EXT = {
23
23
  '.ogg': 'audio/ogg', '.flac': 'audio/flac',
24
24
  };
25
25
  const AUTH_BASE = process.env.STARREEL_AUTH_BASE ?? 'https://api.shortreelai.com';
26
- const LOC_BASE = process.env.STARREEL_LOC_BASE ?? 'https://translator.starreel.ai';
26
+ // 本地化服务没有默认地址(2026-10-13):原域名 translator.starreel.ai 的 DNS 曾悬空指向他人主机,
27
+ // 而 loc() 会带 Bearer token 发请求——默认值指向不受控主机 = 把客户令牌送出去。必须显式配置。
28
+ const LOC_BASE = process.env.STARREEL_LOC_BASE?.trim() || '';
27
29
  export class StarReelClient {
28
30
  apiKey;
29
31
  token = null;
@@ -66,8 +68,12 @@ export class StarReelClient {
66
68
  }
67
69
  return res;
68
70
  }
69
- /** 本地化服务(translator.starreel.ai)的 JSON 调用。 */
71
+ /** 本地化服务(STARREEL_LOC_BASE)的 JSON 调用。未配置则直接拒绝,不发任何请求。 */
70
72
  async loc(path, init = {}) {
73
+ if (!LOC_BASE) {
74
+ throw new Error('StarReel localization service is not configured (STARREEL_LOC_BASE is unset). ' +
75
+ 'This service is currently offline — check with StarReel before using localization tools.');
76
+ }
71
77
  // 网络层失败(DNS/TLS/超时)与业务 4xx/5xx 分开报——agent 拿到 "fetch failed"
72
78
  // 无从行动;点名服务与建议,它才能正确转述/重试/放弃。
73
79
  let res;
package/openapi.json CHANGED
@@ -2,8 +2,8 @@
2
2
  "openapi": "3.1.0",
3
3
  "info": {
4
4
  "title": "StarReel Production API",
5
- "version": "0.1.140",
6
- "description": "Turn a script into a finished, downloadable short-drama episode over REST.\n\nPipeline: script → AI rewrite → cast/scenes/props extraction → storyboards → portraits & sheets + scene plates → keyframes → video shots → TTS → final cut (.mp4).\n\n**Billing is prepaid and agent-safe**: big-ticket stages are quote-then-generate (`quote_*` returns a `quote_id`). For video, quote == actual charge. For images the quote is a *range* — models billed per reference image are priced before those are assembled, so `estimated_points` is the upper bound (size the balance by it and a run never dies half-way) and `typical_points` is the usual cost; fixed-price models return the two equal. Insufficient balance returns 402 — nothing half-runs and the account never goes negative.\n\nAuth: exchange your API key at `POST /v1/agent/token` for a 15-minute bearer token.\n\nGenerated from the @starreel/mcp v0.1.140 tool surface (operationIds match MCP tool names 1:1)."
5
+ "version": "0.1.141",
6
+ "description": "Turn a script into a finished, downloadable short-drama episode over REST.\n\nPipeline: script → AI rewrite → cast/scenes/props extraction → storyboards → portraits & sheets + scene plates → keyframes → video shots → TTS → final cut (.mp4).\n\n**Billing is prepaid and agent-safe**: big-ticket stages are quote-then-generate (`quote_*` returns a `quote_id`). For video, quote == actual charge. For images the quote is a *range* — models billed per reference image are priced before those are assembled, so `estimated_points` is the upper bound (size the balance by it and a run never dies half-way) and `typical_points` is the usual cost; fixed-price models return the two equal. Insufficient balance returns 402 — nothing half-runs and the account never goes negative.\n\nAuth: exchange your API key at `POST /v1/agent/token` for a 15-minute bearer token.\n\nGenerated from the @starreel/mcp v0.1.141 tool surface (operationIds match MCP tool names 1:1)."
7
7
  },
8
8
  "servers": [
9
9
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@starreel/mcp",
3
- "version": "0.1.140",
3
+ "version": "0.1.141",
4
4
  "mcpName": "ai.starreel/starreel",
5
5
  "description": "StarReel MCP server — drive the AI short-drama production pipeline (script → storyboards → frames → video → final cut) from Claude, Cursor, or any MCP client",
6
6
  "license": "MIT",
package/server.json CHANGED
@@ -2,13 +2,13 @@
2
2
  "$schema": "https://static.modelcontextprotocol.io/schemas/2025-09-29/server.schema.json",
3
3
  "name": "ai.starreel/starreel",
4
4
  "description": "Turn a script into a finished, downloadable short-drama episode — via MCP or REST.",
5
- "version": "0.1.140",
5
+ "version": "0.1.141",
6
6
  "websiteUrl": "https://starreel.ai",
7
7
  "packages": [
8
8
  {
9
9
  "registryType": "npm",
10
10
  "identifier": "@starreel/mcp",
11
- "version": "0.1.140",
11
+ "version": "0.1.141",
12
12
  "transport": {
13
13
  "type": "stdio"
14
14
  },