← 返回 Skills 市场
loonghao

Dcc Rest Gateway

作者 Hal · GitHub ↗ · v0.17.29 · MIT-0
cross-platform ✓ 安全检测通过
75
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install dcc-rest-gateway
功能描述
Control live DCC hosts (Maya, Blender, Houdini, Photoshop, 3ds Max, and others) through the DCC-MCP gateway REST API only — no MCP client required. For any a...
使用说明 (SKILL.md)

DCC REST Gateway — Agent Control Plane (No MCP)

This skill teaches any AI agent to drive DCC software through the DCC-MCP gateway HTTP API only. You do not need MCP tools/list, call_tool, resources/read, or Streamable HTTP — only curl (or any HTTP client) against the elected gateway (default port 9765).

Install via OpenClaw/ClawHub, or point your agent at this SKILL.md after cloning dcc-mcp-core/skills/dcc-rest-gateway/.

Full contract: docs/guide/rest-api-surface.md.


CRITICAL RULES (read first)

Situation You MUST
Starting any DCC task Run instance inventory (below) before search / call
GET /v1/instancestotal == 0 STOP — do not call POST /v1/search or POST /v1/call
Gateway unreachable (healthz fails) STOP — explain; ask user permission before troubleshooting
User has not agreed to setup FORBID pip install, editing env files, launching GUI apps, writing configs
User approved setup Follow references/ZERO_INSTANCES.md; poll instances after each step
After DCC crash/restart Re-run inventory — instance_id and tool_slug values change

Configuration

Variable Default Meaning
DCC_MCP_GATEWAY_URL http://127.0.0.1:9765 Gateway root (no trailing slash required)

Set in the shell or OpenClaw env before running commands:

export DCC_MCP_GATEWAY_URL="${DCC_MCP_GATEWAY_URL:-http://127.0.0.1:9765}"
GATEWAY="$DCC_MCP_GATEWAY_URL"

Quick probe (cross-platform helper — stdlib only, no curl required):

# Linux / macOS
python3 scripts/check_gateway.py

# Windows (cmd or PowerShell)
py -3 scripts\check_gateway.py
# PowerShell wrapper:
pwsh scripts/check_gateway.ps1

# Optional: bash scripts/check_gateway.sh

Flags: --gateway URL, --pretty for indented JSON.


Step 0 — Mandatory instance inventory

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

GATEWAY="${DCC_MCP_GATEWAY_URL:-http://127.0.0.1:9765}"

curl -sf "$GATEWAY/v1/healthz" || echo "GATEWAY_UNREACHABLE"
curl -s  "$GATEWAY/v1/readyz"
curl -s  "$GATEWAY/v1/instances"
curl -s  "$GATEWAY/v1/context"    # optional summary

Interpret GET /v1/instances

Response shape:

{
  "total": 2,
  "instances": [
    {
      "instance_id": "full-uuid",
      "dcc_type": "maya",
      "status": "available",
      "stale": false,
      "display_name": "...",
      "scene": "...",
      "port": 8765,
      "mcp_url": "http://127.0.0.1:8765/mcp"
    }
  ]
}

Report to the user:

  1. total — how many registry rows exist (routable targets when not stale).
  2. Count by dcc_type — e.g. maya: 1, blender: 1.
  3. Per row: instance_id, status, stale (ignore or warn on stale: true).
  4. From GET /v1/context (optional): live_instance_count, loaded_skill_count, action_count.

Save one target instance_id per DCC you will use — pass it to POST /v1/search as instance_id (full UUID or unique ≥4-char prefix).

If total == 0

  1. Tell the user: gateway may be up but no DCC has registered yet.
  2. Do not call search, describe, or call (they fail or return empty).
  3. Ask explicitly: "May I guide you through starting a DCC adapter for <product>?"
  4. Only after yes → open references/ZERO_INSTANCES.md.
  5. After each user action, re-run GET /v1/instances until total >= 1.

Step 1 — Discover tools (POST /v1/search)

Only when total >= 1 and rows are not stale.

curl -s -X POST "$GATEWAY/v1/search" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "sphere",
    "dcc_type": "maya",
    "instance_id": "\x3Cfrom-inventory>",
    "limit": 20
  }'

