Skip to main content
Glama
zh-spoken-video-forge

zh-spoken-video-forge

by qfdalian

zh-spoken-video-forge

Chinese vertical short-video toolchain for AI agents — 中文竖屏短视频工厂(给 AI agent 用的能力包)。

Give an agent the three things it usually lacks: what it will cost, how to write a script that actually works, and the numeric acceptance bar the finished video must clear.

Current version: read-only, free, no GPU, no API key, no account. Production tools (render_vertical / produce_vertical_short) return status=not_enabled — honest, never silent.

中文速览

给 AI agent 用的中文竖屏短视频能力包:先算成本、再出生成规格、最后判卷。

  • ★ 推荐三步闭环:plan_spec(出规格)→ 调用方 agent 自己写台词分镜 → validate_plan(服务当裁判)

  • 服务不代写:MCP 工具内部再调一次 LLM 会双份烧 token,且独立进程常常没有可用凭据

  • 统一返回体 {status, artifacts[], qa{}, cost{}, next_actions[], agent_card}, qa 带阈值判定 + 下一步修复建议 ⇒ agent 能自主闭环重试

  • 硬约束跑前定死,不许事后放宽:台词密度 4.0–6.0 字/秒、声音事件必须写「名词+动作+触感材质」

Related MCP server: hooklayer

Install

{
  "mcpServers": {
    "zh-spoken-video-forge": {
      "command": "py",
      "args": ["-3", "<abs-path>/mcp/server.py"],
      "env": {"PYTHONUTF8": "1"}
    }
  }
}

Or run it directly: py -3 mcp/server.py (stdio) / py -3 mcp/server.py --http 8848 (local http).

Requires Python 3.10+ and pip install -r requirements.txt (the mcp SDK).

Skill file for 20+ agents: SKILL.md — copy it into your agent's skills directory (Claude Code / Cursor / Codex CLI / Gemini CLI / GitHub Copilot / MiniMax Code …).

Tools

Tool

Purpose

plan_spec

★ recommended entry: prompt template + hard constraints + output schema for the calling agent to write against

validate_plan

★ judge: line density (4.0–6.0 chars/s), speakability, sound-event strength

estimate_cost

segmented cost + breakeven views (self-contained cost model)

plan_shorts

direct LLM generation — channel disabled by default (returns not_available)

acceptance_criteria

the full numeric acceptance bar (audio / lip-sync / video spec / delivery / compliance)

production_capacity

production window & daily cap, with a derivation self-check

capability_card

capabilities, pricing shape, read/write boundary

render_vertical, produce_vertical_short

not enabled in this version (status=not_enabled)

Acceptance criteria (the part that matters)

Group

Criterion

Threshold

Audio

level

raw mean ≥ −30 dB

Audio

speech band

300–3400 Hz energy ratio ≥ 10%

Audio

true peak

≤ −1 dBTP

Audio

event-sound writing

concrete noun + action + tactile material (nouns alone fail)

Lip-sync

envelope correlation (v4)

hard floor 0.41; compare horizontally only (absolute values drift with style)

Video

portrait spec

768×1344 @ 24 fps

Video

frame rule

n % 17 == 5; the 15 s tier = 362 frames = 15.083333 s

Delivery

master

10.000 s / 768×1360 / h264+aac / not silent / first frame anchored

Compliance

labels

AI-generated + fictional performance + marketing, plus a 5 s on-screen label

Details and measurement provenance: docs/CRITERIA.md.

Configuration

Copy the shipped example and edit it:

cp config/paths.example.json config/paths.local.json
  • cost_params — backfill your own measured values (the shipped ones are the author's line numbers).

  • capacity — your production window and daily cap.

  • pricing — your own price shape.

  • llm.enabled — leave false unless you have a key in the env var named by llm.api_key_env.

Tests

py -3 tests/smoke_test.py       # tool layer
py -3 tests/parity_test.py      # cost model self-consistency (口径对照)
py -3 tests/mcp_client_test.py  # real MCP stdio session: list + call tools

License

MIT — see LICENSE.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers