@starreel/mcp 0.1.132 → 0.1.133

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/SKILL.md CHANGED
@@ -1103,7 +1103,7 @@ to close") tells the vendor to fit that entire sequence into each 3-second shot.
1103
1103
  - **Audio**: `generate_tts` (required before final cut), `clone_voice`,
1104
1104
  `design_voice` → `get_voice_design` → `save_designed_voice` (no sample needed),
1105
1105
  `speak_with_voice`, `set_character_voice`, `list_voices`, `delete_voice`,
1106
- `generate_bgm` (optional `prompt` steers the music; read `get_bgm_prompt_guide` first; optional `director` hard-locks mood / instruments / bpm / tonality for the whole episode or per act — call with `plan_only=true` first to see the acts),
1106
+ `generate_bgm` (optional `prompt` steers the music; read `get_bgm_prompt_guide` first; optional `director` hard-locks mood / instruments / bpm / tonality for the whole episode or per act — call the free read-only `get_bgm_plan` first to see the acts),
1107
1107
  `get_bgm_prompt_guide`, `replace_shot_dialogue`, `revoice_narration`
1108
1108
  - **Mix** (free; settings only — `compose_episode` again to hear them, `rerender_episode`
1109
1109
  reuses the old timeline): whole drama via `update_project_settings`
@@ -240,7 +240,7 @@ export const PIPELINE = [
240
240
  },
241
241
  {
242
242
  step: '9 音频',
243
- tools: ['assign_voices', 'generate_tts(仅 use_clip_audio=false)', 'clone_voice', 'generate_bgm', 'get_bgm_status', 'generate_sfx', 'lipsync_shot', 'lipsync_episode', 'get_lipsync_status', 'set_shot_name_card'],
243
+ tools: ['assign_voices', 'generate_tts(仅 use_clip_audio=false)', 'clone_voice', 'generate_bgm', 'get_bgm_plan', 'get_bgm_status', 'generate_sfx', 'lipsync_shot', 'lipsync_episode', 'get_lipsync_status', 'set_shot_name_card'],
244
244
  billing: '混合',
245
245
  note: '默认视频原声跳过 TTS 三步(pipeline-status 里显示 not_required,不是没做完)。',
246
246
  },
@@ -290,7 +290,7 @@ export const OPTIONAL_BOOSTS = [
290
290
  { what: '口型同步', tool: 'lipsync_episode', when: 'TTS 配音项目需要对口型时' },
291
291
  { what: '海报 / 封面', tool: 'generate_episode_poster', when: '成片后;`generate_drama_poster` / `generate_cover` 同族' },
292
292
  { what: '音效 / 特效 / 转场(本地库匹配)', tool: 'generate_sfx', when: '免费;`generate_effects` / `generate_transitions` 同族' },
293
- { what: '配乐', tool: 'generate_bgm', when: '按整集情绪弧线生成;终拼自动接管。客户想指定音乐方向就带 prompt(整集一条),写法先读 `get_bgm_prompt_guide`(免费);不带 prompt 就是全自动。客户给了明确参数(情绪/主奏配器/BPM/大小调)用 director 锁定(硬约束,可按幕;按幕前先 plan_only=true 看分幕)' },
293
+ { what: '配乐', tool: 'generate_bgm', when: '按整集情绪弧线生成;终拼自动接管。客户想指定音乐方向就带 prompt(整集一条),写法先读 `get_bgm_prompt_guide`(免费);不带 prompt 就是全自动。客户给了明确参数(情绪/主奏配器/BPM/大小调)用 director 锁定(硬约束,可按幕;按幕前先 get_bgm_plan 免费看分幕)' },
294
294
  { what: '字幕翻译', tool: 'translate_subtitles', when: '出海;双语烧录在项目设定里开' },
295
295
  ];
