MCP Server Bailian Video Synthesis
阿里云百炼-通义万相视频编辑统一模型MCP服务器
功能特性
- 多图参考视频生成: 基于多张参考图片生成视频
- 视频重绘: 对现有视频进行重新绘制
- 局部编辑: 对视频的特定区域进行编辑
- 视频延展: 延长视频时长
- 视频画面扩展: 扩展视频画面范围
- 异步任务处理: 支持创建任务和查询结果的异步操作
- 易于集成: 标准MCP协议,可与Claude Desktop等工具无缝集成
安装
从PyPI安装
pip install mcp-server-bailian-video-synthesis
从源码安装
git clone <repository-url>
cd mcp_server_bailian_video_synthesis
pip install -e .
配置
获取API密钥
- 访问阿里云百炼控制台
- 创建应用并获取API Key
- 设置环境变量或在启动时传入API Key
环境变量设置
export DASHSCOPE_API_KEY="your-api-key-here"
使用方法
启动MCP服务器
# 使用uvx启动(推荐)
uvx mcp-server-bailian-video-synthesis
# 或者直接传入API Key
uvx mcp-server-bailian-video-synthesis --api-key your-api-key-here
Claude Desktop配置
在Claude Desktop的配置文件中添加:
{
"mcpServers": {
"bailian-video-synthesis": {
"command": "uvx",
"args": ["mcp-server-bailian-video-synthesis"],
"env": {
"DASHSCOPE_API_KEY": "your-api-key-here"
}
}
}
}
支持的工具
创建任务工具
create_task_image_reference: 多图参考视频生成create_task_video_repainting: 视频重绘create_task_video_edit: 局部编辑create_task_video_extension: 视频延展create_task_video_expansion: 视频画面扩展
查询结果工具
get_task_result: 根据任务ID查询处理结果
错误处理
服务器会自动处理以下错误情况:
- API密钥无效或缺失
- 网络连接问题
- 参数验证错误
- 任务处理失败
开发
安装开发依赖
pip install -e ".[dev]"
运行测试
pytest
代码格式化
black .
isort .
许可证
MIT License
相关链接
Metadata
Release files for mcp-server-bailian-video-synthesis 1.0.4
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 | |
|---|---|---|---|---|
| mcp_server_bailian_video_synthesis-1.0.4.tar.gz | 17.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mcp_server_bailian_video_synthesis-1.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.5 kB
Release files / mcp_server_bailian_video_synthesis-1.0.4.tar.gz
| Download URL | mcp_server_bailian_video_synthesis-1.0.4.tar.gz |
|---|---|
| Size | 17.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
34c1fb47db0f78b61c2870c4239ac408c706628a6d7f01210e62fc03e025300d
|
|
BLAKE2b-256 checksum How to use checksums |
2ab7d189aa6d4f34dafb5e15ab4017c6f637640ac50051135c82a5d62f202ff3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / mcp_server_bailian_video_synthesis-1.0.4-py3-none-any.whl
| Download URL | mcp_server_bailian_video_synthesis-1.0.4-py3-none-any.whl |
|---|---|
| Size | 14.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d810c1a8b031dcc20368289638aa544563fe51f01ad1f15116e4595ced11a259
|
|
BLAKE2b-256 checksum How to use checksums |
4803cab8cf12973f72def036fa23e0c6813583ee145569341942147b9fc2dacf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for mcp-server-bailian-video-synthesis 1.0.4
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.