← 返回
未分类

dcc-cli-gateway

Control live DCC hosts (Maya, Blender, Houdini, Photoshop, 3ds Max, and custom studio tools) through the dcc-mcp-cli command line. For ClawHub, OpenClaw, Cursor, Claude, and shell-capable agent hosts: verify gateway health, inventory registered DCC instances, search tools, inspect schemas, and invoke tools without speaking MCP directly. If dcc-mcp-cli is missing, ask for consent, download it from GitHub Releases, and fall back to Python stdlib REST only if download fails.
Control live DCC hosts (Maya, Blender, Houdini, Photoshop, 3ds Max, and custom studio tools) through the dcc-mcp-cli command line. For ClawHub, OpenClaw, Cursor, Claude, and shell-capable agent hosts: verify gateway health, inventory registered DCC instances, search tools, inspect schemas, and invoke tools without speaking MCP directly. If dcc-mcp-cli is missing, ask for consent, download it from GitHub Releases, and fall back to Python stdlib REST only if download fails.
yjkj999999
未分类 community v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 17
下载
💾 0
安装
1
版本
#latest

概述

DCC CLI Gateway — Agent Control Plane

Use this skill when an agent host can run shell commands and should connect to

DCC-MCP through dcc-mcp-cli instead of MCP JSON-RPC. The CLI wraps the

gateway REST API and returns JSON by default. The bundled Python fallback sends

Accept: application/json because the gateway REST API itself now defaults to

compact TOON for agent-facing routes.

Connection order:

  1. Use dcc-mcp-cli when it is already on PATH.
  2. If missing, ask user permission, then download dcc-mcp-cli from GitHub Releases.
  3. If the download fails, use the bundled Python stdlib REST fallback.

Install via OpenClaw/ClawHub, or point your agent at this SKILL.md after cloning

dcc-mcp-core/skills/dcc-cli-gateway/.


Critical Rules

SituationYou MUST
---------------------
Starting any DCC taskRun python scripts/dcc_gateway.py health and python scripts/dcc_gateway.py list first
dcc-mcp-cli missingAsk permission before --ensure-cli; fallback Python REST is allowed if download fails
Inventory returns total == 0Stop; do not run search, describe, or call
Gateway unreachableStop; explain; ask user permission before troubleshooting
User has not agreed to setupDo not install packages, edit env files, launch GUI apps, or write configs
User approved setupFollow references/ZERO_INSTANCES_CLI.md
After DCC crash/restartRe-run list and search; old slugs may be invalid

Configuration

dcc-mcp-cli and the Python helper read the gateway URL from DCC_MCP_BASE_URL.

export DCC_MCP_BASE_URL="${DCC_MCP_BASE_URL:-http://127.0.0.1:9765}"
dcc-mcp-cli health
python scripts/dcc_gateway.py health

For a one-off command:

python scripts/dcc_gateway.py --base-url http://127.0.0.1:9765 health

Quick probe helper:

python3 scripts/check_cli.py
py -3 scripts\check_cli.py

Flags: --base-url URL, --cli dcc-mcp-cli, --ensure-cli, --install-dir DIR, --pretty.

When the user approves downloading the CLI:

# Linux / macOS
python3 scripts/dcc_gateway.py --ensure-cli list
vx python scripts/dcc_gateway.py --ensure-cli list

# Windows
py -3 scripts\dcc_gateway.py --ensure-cli list
vx python scripts\dcc_gateway.py --ensure-cli list

Release assets are selected by platform:

PlatformAsset
-----------------
Windows x86_64dcc-mcp-cli-windows-x86_64.exe
Linux x86_64dcc-mcp-cli-linux-x86_64
macOS Intel/Apple Silicondcc-mcp-cli-macos-universal2

If Python is not easy to locate, install vx first and run the helper through

vx python:

# Linux / macOS
curl -fsSL https://raw.githubusercontent.com/loonghao/vx/main/install.sh | bash

# Windows PowerShell
powershell -c "irm https://raw.githubusercontent.com/loonghao/vx/main/install.ps1 | iex"

Step 0 — Mandatory Instance Inventory

Run this every time you begin work or after the user starts/stops a DCC host:

python scripts/dcc_gateway.py health
python scripts/dcc_gateway.py list

Interpret dcc-mcp-cli list:

{
  "total": 1,
  "instances": [
    {
      "instance_id": "full-uuid",
      "instance_short": "a1b2c3d4",
      "dcc_type": "maya",
      "status": "available",
      "stale": false,
      "mcp_url": "http://127.0.0.1:8765/mcp"
    }
  ]
}

Report to the user:

  1. total
  2. Count by dcc_type
  3. Any stale: true rows
  4. The target instance_id or instance_short you will use

If total == 0, stop and ask whether the user wants setup guidance for the

target DCC. Continue only after explicit approval.


Step 1 — Search Tools

Only run this when inventory shows at least one non-stale target:

python scripts/dcc_gateway.py search --query sphere --dcc-type maya --limit 20

Copy the returned slug exactly. Gateway slugs look like:

maya.a1b2c3d4.maya_primitives__create_sphere

Never hand-build slugs.


Step 2 — Describe Schema

python scripts/dcc_gateway.py describe maya.a1b2c3d4.maya_primitives__create_sphere

Read tool.inputSchema and safety annotations before calling.


Step 3 — Call a Tool

python scripts/dcc_gateway.py call maya.a1b2c3d4.maya_primitives__create_sphere \
  --json '{"radius":2.0}'

Tool-specific fields (code, file_path, radius, and similar) belong inside

the --json object. Do not pass them as top-level CLI flags unless the CLI adds

an explicit first-class flag later.

See references/CLI_CHEATSHEET.md for command

patterns and common errors.


What This Skill Does Not Use

  • MCP tools/list, tools/call, or resources/read
  • Raw curl workflows except when debugging the gateway itself
  • Direct Maya/Blender/Houdini scripting

The CLI is the preferred agent-facing control plane. The Python fallback uses

the same gateway REST endpoints only when the CLI is unavailable after a

download attempt fails.

版本历史

共 1 个版本

  • v1.0.0 从ClawHub迁移发布 当前
    2026-06-07 11:15 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,117 📥 837,436
ai-agent

Find Skills

guipi888
场景驱动+关键词双模式技能发现工具。当用户用自然语言描述场景/需求(如"我想做一个海报""帮我分析股票"),或明确说"安装技能/find skills/找个skill"时,自动从官方内置、本地已安装、SkillHub、虾评、GitHub、C
★ 1,484 📥 545,361
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,403 📥 323,674