@starreel/mcp 0.1.0 → 0.1.2
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/tools/produce.js +35 -1
- package/package.json +3 -2
- package/server.json +3 -3
package/dist/tools/produce.js
CHANGED
|
@@ -18,13 +18,47 @@ const CONFIRM_HINT = '⚠️ 批量报价确认流程:先调对应的 quote_*
|
|
|
18
18
|
'用户明确同意后,才用返回的 quote_id 调本工具。不要擅自确认。';
|
|
19
19
|
export function registerProduceTools(server, client) {
|
|
20
20
|
// ---------- 建剧 ----------
|
|
21
|
+
// 参数=「项目设定 / 新建项目」页对外能设的全部通用字段(不含内部产线开关)。
|
|
22
|
+
// 尤其 setting_brief(世界观 Brief)与 ethnicity:它们是全链 ERA LOCK / 族裔单一真相源,
|
|
23
|
+
// 建剧时设好,下游剧本改写·分镜·所有出图都据它约束——不设则按剧本语言自动推断(旧行为)。
|
|
21
24
|
server.tool('create_drama', '新建一部短剧(剧壳)。按 total_episodes 自动建对应数量的空集,返回 drama_id 与各集 episode_id。免费。', {
|
|
22
25
|
title: z.string().describe('剧名'),
|
|
23
26
|
total_episodes: z.number().int().min(1).max(200).optional().describe('集数(默认 1),自动建 N 个空集'),
|
|
24
27
|
genre: z.string().optional().describe('题材,如 都市/悬疑/古装'),
|
|
25
28
|
style: z.string().optional().describe('风格描述'),
|
|
26
29
|
description: z.string().optional(),
|
|
27
|
-
|
|
30
|
+
aspect_ratio: z
|
|
31
|
+
.enum(['9:16', '16:9', '1:1', '4:5', '4:3', '21:9'])
|
|
32
|
+
.optional()
|
|
33
|
+
.describe('画幅比例(默认 9:16 竖屏短剧)'),
|
|
34
|
+
video_resolution: z
|
|
35
|
+
.enum(['480p', '720p', '1080p', '4k'])
|
|
36
|
+
.optional()
|
|
37
|
+
.describe('视频分辨率(默认 720p;成本随分辨率上升)'),
|
|
38
|
+
setting_brief: z
|
|
39
|
+
.string()
|
|
40
|
+
.optional()
|
|
41
|
+
.describe('世界观 Brief:一段话锁定语言/文化/时代/地点,作为 AI 强制约束(ERA LOCK),' +
|
|
42
|
+
'影响剧本改写·分镜·所有出图。不设则按剧本语言与文化自动推断。'),
|
|
43
|
+
ethnicity: z
|
|
44
|
+
.enum([
|
|
45
|
+
'east_asian', 'southeast_asian', 'south_asian', 'central_asian',
|
|
46
|
+
'caucasian', 'middle_eastern', 'african', 'latin_american',
|
|
47
|
+
'native_american', 'aboriginal_australian', 'mixed', 'custom',
|
|
48
|
+
])
|
|
49
|
+
.optional()
|
|
50
|
+
.describe('全剧角色族裔锁(单一真相源)。不设=按剧本自动推断;custom 时用 ethnicity_note 写自由描述'),
|
|
51
|
+
ethnicity_note: z.string().optional().describe("ethnicity='custom' 时的自由文本(如 北欧/波斯);其余取值忽略"),
|
|
52
|
+
}, async (args) => {
|
|
53
|
+
const { ethnicity, ethnicity_note, ...rest } = args;
|
|
54
|
+
const body = { ...rest };
|
|
55
|
+
// 结构化族裔锁:后端认 { code, note? };custom 无 note 派生不出锚,这里如实带上。
|
|
56
|
+
if (ethnicity) {
|
|
57
|
+
body.ethnicity_lock =
|
|
58
|
+
ethnicity === 'custom' ? { code: 'custom', note: ethnicity_note ?? '' } : { code: ethnicity };
|
|
59
|
+
}
|
|
60
|
+
return jsonResult(await client.producePost('/dramas', body));
|
|
61
|
+
});
|
|
28
62
|
// ---------- 灌本 ----------
|
|
29
63
|
server.tool('set_script', '给某一集设置可拍剧本文本(拆镜的输入)。免费。', {
|
|
30
64
|
episode_id: z.number().int().positive(),
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@starreel/mcp",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"mcpName": "ai.starreel/starreel",
|
|
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",
|
|
5
6
|
"license": "MIT",
|
|
6
7
|
"type": "module",
|
|
7
8
|
"bin": {
|
package/server.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-09-29/server.schema.json",
|
|
3
3
|
"name": "ai.starreel/starreel",
|
|
4
|
-
"description": "
|
|
5
|
-
"version": "0.1.
|
|
4
|
+
"description": "Turn a script into a finished, downloadable short-drama episode — via MCP or REST.",
|
|
5
|
+
"version": "0.1.2",
|
|
6
6
|
"websiteUrl": "https://starreel.ai",
|
|
7
7
|
"packages": [
|
|
8
8
|
{
|
|
9
9
|
"registryType": "npm",
|
|
10
10
|
"identifier": "@starreel/mcp",
|
|
11
|
-
"version": "0.1.
|
|
11
|
+
"version": "0.1.2",
|
|
12
12
|
"transport": { "type": "stdio" },
|
|
13
13
|
"environmentVariables": [
|
|
14
14
|
{
|