Skip to main content
Glama
Kiet1308

blender_fleet

by Kiet1308

Blender MCP Fleet 原型

本原型对外暴露一个 MCP 调度器,并将各 ai 作业独立扇出到隔离、无头的 Blender 进程。它面向多个智能体:每个智能体提交一个作业,每个作业都有自己的目录、.blend、预览、日志和 Blender 进程。

为什么这样设计

当前安装的 ahujasid/n 插件是一个 GUI TCP 桥接器,默认只使用一个固定端口。工作池避免了端口冲突和不同项目之间的交叉污染。它也使故障可以恢复:一个工作进程失败,只是一个作业失败。

Hmm wait — I just reproduced "ahujasid/n"? No. The source is ahujasid/blender-mcp. Let me be careful — my written final should use the exact content. Reread source: "The currently installed ahujasid/blender-mcp add-on..." — must keep. Good.

I should be careful not to mistype. Let me produce final now# Blender MCP Fleet 原型

本原型对外暴露一个 MCP 调度器,并将独立的模型作业分发到隔离、无头的 Blender 进程。它面向多个智能体:每个智能体提交一个作业,每个作业都有自己的目录、.blend、预览、日志和 Blender 进程。

Related MCP server: Blender MCP Server

为什么这样设计

当前安装的 ahujasid/blender-mcp 插件是一个 GUI TCP 桥接器,默认使用一个固定端口。工作池避免了端口冲突,也避免了不同项目之间的交叉污染。它还让故障可以恢复:一个失败的工作进程只是一个失败的作业。

运行冒烟测试

从 PowerShell 运行:

Set-Location D:\blender-mcp-fleet\prototype\fleet
python .\smoke_test.py

该测试使用两个工作进程提交四个模型,因此会同时运行两个 Blender 作业。结果会写入 D:\blender-mcp-fleet\prototype\jobs。

运行 MCP 调度器

MCP 依赖可以通过 uv 安装到一个本地环境中:

Set-Location D:\blender-mcp-fleet\prototype
uv venv --python 3.11 .venv
uv pip install --python .\.venv\Scripts\python.exe "mcp[cli]==1.29.0"

然后,将它注册为用于测试的单独 MCP 条目;它不会替换当前的 blender 条目:

[mcp_servers.blender_fleet]
command = "D:\\blender-mcp-fleet\\prototype\\.venv\\Scripts\\python.exe"
args = ["D:\\blender-mcp-fleet\\prototype\\fleet\\mcp_server.py"]

[mcp_servers.blender_fleet.env]
BLENDER_FLEET_PARALLEL = "2"

暴露的工具包括 submit_model_job、get_job_status、wait_for_job、list_model_jobs 和 fleet_info。

安全的预设类型包括 cube、sphere、monkey、tower、robot、spaceship、castle 和 solar_system。最后三个类型适合用来做更真实的多智能体冒烟测试,因为它们会创建多个网格、材质、灯光和修改器。

想在不修改 Codex 配置的情况下测试实际的 MCP stdio 握手:

D:\blender-mcp-fleet\prototype\.venv\Scripts\python.exe .\fleet\mcp_smoke.py

安全边界

第一版只接受一个小型的已列入白名单的模型类型集。它不会执行任意由智能体提供的 Python 代码。后续版本可以加入一个经过评审的 recipe/script 模式,支持按作业设置超时时间和限定工作区的白名单。

Maintenance

ActivitySlowing
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers