Short Video Agent Kit

io.github.davidmosiah由 GitHub 账号 davidmosiah 发布v0.1.7更新于 Oct 24, 2026

Provider-neutral short-form AI video toolkit for agents: Sora, Gemini Veo, xAI/Grok, Seedance.

已验证STDIO仅桌面媒体与设计AI 与机器学习

概览

AI 生成的概览

本地 MCP 服务器兼命令行工具,让助手为 Sora、Gemini Veo、xAI/Grok 和 Seedance 构建并校验短视频生成请求,默认试运行。

可以做什么
检查各视频服务商的就绪状态和已配置的 API 密钥(不打印密钥),并返回面向多种 MCP 客户端的安装指引以及提示词、输出和参考素材的隐私边界。构建针对具体服务商的视频请求载荷(端点、模型、提示词、时长、画幅比例),不消耗额度。通过 OpenAI/Sora、Gemini Veo、xAI/Grok 或 Seedance 生成竖屏短视频,默认试运行,仅在明确开启时才实际调用。将结果写入用户指定的本地输出路径。
适用场景
当助手需要一个与服务商无关的统一接口来规划、校验并可选地渲染竖屏 AI 短视频,并希望在付费调用前先有安全的试运行步骤时使用。
运行要求
通过 npm 包 short-video-agent-kit 以 stdio 在本地运行(需要 Node.js);另有仅限本机回环地址的可选 HTTP 模式。服务商密钥为可选项,仅实际生成时需要:OPENAI_API_KEY、GEMINI_API_KEY、XAI_API_KEY(README 还提到 Seedance 使用 PIAPI_KEY 或 SEEDANCE_API_KEY)。实际调用服务商需要网络访问。
安装前请注意
实际生成会调用付费视频服务商并消耗额度;需通过 --live、MCP 的 live=true 或 SHORT_VIDEO_DRY_RUN=false 开启,因此在确认付费调用前应保持试运行。服务商 API 密钥从环境变量读取,应避免纳入版本控制。参考图片必须为用户自有或已获授权,提示词和输出会发送给所选第三方服务商。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Short Video Agent Kit,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Short Video Agent Kit

One agent-first CLI + MCP for short-form AI video.
Sora · Veo · xAI · Seedance — dry-run by default, paid generation when explicitly enabled.

[npm version] [npm downloads] [License MIT] [Built for MCP]

[GitHub stars] [CI status] [Part of the Delx agent stack] [Category]

⭐ If this agent-first tool helps your workflow, please star the repo. Stars make this tooling easier for other builders to discover and help Delx keep shipping open infrastructure.
🧱 Part of the Delx agent stack — 15 open-source MCP servers across body, reach and coordination.


HTTP (v2 stateless)

Default is stdio. Optional Streamable HTTP — no session id, JSON responses, loopback only:

bash
npx -y -p short-video-agent-kit short-video-mcp --http# GET  http://127.0.0.1:3033/health# POST http://127.0.0.1:3033/mcp   (sessionless)

Env: SHORT_VIDEO_MCP_HOST, SHORT_VIDEO_MCP_PORT, SHORT_VIDEO_MCP_TRANSPORT=http.

Provider-neutral short-form AI video toolkit for agents. It gives Codex, Claude, Cursor, Hermes, OpenClaw and other MCP clients one interface for building dry-run payloads and, when explicitly enabled, generating vertical video through Sora/OpenAI, Gemini Veo, xAI/Grok and Seedance/PiAPI-style providers.

Use it when an agent needs one safe interface for prompt-to-video payload validation and optional paid generation across multiple providers.

Why It Is Agent-First

Video generation can be expensive and prompt-sensitive. This package makes agents start with safe steps:

  • inspect provider readiness
  • return privacy boundaries
  • build payloads without spending credits
  • require --live or SHORT_VIDEO_DRY_RUN=false before provider calls
  • keep prompts and outputs in local user-controlled paths

Install

bash
npm install -g short-video-agent-kit

Or run directly:

bash
npm exec --yes --package=short-video-agent-kit -- short-video-agent-kit doctor

Quickstart

No API key needed to try it — generation is dry-run by default, so the kit returns the exact provider-neutral plan it would send without spending a credit.

Build a Sora plan for an 8-second vertical teaser:

bash
short-video-agent-kit generate \  --provider openai_sora \  --prompt "Vertical 8-second product teaser for a minimalist water bottle, soft studio light, slow dolly-in" \  --output ./output/teaser.mp4

