daz-mcp-server

v0.10.0
daz-mcp-server Checked 16 hours ago Published 7 days ago

MCP server wrapping the DazScriptServer HTTP API for DAZ Studio

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

daz_inspect_scene Daz Inspect Scene

Inspect the open scene before choosing or running a script job. Returns the scene file, selected node, figures, cameras, lights, and node count. Use the ``daz://help/{topic}`` resource for static DazScript help. When the Daz Studio plugin is too old for this server, the result also has ``plugin_compatibility`` with upgrade advice.

daz_submit_job Daz Submit Job

Submit a file-backed DazScript job and return immediately. This is the general escape hatch for file-backed work. Prefer a unique ``report_file`` so observation can expose structured progress, logs, and an output manifest.

ParameterTypeDescription
script_file *string
args
report_file

daz_observe_job Daz Observe Job

Observe, collect, or cancel one asynchronous DAZ job. ``status`` is non-blocking and includes live structured observations. ``result`` optionally waits for the terminal response. ``cancel`` stops a queued job or requests cancellation of running work.

ParameterTypeDescription
request_id *string
actionstring
timeout_secondsinteger
waitboolean

daz_run_script_job Daz Run Script Job

Run a .dsa/.ds script file through the asynchronous job boundary. The script owns its own scene construction and run manifest; this tool only supplies parameters and queues it. The file must be a ``.dsa`` or ``.ds`` file. Poll the returned request with ``daz_observe_job``.

ParameterTypeDescription
script_file *string
parameters
report_file

daz_fetch_artifact Daz Fetch Artifact

Fetch one file declared by a job's structured output manifest. Select by zero-based manifest index, exact path, or output label. Images are returned as MCP image content; other files as embedded resources. The MCP process must share the DAZ host's filesystem. Arbitrary paths are not accepted: the file must have been declared by this job.

ParameterTypeDescription
request_id *string
artifact

daz_recipe_validate Daz Recipe Validate

Validate a scene recipe and check that the files it references exist. Start of the loop: validate -> plan -> apply -> render. Read the ``daz://recipe/schema`` resource for the recipe format. Returns ``{ok, errors, warnings}``; each error has ``path``, ``code``, ``message`` and often a ``suggestion``. Fix errors and validate again before planning.

ParameterTypeDescription
recipe *object

daz_recipe_plan Daz Recipe Plan

Dry run: show the steps, conflicts and warnings an apply would produce. Reads the scene, changes nothing. Invalid recipes return ``{ok: false, errors}``. Conflicts: each has ``path`` (``<entity>.<channel>``, e.g. ``cameras.close_up.transform``), ``kind``, and the ``desired`` (recipe), ``base`` (last applied) and ``live`` (scene) values. A conflict means the recipe and the scene both changed since the last apply. ``on_conflict``: ``ask`` (default; any conflict writes nothing and is returned), ``recipe_wins`` (overwrite hand edits), ``scene_wins`` (keep hand edits). Use the use…

ParameterTypeDescription
recipe *object
on_conflictstring
resolutions

daz_recipe_apply Daz Recipe Apply

Apply a scene recipe to the open scene (idempotent; re-run after edits). Loop: validate -> plan -> apply -> render. Only nodes the recipe created are touched. Returns ``applied`` plus ``conflicts``, ``overwritten``, ``kept`` and ``warnings``. Under ``ask`` a conflict returns ``applied: false`` and writes nothing. A failure part-way rolls back. Invalid recipes return ``{ok: false, errors}`` so you can fix them. Conflicts: each has ``path`` (``<entity>.<channel>``, e.g. ``cameras.close_up.transform``), ``kind``, and the ``desired`` (recipe), ``base`` (last applied)…

ParameterTypeDescription
recipe *object
on_conflictstring
resolutions

daz_recipe_observe Daz Recipe Observe

Compare the scene with a recipe without changing anything. Returns ``applied``, ``in_sync``, ``drift`` (hand edits kept or nodes deleted by hand), ``pending`` (what an apply would change) and ``conflicts``. Use it to see whether the user edited the scene since the last apply.

ParameterTypeDescription
recipe *object

daz_recipe_render Daz Recipe Render

Render the recipe's shots (all, or the shot ids in ``shots``). Last step of validate -> plan -> apply -> render. Returns ``{shots: [{id, camera, output, ...}]}``. Refuses with ``{ok: false, reason, observe}`` when the recipe is not applied, has pending changes or conflicts, or a shot camera was changed by hand; apply first, or pass ``force=True`` to render the scene as it is.

ParameterTypeDescription
recipe *object
forceboolean
shots