@starreel/mcp
v0.1.57
Published
StarReel MCP server — drive the AI short-drama production pipeline (script → storyboards → frames → video → final cut) from Claude, Cursor, or any MCP client
Maintainers
Readme
@starreel/mcp
StarReel 的 MCP 服务器 —— 把 AI 短剧编排产线暴露给 Claude Code / Cursor / 任何 MCP 客户端:让 AI agent 一句话从剧本跑到可下载的成片。
完整接入文档:https://api.shortreelai.com/docs/mcp
给 AI agent 的操作 Skill 与纪律:本包内 SKILL.md —— 一份平台无关的
操作手册(完整产线顺序 + 十条接入纪律 + 失败处理决策)。支持 Skill 的客户端会自动加载;
不能 npx 的平台(Coze / Dify / GPTs / 自研 agent)可把它整段贴进 system prompt。
也可用 skills CLI 一条命令装成独立 agent skill
(Claude Code / Codex / Cursor / OpenCode 等 70+ 工具):
npx skills add waydaxp/starreel-mcp接入
- 在 StarReel → 设置 → API Key 创建一把
producescope 的 key(srk_live_...,只展示一次)。 - Claude Code:
claude mcp add starreel -e STARREEL_API_KEY=srk_live_xxx -- npx -y @starreel/mcp也可装 Claude Code 插件——MCP server + agent skill 一步到位
(先在 shell 里 export STARREEL_API_KEY=srk_live_xxx):
/plugin marketplace add waydaxp/starreel-mcp
/plugin install starreel@starreel全客户端接入
要求 Node ≥ 18(能跑 npx)。下面这段标准配置在
Cursor · Windsurf · Cline / Roo Code · Claude Desktop · Trae · Cherry Studio ·
Chatbox · DeepChat 及任何读 mcpServers JSON 的客户端里通用:
{
"mcpServers": {
"starreel": {
"command": "npx",
"args": ["-y", "@starreel/mcp"],
"env": { "STARREEL_API_KEY": "srk_live_xxx" }
}
}
}格式不同的客户端:
- Codex CLI —
~/.codex/config.toml:
[mcp_servers.starreel]
command = "npx"
args = ["-y", "@starreel/mcp"]
env = { "STARREEL_API_KEY" = "srk_live_xxx" }- VS Code(Copilot agent 模式) —
.vscode/mcp.json或用户级mcp.json,外层键是servers而非mcpServers,内容同标准配置。 - Gemini CLI —
~/.gemini/settings.json,直接放标准配置。 - 跑不了 npx 的平台(扣子 Coze / Dify / GPTs / 自研 agent) — 走 REST(
/v1/produce/*)+ 把SKILL.md整段贴进 system prompt,见接入文档。
产线工具(从剧本到成片)
一集短剧的完整链路,每个花钱阶段先报价、你确认后才执行:
| 阶段 | 工具 |
|---|---|
| 建剧 | create_drama(建剧壳+自动建集,返回 episode_id) |
| 灌本 | set_script |
| 拆镜 | quote_storyboards → generate_storyboards → get_storyboards(审阅) |
| 出首帧 | quote_frames → generate_frames |
| 出视频 | quote_videos → generate_videos(大额,报价与扣费同函数) |
| 成片 | compose_episode(免费终拼) → get_final_cut(拿 COS 下载链接) |
批量报价确认:每个 quote_* 返回预估点数,agent 应把点数告诉你、你同意后才用返回的
quote_id 调 generate_*。整集一次执行,不逐图打扰。长任务后台异步,用 get_storyboards/
get_final_cut 轮询到完成。
计费与安全
- 预付制:必须有余额才能生成,账户永不为负;成本在调厂商之前预授权,不够返回 402。
- 视频报价 == 实际扣费(同一函数);终拼(成片)免费。
- API key 只存哈希;换取的是 15 分钟短期令牌;泄露在设置页吊销即失效,不影响网页登录。
REST API(OpenAPI)
想直接裸调 REST?整个产线门面见 openapi.json
(OpenAPI 3.1,100+ 操作,从本包工具面生成,operationId 与 MCP 工具名一一对应)。
在线渲染版:waydaxp.github.io/starreel-mcp;
也可用它给任意语言生成带类型客户端(如 npx openapi-typescript)。
环境变量
| 变量 | 必填 | 默认 |
|---|---|---|
| STARREEL_API_KEY | ✅ | — |
| STARREEL_AUTH_BASE | | https://api.shortreelai.com |