Real output (no provider call, no credits spent):

json
{  "ok": true,  "dry_run": true,  "next_step": "Pass --live or set SHORT_VIDEO_DRY_RUN=false to call the provider API.",  "provider": "openai_sora",  "endpoint": "POST /v1/videos",  "payload": {    "model": "sora-2",    "prompt": "Vertical 8-second product teaser for a minimalist water bottle, soft studio light, slow dolly-in",    "seconds": "8",    "size": "720x1280"  }}

Same prompt, different provider — the plan re-targets the endpoint and parameter shape for you. payload returns just the plan (no dry_run wrapper):

bash
short-video-agent-kit payload --provider gemini_veo --prompt "Same teaser, 9:16, cinematic"
json
{  "provider": "gemini_veo",  "endpoint": "POST /models/{model}:predictLongRunning",  "payload": {    "instances": [      {        "prompt": "Same teaser, 9:16, cinematic"      }    ],    "parameters": {      "aspectRatio": "9:16",      "durationSeconds": 8    }  }}

Check which providers are wired up (keys are detected, never printed):

bash
short-video-agent-kit doctor
json
{  "ok": false,  "dry_run": true,  "providers": {    "openai_sora": { "configured": false, "env_keys": ["OPENAI_API_KEY"], "models": ["sora-2"] },    "gemini_veo": { "configured": false, "env_keys": ["GEMINI_API_KEY", "GOOGLE_API_KEY"], "models": ["veo-3.1-fast-generate-preview"] },    "xai_grok": { "configured": false, "env_keys": ["XAI_API_KEY"], "models": ["grok-imagine-video", "grok-imagine-image"] },    "seedance_piapi": { "configured": false, "env_keys": ["PIAPI_KEY", "SEEDANCE_API_KEY"], "models": ["seedance-2-fast-preview"] }  },  "output_dir": "./output",  "next_steps": [    "Set one provider key: OPENAI_API_KEY, GEMINI_API_KEY, XAI_API_KEY or PIAPI_KEY."  ]}

When you are ready to actually render, set a provider key and re-run generate with --live (or SHORT_VIDEO_DRY_RUN=false).

CLI

bash
short-video-agent-kit manifest --client codexshort-video-agent-kit doctorshort-video-agent-kit privacy-auditshort-video-agent-kit payload --provider gemini_veo --prompt-file prompt.txtshort-video-agent-kit generate --provider openai_sora --prompt "Vertical product teaser" --output ./output/teaser.mp4short-video-agent-kit generate --provider openai_sora --prompt-file prompt.txt --output ./output/teaser.mp4 --live

Supported providers:

  • openai_sora
  • gemini_veo
  • xai_grok
  • seedance_piapi

MCP

bash
short-video-mcp

HTTP transport:

bash
SHORT_VIDEO_MCP_TRANSPORT=http short-video-mcp

Hermes-style config:

yaml
mcp_servers:  short_video:    command: npx    args: ["-y", "short-video-agent-kit"]    sampling:      enabled: false

Recommended first calls:

  1. short_video_connection_status
  2. short_video_privacy_audit
  3. short_video_build_payload
  4. short_video_generate

Agent Surfaces

ToolPurpose
short_video_agent_manifestInstall/runtime guidance for Codex, Claude, Cursor, Hermes and OpenClaw
short_video_connection_statusProvider readiness without API keys
short_video_privacy_auditPrompt, output and reference-asset boundaries
short_video_build_payloadProvider-specific payload without paid generation
short_video_generateDry-run by default, live only when explicitly requested

Copy-Paste Agent Prompt

text
Use short-video-agent-kit. First call short_video_connection_status and short_video_privacy_audit.Build the payload before generation. Only set live=true if I explicitly confirm a paid provider call.

Configuration

Copy .env.example to .env and fill only the provider keys you plan to use. .env, output/ and .agent-data/ are ignored by Git.

Safety Model

  • Dry-run is the default.
  • API keys are never returned by tools.
  • Paid generation requires --live, MCP live=true, or SHORT_VIDEO_DRY_RUN=false.
  • Reference images must be user-owned or licensed.
  • Outputs are written to local paths controlled by the user.

Development

bash
npm installnpm testnpm run check

📧 Contact & Support

来源:README.md,提交 09d2fa5

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.7最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分