-
漫剧生成 MCP 工具
输入一段漫剧剧本,自动拆分成镜,调用智谱 CogVideoX 生成每个分镜的视频片段,返回各分镜视频下载地址。可作为 MCP 服务端接入任意支持 MCP 的 Agent(LangChain、Dify、Cline、Cherry Studio 等)。
功能
- 输入剧本 → 自动分镜 → 逐镜生成视频
- 支持 DeepSeek 智能分镜(未配置时自动降级为兜底拆分)
- 视频生成基于智谱 CogVideoX(cogvideox-3)
- 异步任务模式:提交 → 轮询 → 返回视频 URL
环境变量
变量 必填 说明 SEEDANCE_API_KEY 是 智谱开放平台 API Key(open.bigmodel.cn) SEEDANCE_BASE_URL 是 智谱接口地址:https://open.bigmodel.cn/api/paas/v4 SEEDANCE_MODEL 否 模型名,默认 cogvideox-3 OPENAI_API_KEY 否 DeepSeek 分镜用 OPENAI_BASE_URL 否 DeepSeek 地址:https://api.deepseek.com/v1 使用
pip install <包名>
配置到支持 MCP 的客户端(如 Cherry Studio / Cline):
{ "mcpServers": { "drama-mcp": { "command": "uvx", "args": ["<包名>"] } } }
工具
generate_drama(script, shot_count):输入剧本和分镜数(默认 3),返回每个分镜的视频下载地址(JSON)。
说明
- 每个分镜最长 15 秒,长视频需拆多个分镜。
- 生成的视频 URL 带时效,拿到后请尽快保存。
Metadata
Release files for cogvideox-drama-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cogvideox_drama_mcp-0.1.0.tar.gz | 5.6 kB | Without provenance | Details for cogvideox_drama_mcp-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cogvideox_drama_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for cogvideox_drama_mcp-0.1.0-py3-none-any.whl |
Total release size: 13.4 kB
Release files / cogvideox_drama_mcp-0.1.0.tar.gz
| Download URL | cogvideox_drama_mcp-0.1.0.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c4b41686842f8b82732aa3100cdbd444bf402eca0388940badd391a0c91d847
|
|
BLAKE2b-256 checksum How to use checksums |
2f8253dc152ec263e314b62594a6d9739a9e5ab15e887fe2e3b4905779eb3eb2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.11
|
Release files / cogvideox_drama_mcp-0.1.0-py3-none-any.whl
| Download URL | cogvideox_drama_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
042d11410e9f47eaa8ff89875ebc056f730dd4b5cadd86910c85e3f46cf45f20
|
|
BLAKE2b-256 checksum How to use checksums |
bbd7c9d2b7dad425462622dcf50894ce0b23551a4bb2fdd4b2161efa48f9cf29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.11
|
Security for cogvideox-drama-mcp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.