阿里云百炼-通义万相视频编辑统一模型MCP服务器
Project description
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
相关链接
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_server_bailian_video_synthesis-1.0.4.tar.gz.
File metadata
- Download URL: mcp_server_bailian_video_synthesis-1.0.4.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34c1fb47db0f78b61c2870c4239ac408c706628a6d7f01210e62fc03e025300d
|
|
| MD5 |
b8a368faea70fa81e3cd53c48961b8bc
|
|
| BLAKE2b-256 |
2ab7d189aa6d4f34dafb5e15ab4017c6f637640ac50051135c82a5d62f202ff3
|
File details
Details for the file mcp_server_bailian_video_synthesis-1.0.4-py3-none-any.whl.
File metadata
- Download URL: mcp_server_bailian_video_synthesis-1.0.4-py3-none-any.whl
- Upload date:
- Size: 14.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d810c1a8b031dcc20368289638aa544563fe51f01ad1f15116e4595ced11a259
|
|
| MD5 |
36b8364cb7e1dd53751d5b5944fb5e40
|
|
| BLAKE2b-256 |
4803cab8cf12973f72def036fa23e0c6813583ee145569341942147b9fc2dacf
|