Copy hits[].tool_slug verbatim — format: \x3Cdcc>.\x3Cid8>.\x3Cbackend_tool> (e.g. maya.a1b2c3d4.maya_primitives__create_sphere). Never hand-build slugs.


Step 2 — Inspect schema (POST /v1/describe)

curl -s -X POST "$GATEWAY/v1/describe" \
  -H "Content-Type: application/json" \
  -d '{"tool_slug": "\x3Cfrom-search>", "include_schema": true}'

Read tool.inputSchema and safety annotations before calling.


Step 3 — Invoke (POST /v1/call)

curl -s -X POST "$GATEWAY/v1/call" \
  -H "Content-Type: application/json" \
  -d '{
    "tool_slug": "\x3Cfrom-search>",
    "arguments": { "radius": 2.0 }
  }'
  • Tool-specific fields (code, file_path, radius, …) belong inside arguments, not at the top level.
  • Multi-step (≤25): POST /v1/call_batch with calls[] and optional stop_on_error.

Path-style alternative when you already know dcc_type + instance_id:

POST /v1/dcc/{dcc_type}/instances/{instance_id}/call with body {"backend_tool": "...", "arguments": {...}}.

See references/REST_CHEATSHEET.md for the full endpoint list.


What this skill does NOT use

  • MCP JSON-RPC (POST /mcp, tools/call, resources/read)
  • Gateway MCP wrappers (including hidden call_tool) unless your host maps them to REST internally

REST and MCP share the same backend; this skill is for agents that only have HTTP.

安全使用建议
Install this only if you intend to let an agent operate your DCC applications through a trusted DCC-MCP gateway. Keep the gateway URL local or otherwise controlled, review tool schemas before calls, and approve any adapter installation or environment changes explicitly.
能力评估
Purpose & Capability
The purpose is to inventory and control live DCC hosts through the DCC-MCP REST gateway; the documented curl calls and helper scripts match that purpose, though the capability can affect real DCC sessions.
Instruction Scope
The instructions require inventory before calls, stop when no instances are registered, inspect schemas before invoking tools, and require user consent before setup or environment changes.
Install Mechanism
The package includes small local probe scripts and setup guidance that can involve installing DCC adapters, but those steps are documented as user-approved rather than automatic.
Credentials
Use of Bash/Read, curl, and a configurable gateway URL is proportionate for a REST gateway control skill; no credential harvesting or unrelated local data access was found.
Persistence & Privilege
No hidden persistence, background worker, privilege escalation, destructive local file action, or automatic configuration mutation was found.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install dcc-rest-gateway
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /dcc-rest-gateway 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.17.29
- Version bumped to 0.17.29 in metadata. - No functionality or documentation changes; SKILL.md updated only to reflect the new version number.
v0.17.28
- Enhanced documentation and usage guidance for the REST-only DCC gateway agent control skill. - Now strictly enforces user consent before any DCC setup when no instances are registered. - Clarifies step-by-step inventory, tool search, schema inspection, and invocation process using HTTP endpoints only (no MCP client required). - Details mandatory pre-checks (inventory via /v1/instances) and error handling for zero-instance or unreachable gateway cases. - Expanded quickstart, configuration, and troubleshooting instructions, including platform-specific scripts. - Defines clear integration boundaries: uses only REST API, not MCP client or JSON-RPC.
元数据
Slug dcc-rest-gateway
版本 0.17.29
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Dcc Rest Gateway 是什么?

Control live DCC hosts (Maya, Blender, Houdini, Photoshop, 3ds Max, and others) through the DCC-MCP gateway REST API only — no MCP client required. For any a... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 75 次。

如何安装 Dcc Rest Gateway?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install dcc-rest-gateway」即可一键安装,无需额外配置。

Dcc Rest Gateway 是免费的吗?

是的,Dcc Rest Gateway 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Dcc Rest Gateway 支持哪些平台?

Dcc Rest Gateway 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Dcc Rest Gateway?

由 Hal(@loonghao)开发并维护,当前版本 v0.17.29。

💬 留言讨论