296
296
  export const BILLING = {
@@ -1488,7 +1488,7 @@ export function registerProduceTools(server, client) {
1488
1488
  '★director 可选=结构化锁定(硬约束):逐项指定 mood 情绪 / instruments 主奏配器 / bpm / tonality 大小调,' +
1489
1489
  '生成时**强制覆盖**配乐总监的判断(不像 prompt 只是方向,可能被护栏或 AI 取舍改写);没锁的项仍自动判断。' +
1490
1490
  '整集锁写在 director 顶层;只锁某一幕写进 director.acts[{act,…}](同名字段覆盖整集的)。' +
1491
- '幕是按情绪弧线自动分的:按幕锁之前先调一次 plan_only=true(免费,不生成)看本集分几幕、每幕覆盖哪些镜。' +
1491
+ '幕是按情绪弧线自动分的:按幕锁之前先调 get_bgm_plan(免费,只读)看本集分几幕、每幕覆盖哪些镜。' +
1492
1492
  '参数拼错(bpm 越界、调性不是 major/minor/modal、幕号不存在)会 400;配器里写人声/环境声会被丢掉并在 director_warnings 点名。' +
1493
1493
  '客户说「要慢一点、小调、用古筝」这类**明确参数**用 director;说「整体更压抑」这类**方向**用 prompt;两者可同时用。', {
1494
1494
  episode_id: z.number().int().positive(),
@@ -1498,18 +1498,19 @@ export function registerProduceTools(server, client) {
1498
1498
  director: z.object({
1499
1499
  ...BGM_LOCK_FIELDS,
1500
1500
  acts: z.array(z.object({
1501
- act: z.number().int().positive().describe('幕序号,从 1 开始(plan_only=true 可查)'),
1501
+ act: z.number().int().positive().describe('幕序号,从 1 开始(get_bgm_plan 可查)'),
1502
1502
  ...BGM_LOCK_FIELDS,
1503
1503
  }).strict()).optional().describe('按幕锁定;同名字段覆盖整集的,没写的继承整集'),
1504
1504
  // strict:拼错的字段(如 tempo)要报校验错误;zod 默认会静默剥掉它,转发出去的就是空锁 ⇒ 一次不受控的扣费生成
1505
1505
  }).strict().optional().describe('结构化锁定(硬约束)。顶层字段整集生效;不传=全由配乐总监判断'),
1506
- plan_only: z.boolean().optional().describe('true=只返回本集分幕(幕号/镜号范围/时长),不生成、不扣费'),
1507
- }, async ({ episode_id, prompt, prompt_mode, director, plan_only }) => jsonResult(await client.producePost(`/episodes/${episode_id}/bgm`, {
1506
+ }, async ({ episode_id, prompt, prompt_mode, director }) => jsonResult(await client.producePost(`/episodes/${episode_id}/bgm`, {
1508
1507
  ...(prompt === undefined ? {} : { prompt }),
1509
1508
  ...(prompt_mode ? { prompt_mode } : {}),
1510
1509
  ...(director ? { director } : {}),
1511
- ...(plan_only ? { plan_only: true } : {}),
1512
1510
  })));
1511
+ server.tool('get_bgm_plan', '查本集配乐会分成几幕(免费、只读、不生成):每幕的幕号 act、覆盖镜号 sb_from~sb_to、时长、平均情绪强度。' +
1512
+ '要用 generate_bgm 的 director.acts 按幕锁定参数时,先调这个拿幕号。' +
1513
+ '★这是独立的只读工具:看分幕**不要**去调 generate_bgm——那个一调就是扣费生成。', { episode_id: z.number().int().positive() }, async ({ episode_id }) => jsonResult(await client.produceGet(`/episodes/${episode_id}/bgm-plan`)));
1513
1514
  server.tool('set_episode_audio', '设置**本集**配乐音量(覆盖整剧设定,免费)。整剧统一的用 update_project_settings。' +
1514
1515
  '★只改设置:成片要 compose_episode 重新合成才变(rerender_episode 用旧时间线,不带上)。' +
1515
1516
  '★想调某一段配乐的音量或淡入淡出,用 list_bgm_cues + update_bgm_cue。', {
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.132",
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.132 tool surface (operationIds match MCP tool names 1:1)."
5
+ "version": "0.1.133",
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.133 tool surface (operationIds match MCP tool names 1:1)."
7
7
  },
8
8
  "servers": [
9
9
  {
@@ -3669,7 +3669,7 @@
3669
3669
  "post": {
3670
3670
  "operationId": "generate_bgm",
3671
3671
  "summary": "给整集生成/更换 AI 配乐(按情绪弧线)",
3672
- "description": "给整集生成/更换 AI 配乐(按情绪弧线)。后台异步,按用量后付不欠费。返回情绪弧线段数与预估耗时;用 get_bgm_status 轮询生成进度。★配乐生成/改动**不会自动进已有成片**——完成后必须重新 compose_episode(免费)才能听到;get_final_cut 的 bgm_stale=true 就是在提示这一步。别用 re-render(吃旧时间线,不含新配乐)。\n★prompt 可选:不传=全自动(和以前一样)。传了就是在自动结果上再加方向,整集一条,系统仍按情绪弧线分幕。怎么写见 get_bgm_prompt_guide(免费);要点=只写音乐维度(情绪气质/主奏配器/速度动态/厚薄空间/风格参照),别写剧情(「主角发现真相时要紧张」→写「紧张,节奏推进感强」)。只出纯器乐:要人声/歌词/拟音当乐器都不会生效,会在 prompt_warnings 里点名但**不拦生成**。\n★prompt_mode: guide(默认)=你的要求与平台专业护栏(时代与题材匹配/配器节制/高潮保规模/段间差异)一起生效;override=直通,跳过护栏,只保留技术底线(纯器乐/时长/可循环)。override 效果自负,**先用 guide 试**,确实拧不过来再换。不传 prompt 时沿用该集上次填的(get_bgm_status 可查)。\n★director 可选=结构化锁定(硬约束):逐项指定 mood 情绪 / instruments 主奏配器 / bpm / tonality 大小调,生成时**强制覆盖**配乐总监的判断(不像 prompt 只是方向,可能被护栏或 AI 取舍改写);没锁的项仍自动判断。整集锁写在 director 顶层;只锁某一幕写进 director.acts[{act,…}](同名字段覆盖整集的)。幕是按情绪弧线自动分的:按幕锁之前先调一次 plan_only=true(免费,不生成)看本集分几幕、每幕覆盖哪些镜。参数拼错(bpm 越界、调性不是 major/minor/modal、幕号不存在)会 400;配器里写人声/环境声会被丢掉并在 director_warnings 点名。客户说「要慢一点、小调、用古筝」这类**明确参数**用 director;说「整体更压抑」这类**方向**用 prompt;两者可同时用。",
3672
+ "description": "给整集生成/更换 AI 配乐(按情绪弧线)。后台异步,按用量后付不欠费。返回情绪弧线段数与预估耗时;用 get_bgm_status 轮询生成进度。★配乐生成/改动**不会自动进已有成片**——完成后必须重新 compose_episode(免费)才能听到;get_final_cut 的 bgm_stale=true 就是在提示这一步。别用 re-render(吃旧时间线,不含新配乐)。\n★prompt 可选:不传=全自动(和以前一样)。传了就是在自动结果上再加方向,整集一条,系统仍按情绪弧线分幕。怎么写见 get_bgm_prompt_guide(免费);要点=只写音乐维度(情绪气质/主奏配器/速度动态/厚薄空间/风格参照),别写剧情(「主角发现真相时要紧张」→写「紧张,节奏推进感强」)。只出纯器乐:要人声/歌词/拟音当乐器都不会生效,会在 prompt_warnings 里点名但**不拦生成**。\n★prompt_mode: guide(默认)=你的要求与平台专业护栏(时代与题材匹配/配器节制/高潮保规模/段间差异)一起生效;override=直通,跳过护栏,只保留技术底线(纯器乐/时长/可循环)。override 效果自负,**先用 guide 试**,确实拧不过来再换。不传 prompt 时沿用该集上次填的(get_bgm_status 可查)。\n★director 可选=结构化锁定(硬约束):逐项指定 mood 情绪 / instruments 主奏配器 / bpm / tonality 大小调,生成时**强制覆盖**配乐总监的判断(不像 prompt 只是方向,可能被护栏或 AI 取舍改写);没锁的项仍自动判断。整集锁写在 director 顶层;只锁某一幕写进 director.acts[{act,…}](同名字段覆盖整集的)。幕是按情绪弧线自动分的:按幕锁之前先调 get_bgm_plan(免费,只读)看本集分几幕、每幕覆盖哪些镜。参数拼错(bpm 越界、调性不是 major/minor/modal、幕号不存在)会 400;配器里写人声/环境声会被丢掉并在 director_warnings 点名。客户说「要慢一点、小调、用古筝」这类**明确参数**用 director;说「整体更压抑」这类**方向**用 prompt;两者可同时用。",
3673
3673
  "tags": [
3674
3674
  "episodes"
3675
3675
  ],
@@ -3743,7 +3743,7 @@
3743
3743
  "act": {
3744
3744
  "type": "integer",
3745
3745
  "exclusiveMinimum": 0,
3746
- "description": "幕序号,从 1 开始(plan_only=true 可查)"
3746
+ "description": "幕序号,从 1 开始(get_bgm_plan 可查)"
3747
3747
  },
3748
3748
  "mood": {
3749
3749
  "type": "array",
@@ -3786,9 +3786,6 @@
3786
3786
  }
3787
3787
  },
3788
3788
  "additionalProperties": false
3789
- },
3790
- "plan_only": {
3791
- "type": "boolean"
3792
3789
  }
3793
3790
  }
3794
3791
  }
@@ -3961,6 +3958,53 @@
3961
3958
  }
3962
3959
  }
3963
3960
  },
3961
+ "/episodes/{episode_id}/bgm-plan": {
3962
+ "get": {
3963
+ "operationId": "get_bgm_plan",
3964
+ "summary": "查本集配乐会分成几幕(免费、只读、不生成):每幕的幕号 act、覆盖镜号 sb_from~sb_to、时长、平均情绪强度",
3965
+ "description": "查本集配乐会分成几幕(免费、只读、不生成):每幕的幕号 act、覆盖镜号 sb_from~sb_to、时长、平均情绪强度。要用 generate_bgm 的 director.acts 按幕锁定参数时,先调这个拿幕号。★这是独立的只读工具:看分幕**不要**去调 generate_bgm——那个一调就是扣费生成。",
3966
+ "tags": [
3967
+ "episodes"
3968
+ ],
3969
+ "parameters": [
3970
+ {
3971
+ "name": "episode_id",
3972
+ "in": "path",
3973
+ "required": true,
3974
+ "schema": {
3975
+ "type": "integer",
3976
+ "exclusiveMinimum": 0
3977
+ }
3978
+ }
3979
+ ],
3980
+ "responses": {
3981
+ "200": {
3982
+ "description": "StarReel envelope",
3983
+ "content": {
3984
+ "application/json": {
3985
+ "schema": {
3986
+ "type": "object",
3987
+ "properties": {
3988
+ "code": {
3989
+ "type": "integer"
3990
+ },
3991
+ "message": {
3992
+ "type": "string"
3993
+ },
3994
+ "data": {
3995
+ "description": "Operation result payload"
3996
+ }
3997
+ }
3998
+ }
3999
+ }
4000
+ }
4001
+ },
4002
+ "402": {
4003
+ "description": "Insufficient prepaid balance (never overdrafts); response carries `needed` points"
4004
+ }
4005
+ }
4006
+ }
4007
+ },
3964
4008
  "/episodes/{episode_id}/bgm-status": {
3965
4009
  "get": {
3966
4010
  "operationId": "get_bgm_status",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@starreel/mcp",
3
- "version": "0.1.132",
3
+ "version": "0.1.133",
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.132",
5
+ "version": "0.1.133",
6
6
  "websiteUrl": "https://starreel.ai",
7
7
  "packages": [
8
8
  {
9
9
  "registryType": "npm",
10
10
  "identifier": "@starreel/mcp",
11
- "version": "0.1.132",
11
+ "version": "0.1.133",
12
12
  "transport": {
13
13
  "type": "stdio"
14
14
  },