npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@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

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

接入

  1. 在 StarReel → 设置 → API Key 创建一把 produce scope 的 key(srk_live_...,只展示一次)。
  2. 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

一键安装: Install in Cursor Install in VS Code

全客户端接入

要求 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_storyboardsgenerate_storyboardsget_storyboards(审阅) | | 出首帧 | quote_framesgenerate_frames | | 出视频 | quote_videosgenerate_videos(大额,报价与扣费同函数) | | 成片 | compose_episode(免费终拼) → get_final_cut(拿 COS 下载链接) |

批量报价确认:每个 quote_* 返回预估点数,agent 应把点数告诉你、你同意后才用返回的 quote_idgenerate_*。整集一次执行,不逐图打扰。长任务后台异步,用 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 |