Skip to main content

阿里云百炼-通义万相视频编辑统一模型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密钥

  1. 访问阿里云百炼控制台
  2. 创建应用并获取API Key
  3. 设置环境变量或在启动时传入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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_server_bailian_video_synthesis-1.0.3.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file mcp_server_bailian_video_synthesis-1.0.3.tar.gz.

File metadata

File hashes

Hashes for mcp_server_bailian_video_synthesis-1.0.3.tar.gz
Algorithm Hash digest
SHA256 39ed97ccdd96bd29d7e487323003104219b582912189295b36b91fe246c3442e
MD5 34c11c5436373265ae0e8a6a347ad657
BLAKE2b-256 dda2b5905fbb377ef6fd7375fc59f5a780bafbb0b883c0a5644977d392101d48

See more details on using hashes here.

File details

Details for the file mcp_server_bailian_video_synthesis-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_bailian_video_synthesis-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 73b57b813590864f1ff10662e0481a42f8faeb1428b389bc558368638a941704
MD5 3e69309706541c860d87e6ac8842bb90
BLAKE2b-256 1a236c3a2605da5ad6adae841572fd36e14a68a6beb53eb1a828749dcd90d1a0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page