CLI Reference
The DCCMCP CLI is maintained and released from the dedicated dcc-mcp/dcc-mcp-cli repository. This page documents its operator-facing contract alongside the core server binaries. Flags on each binary map 1:1 onto an DCC_MCP_* environment variable, so any deployment manifest can drive the same configuration surface.
The standalone repository owns the Rust CLI application, both binary names, the Python wrapper, and their release workflows. Core maintains the reusable MCP client SDK and the gateway/server. For local Core development, install the standalone CLI and put it on PATH, or set DCC_MCP_CLI_BIN for just lint-skills and the Windows gateway debug script.
The standalone CLI repository publishes dccmcp and its dcc-mcp-cli compatibility alias as raw GitHub Release assets. Core publishes dcc-mcp-server and its runtime assets separately. DCCMCP is the preferred control path for shell-capable agents.
Existing CLI scripts and clients can continue to use gateway REST alongside Skills over MCP. To discover Agent Skills and retrieve their files, use a compatible MCP client with the selected per-DCC endpoint. Check that it advertises the extension. Skills over MCP integration guide
If dccmcp is missing, obtain the user's consent before running the official installer:
curl -fL https://raw.githubusercontent.com/dcc-mcp/dcc-mcp-cli/main/scripts/install-cli.sh -o install-cli.sh
cat install-cli.sh
sh ./install-cli.sh
# Windows PowerShell
Invoke-WebRequest https://raw.githubusercontent.com/dcc-mcp/dcc-mcp-cli/main/scripts/install-cli.ps1 -OutFile .\install-cli.ps1
Get-Content -Raw .\install-cli.ps1
& .\install-cli.ps1Pin a release by setting DCC_MCP_VERSION=v0.21.2 or passing --version v0.21.2 to the install script. The installers download the matching .sha256 sidecar and verify the binary before replacing the destination. Set DCC_MCP_ALLOW_UNSIGNED_DOWNLOADS=1 only for a trusted legacy mirror that does not publish sidecars.
A standalone DCCMCP ZIP (dccmcp-<version>-<platform>.zip) and a compatibility CLI ZIP (dcc-mcp-cli-<version>-<platform>.zip) are published as GitHub Release assets in the dedicated CLI repository. On macOS, the supported package manager route is brew tap dcc-mcp/tap && brew install dccmcp.
| Binary | Role | Source |
|---|---|---|
dccmcp | User/CI control plane for local or remote DCC-MCP REST endpoints. | dcc-mcp/dcc-mcp-cli |
dcc-mcp-server | Per-DCC MCP + REST server and machine-wide gateway daemon. | crates/dcc-mcp-server/ |
dcc-mcp-tunnel-relay | Public-facing WebSocket relay for the zero-config remote tunnel (#504). | crates/dcc-mcp-tunnel-relay/ |
dcc-mcp-tunnel-agent | Local sidecar that registers with the relay and forwards MCP traffic. | crates/dcc-mcp-tunnel-agent/ |
Development helper binaries (stub_gen) are documented in AGENTS.md.
dccmcp
Client-side control plane for DCC-MCP. It is the primary operator and agent UX; it does not host skills and does not replace the runtime binary dcc-mcp-server. Existing installations may invoke the same binary as dccmcp.
dccmcp has two gateway modes:
local(default): read the core default FileRegistry directly and use the selected DCC instance's MCP HTTP endpoint forsearch,describe,load-skill,call,wait-ready, and guardedstop-instance.- named remote profiles: route the same control workflow through the selected remote gateway base URL.
Shell agents should pass --output toon to reduce command-result context-token cost. The default remains JSON for backward-compatible scripts; use --output json only when a downstream program requires JSON, --output ndjson for streams, and --output human for interactive display.
Result views and field queries
call (including batches) prints each structured result once: the CLI omits unannotated content text blocks whose complete JSON value equals structuredContent. Both fields remain present; distinct text, annotated blocks, media, errors, metrics and artifact references remain intact. MCP/REST wire responses, SDK results and existing evidence files are unchanged. Legacy CLI consumers that read the JSON text mirror must use --raw-result. The same view feeds human, JSON, NDJSON and TOON output.
Use repeatable RFC 6901 pointers to query that view without parsing embedded JSON text, for example:
dccmcp call <tool-slug> --output json \
--select /result/structuredContent/context/output_summary/artifacts \
--select /result/structuredContent/context/resultThe response contains a selected map keyed by the exact pointers, plus the original success, request_id and tool_slug when present. Missing fields are null. Selection never changes failure detection, exit codes or the original error envelope on stderr. Do not select away acceptance metrics when saving an acceptance record. Artifact references remain references; the CLI does not copy stdout to another file or delete run/checkpoint data.
call, list, search and describe omit maintenance metadata by default. Pass --show-maintenance to include it. --quiet aliases the existing --no-update-maintenance (also skips automatic staged-update application). Explicit update commands retain their behavior. Progress, update hints and errors use stderr; stdout contains only the requested result representation.
Register and select remote profiles with:
dccmcp gateway register https://workstation.example:19293 --name pcA
dccmcp gateway list
dccmcp gateway set pcA
dccmcp gateway set local--gateway <name> overrides the current profile for one command. --base-url and DCC_MCP_BASE_URL remain supported as direct endpoint overrides for legacy scripts and smoke checks.
Tool calls accept --transport auto|rest|mcp (or DCC_MCP_CLI_TRANSPORT). The default auto mode keeps the compatibility path: it calls gateway POST /v1/call first and falls back to MCP tools/call only when the REST catalog reports an unknown tool. --transport rest is strict and never falls back; --transport mcp sends a JSON-RPC tools/call directly to /mcp, which is useful for protocol-parity checks and MCP-only tools. Batch calls and direct backend calls with --dcc-type/--instance-id remain REST operations. In the default auto mode, local direct-instance calls continue to use MCP; selecting rest routes them through the local gateway REST surface.
Add --require-gateway (or set DCC_MCP_CLI_REQUIRE_GATEWAY=true) when local calls must be retained by Gateway audit/stats. This route is fail-closed and does not fall back to direct MCP. Add --agent-session-id <task-id> (or DCC_MCP_AGENT_SESSION_ID) to write the same _meta.agent_context.session_id into single and batched calls. It is distinct from an application-level or UI Control session_id argument.
In the default local profile, agent-control commands first ensure the machine-wide loopback gateway is healthy, then local list reads the FileRegistry and local search, describe, load-skill, call, wait-ready, and stop-instance resolve the target instance from that registry and talk to its advertised mcp_url / readyz / safe_stop_url directly. The gateway daemon is still kept available for Admin, health, update, and cross-instance control-plane routes. When the current profile is remote, or when --gateway pcA / --base-url ... is supplied, the same commands use the gateway /v1/* surfaces.
list is a live inventory and diagnostics command: it keeps live booting rows and sidecar rows with dispatch_status=unavailable visible so operators can see startup failures. Local list reads use a shared, read-only registry lock and verify owner/host liveness without pruning or rewriting the registry; evicted counts dead rows omitted from that response and eviction_applied: false makes the non-mutating behavior explicit. Local search, describe, load-skill, call, and reload-skills only route to direct MCP instances ready for local CLI control (status=available or busy, with dispatch_status=ready when that metadata is reported). A per-DCC sidecar row is locally routable once it reports dispatch_status=ready; before that it remains visible as startup diagnostics and is not used for tool calls. Use wait-ready or doctor when list shows a live instance that is not yet ready for direct local CLI control. Each local list row includes direct_control.recommended_next_action so agents can distinguish "route this local MCP row" from "wait for sidecar dispatch readiness". Local rows also include direct_control.diagnostics, which folds sidecar failure metadata into one stable place: failure_stage, failure_reason, host_rpc_*, gateway guardian/recovery fields, and stdout/stderr log paths when the DCC supervisor records them in the registry. doctor summarizes not-ready local rows under local.inventory.direct_control.not_ready_instances.
Agent-control commands (list, search, describe, load-skill, call, wait-ready, reload-skills, stop-instance, and marketplace install --reload) and endpoint-level commands that need a local gateway (health, stats, update, and smoke without an explicit --url) auto-ensure only loopback HTTP targets (http://127.0.0.1:<port> or http://localhost:<port>). Disable this for one invocation with --no-auto-gateway. Commands that operate only on local files (install, dcc-types, start-instance, marketplace commands without --reload, lint), explicit lifecycle commands (gateway ...), and smoke checks against an explicit --url do not auto-start the gateway. Use dccmcp doctor when startup state is ambiguous: it reports the current profile config, selected mode, registry directory and inventory, local direct-control readiness counts, gateway daemon status, and server binary path/source/version without starting services or downloading binaries. Existing binary version probes and explicitly configured adapter interpreter probes may run subprocesses. Doctor also skips staged-update application/quarantine, marketplace update checks, and background CLI update-cache refresh without requiring an opt-out.
The default registry is ~/.dcc-mcp/registry-live on all platforms, using USERPROFILE on Windows and HOME on Unix, with native home lookup when the variable is absent or empty. TEMP/TMP redirection does not affect inventory. Explicit registry options and DCC_MCP_REGISTRY_DIR retain priority; use the environment override to share a registry with older running services or select a temporary test directory. list.registry_dir and doctor.local.registry_dir report the directory read. Old registries are never scanned, migrated, or merged automatically.
The local inventory is a read_only_snapshot: doctor never creates the registry directory, opens services.lock, prunes rows, or quarantines malformed JSON. evicted is zero and liveness: not_checked means readiness counts describe persisted metadata, not freshly verified live hosts. Use the normal runtime inventory/readiness route for liveness after its required access is authorized. Doctor's gateway status reads only the pidfile: when it is absent, pid remains null even if the health probe succeeds, rather than recovering it via a registry write transaction. Normal gateway lifecycle commands retain their PID recovery. Unreadable snapshots report ok: false, liveness: unknown, the read operation and file path, a bounded error chain with the home directory redacted, and error_kind/os_error when an I/O cause exists. An unknown errno is null; parser errors include category and location without echoing registry values. These are local operator diagnostics; the existing registry_dir field retains its path for compatibility and reports still need review before sharing publicly. Server-binary metadata errors report status: unknown and do not suggest a download; only confirmed absence is missing.
When normal gateway startup needs a server download, bootstrap selects the CLI's exact release version through dcc-mcp-update-manifest-<platform>.json. It uses the gateway's shared manifest loader (including Sigstore attestation verification for official Core release URLs), follows the manifest's server asset URL, and uses the updater's bounded SHA-256-verified download before committing a cache file. It does not construct binary names from Rust target triples. DCC_MCP_GATEWAY_DOWNLOAD_BASE mirrors must supply this manifest and its asset metadata; custom hosts keep the existing operator-supplied update trust policy. Download failure emits a bounded warning with the error chain and current-CLI sub-command fallback path. A fallback is not proof that the gateway started or became healthy. Existing explicit, sibling and cached binaries retain their discovery policy; this does not requalify their origin.
MCP inventory smoke checks
dccmcp --no-auto-gateway --output json smoke --url http://127.0.0.1:19293/mcp --timeout-secs 30 --max-pages 16smoke initializes one MCP session and follows tools/list cursors until a terminal page. --max-pages defaults to 16 and accepts 1–128; reaching the limit with another cursor, a repeated cursor, an invalid descriptor, or a failed request makes the check fail. Each request uses the negotiated supported legacy protocol version. An invalid initialize response prevents tool listing.
The mcp_tools_list check keeps the first parsed response in response and every request and parsed response in pages. Each received page also records its HTTP status, response-body SHA-256, and strict UTF-8 body (or bytes when UTF-8 is invalid). These are HTTP bodies after transport decoding, not network frames. tool_count is computed from validated pages; it is derived metadata, not a server response. Treat inventory as complete only when the check is successful and complete is true. Retain exact advertised tool names and schemas.
Adapter import probes (doctor)
An adapter can be installed and still be unusable. The common cause is an editable install whose source checkout was deleted: the *.dist-info survives, so distribution metadata still reports the adapter as installed while import <module> fails. doctor runs one real import probe per registered DCC type and grades it under adapter_imports:
status | Meaning |
|---|---|
ok | Importable; versions agree or are not comparable. |
missing | No distribution metadata and no importable module. |
unimportable | Distribution metadata present, import failed — the broken-install case. |
version_mismatch | Importable, but module __version__ differs from the distribution version. |
incompatible_core | Importable, but the target Core is outside the adapter's observed dependency range. |
unavailable | The probe could not run. Never counted as an adapter failure. |
status becomes degraded and the command exits non-zero when any probe is missing, unimportable, version_mismatch, or incompatible_core.
The probe writes interpreter output to private spool files and samples their sizes every 25 ms. A spool crossing 4 MiB stops the probe before its output is read, so a runaway writer cannot keep growing unobserved until cleanup; the sampling interval allows a brief overshoot and is not a hard filesystem quota. On Unix, cleanup covers the dedicated process group. A helper that calls setsid or otherwise leaves that group is outside the probe's ownership and cleanup receipt; the probe does not implement a process sandbox.
The probe records the adapter's unconditional Requires-Dist declaration for dcc-mcp-core and the Core version in that same interpreter. An already imported Core module takes precedence over distribution metadata; core_version_source and core_dist_version preserve the distinction. core_compatibility uses the existing shared version-bound checker, never the CLI's own version. Conditional declarations are ignored; exactly one distinct unconditional requirement is checked. Missing or ambiguous declarations are not guessed (core_compatibility reports not_checked). An unknown version or unusable declaration cannot establish supported compatibility. A fully parsed range can still reject an out-of-range Core even when its policy is invalid; declaration_valid records that policy result separately. An import grade does not establish host capabilities or native readiness.
Release suffixes whose ordering is not represented by the shared numeric checker remain unknown; they are never normalized into supported final releases. Legacy requires.txt metadata is read when Requires-Dist is absent; extras and environment sections remain conditional and are never evaluated by the probe.
Probing needs the interpreter that actually hosts the adapter. doctor never guesses an ambient python, because that reports false missing rows for adapters installed into a DCC's own interpreter. Set one of:
dccmcp doctor --adapter-python maya=/usr/autodesk/maya2026/bin/mayapy
DCC_MCP_PYTHON_EXECUTABLE=/usr/autodesk/maya2026/bin/mayapy dccmcp doctorWith neither configured, probes report unavailable with reason: "no_interpreter" and the overall status stays ok.
dccmcp dcc-types
dccmcp dcc-types --catalog ./studio-catalog.yml
dccmcp list
dccmcp list --gateway pcA
dccmcp doctor
dccmcp health
dccmcp stats --range 7d --dcc-type houdini --skill houdini-render
dccmcp stats --tool render_rop --status failure --session-id solar-session
dccmcp --no-auto-gateway health
dccmcp gateway register https://workstation.example:19293 --name pcA
dccmcp gateway list
dccmcp gateway set pcA
dccmcp gateway set local
dccmcp search --query sphere --dcc-type maya --instance-id abc12345
dccmcp describe maya.abc12345.create_sphere
dccmcp load-skill workflow --dcc-type 3dsmax --instance-id 80321760
dccmcp call maya.abc12345.create_sphere --json '{"radius":2}'
dccmcp call maya_scene__get_session_info --dcc-type maya --instance-id abc12345 --json '{}'
dccmcp discover
dccmcp discover --dcc-type maya --path "D:/Autodesk"
dccmcp wait-ready --dcc-type maya --instance-id abc12345 --require skill_catalog,host_execution_bridge
dccmcp stop-instance --dcc-type maya --instance-id abc12345 --expected-owner release-smoke-test
dccmcp install --dcc-type maya --version 2026
dccmcp install --dcc-type maya --version 2026 --python "C:/Program Files/Autodesk/Maya2026/bin/mayapy.exe"
dccmcp install --dcc-type maya --version 2026 --python "C:/Program Files/Autodesk/Maya2026/bin/mayapy.exe" --execute
dccmcp marketplace add dcc-mcp/marketplace
dccmcp marketplace search --query hunyuan --dcc maya
dccmcp marketplace inspect dcc-asset-hunyuan-download
dccmcp marketplace install dcc-asset-hunyuan-download --dcc maya
dccmcp reload-skills --dcc-type maya
dccmcp marketplace list-installed --dcc maya
dccmcp marketplace outdated --dcc maya
dccmcp marketplace update dcc-mcp-maya-skills --dcc maya
dccmcp reload-skills --dcc-type maya
dccmcp marketplace update --all
dccmcp marketplace pack path/to/skill --out dist/
dccmcp marketplace publish path/to/skill --catalog marketplace.json --install-url https://example.com/skill.zip --sha256 sha256:<digest>
dccmcp update
dccmcp update check
dccmcp update check --binary dcc-mcp-server --current-version 0.18.16
dccmcp update apply
dccmcp --auto-update list
dccmcp gateway daemon start
dccmcp gateway daemon restart
dccmcp gateway daemon stop
dccmcp gateway daemon status
dccmcp lint path/to/skillsThe compatibility command accepts the same subcommands and flags.
dccmcp list
dccmcp call <tool-slug> --json '{}'Generic MCP commands
The shared Streamable HTTP client is available for any compatible MCP endpoint. It performs initialization, session handling, protocol negotiation, pagination, and JSON or SSE response decoding.
dccmcp mcp initialize --url http://127.0.0.1:9765/mcp
dccmcp mcp tools list --url http://127.0.0.1:9765/mcp
dccmcp mcp tools call --url http://127.0.0.1:9765/mcp --name create_sphere --json '{"radius":2}'
dccmcp mcp resources list --url http://127.0.0.1:9765/mcp
dccmcp mcp resources read --url http://127.0.0.1:9765/mcp --uri dcc://scene/current
dccmcp mcp prompts list --url http://127.0.0.1:9765/mcp
dccmcp mcp prompts get --url http://127.0.0.1:9765/mcp --name review_scene --arguments-json '{}'call --wait polls the routed jobs_get_status tool to terminal state. If a direct call or terminal Core result exposes an adapter-owned job with a safe adapter_job.poll contract, the CLI continues on that typed status tool on the same instance route and within the same total wait timeout. Safe adapter pollers are synchronous, read-only, idempotent tools whose only required input is a string job_id; every other input must be optional and safe when omitted. Async, mutating, or multi-required-input follow-ups are never called automatically. When the job reports progress.current and progress.total, the CLI writes a 20-cell progress bar to stderr at 5% steps, polls at most once per second, and emits a 30-second heartbeat when progress stalls. The final response remains the only stdout payload, including for JSON, NDJSON, and TOON output. Transient gateway loss keeps the same job_id and emits control_plane_reconnecting; recovery adds wait_recovery to the terminal payload without resubmitting work. If the owning DCC/sidecar has exited, the CLI returns tracking_status=owner_exited and points isolated operations to their worker-owned status tool. A missing/unsafe poll contract, a changed job ID, or a non-canonical status response fails closed: wait.terminal=false (or the corresponding tracking error), a non-zero CLI result, and no replay of the launching operation.
Commands
| Command | REST/API contract | Meaning |
|---|---|---|
dcc-types [--catalog <path>] | bundled or supplied adapter catalog | List canonical adapter-backed DCC identifiers without starting a gateway. Each row includes matching adapters, version/source metadata when present, and whether the catalog can produce an install plan. |
discover [--dcc-type <dcc>] [--path <path>] | local filesystem and PATH scan | Detect installed DCC executables and host Python interpreters across configured roots and mounted Windows volumes. This is read-only and does not launch or install a DCC. |
health | GET /v1/healthz | Check the configured endpoint. |
stats [--range 1h|24h|7d|all] [--dcc-type <dcc>] [--skill <name>] [--tool <name>] [--status success|failure] [--instance-id <id>] [--session-id <id>] | GET /v1/debug/stats | Query persisted gateway tool-call counts and return stats_coverage, including direct routes excluded from the aggregate. JSON is the default output for agent use. |
feedback --tool-name <name> --intent <text> --blocker <text> [--attempt <text>] [--severity <level>] [--dcc-type <dcc>] [--instance-id <id>] [--request-id <id>] [--job-id <id>] | POST /v1/feedback | File bounded gateway-level feedback even after the referenced DCC exits. The receipt points to resources://gateway/events. |
feedback list [--range 1h|24h|7d|all] [--dcc <dcc>] [--severity <level>] [--limit <n>] [--json] | GET /admin/api/feedback | List persisted per-instance feedback newest first. The gateway deduplicates by feedback id, skips malformed/oversized lines with explicit counters, and rejects scans that exceed its safety bounds. |
feedback export [--range 1h|24h|7d|all] [--dcc <dcc>] [--severity <level>] [--limit <n>] [--json] | GET /admin/api/feedback | Export the same structured contract with a bounded default of 1,000 records; --json is a shortcut for --output json. |
feedback route <finding.json> [--catalog <path>] [--json] | local Finding v1 + public catalog | Resolve a validated finding to repo, issues_url, and a stable rationale without starting a gateway or creating an issue. Missing or conflicting ownership metadata fails closed. |
feedback bundle <finding.json> [--install-report <report.json>] [--dcc-pid <pid>] [--log-dir <path>] [--host-error-lines <1-200>] [--json] | local Finding/doctor/host errors/Install SOP v1 report + optional GET /v1/debug/issue-reports/{request_id} | Assemble dcc-mcp.feedback-bundle.v1 without auto-starting a Gateway. The Finding must already be marked public-safe. --install-report accepts one terminal, regular, non-symlink Install SOP v1 execution report up to 256 KiB, binds its DCC/core/adapter identity to the Finding, and projects only public-safe fields. Invalid or mismatched reports fail closed. Missing components remain explicit; complete=true only when every component is resolved. |
feedback file <finding.json> [--catalog <path>] [--existing <number>|--create] [--yes] [--json] | local public-safe Finding + GitHub CLI | Route and deduplicate a Finding against open issues. The default is read-only and returns an executable next_step; execute that argv exactly after review and user authorization. A write binds the canonical Finding path, canonical catalog path or exact bundled sentinel, content SHA, fingerprint, and repository. Drift, bodies above 65,536 Unicode scalar values, exact conflicts, ambiguity, closed issues, tracker failures, or the bounded full-process-tree gh timeout stop the operation before mutation. |
doctor [--registry-dir <path>] [--gateway-port <port>] [--adapter-python <dcc>=<python>] [--adapter-catalog <path>] | local filesystem + gateway probe + adapter import probes | Report profile config/current selection, effective control route and whether it is recorded by gateway stats, local registry readiness, daemon status, server binary diagnostics, and per-DCC adapter import grades without auto-starting services. Repeated --adapter-python covers several DCC types; a probe that cannot run is unavailable, never a failure. |
describe-capabilities [--dcc-type <dcc>] [--instance-id <id>] [--keys <key>...] [--force-refresh] [--invalidate] | canonical describe_capabilities backend tool through local direct MCP or gateway REST | Summarize probed host capabilities with available/declared/unavailable/not_run groups. capabilities remains a compatibility alias. --keys repeats or accepts comma-separated keys; omit --dcc-type and --instance-id only when exactly one instance matches. |
list [--gateway <profile>] | local FileRegistry or GET /v1/instances | List live DCC instances. Local mode uses a shared read-only registry lock and liveness probes without pruning; remote profiles use the selected gateway. |
search [-q|--query <q>] [--instance-id <id>] | local MCP search_tools or remote POST /v1/search | Search callable capabilities with the release-compatible query flag; current builds also accept positional natural-language words as an alternative. Optionally scope to a full UUID or unique prefix. |
describe <tool-slug> | local MCP tools/list or remote POST /v1/describe | Inspect a capability before calling it. |
load-skill <skill-name> [--dcc-type <dcc>] [--instance-id <id>] | local MCP tools/call load_skill or remote POST /v1/load_skill | Activate a progressive skill and print its registered tools. |
call <tool-slug> --json <object> | local MCP tools/call or remote POST /v1/call | Invoke one capability. Local direct calls generate a unique JSON-RPC id, reject a missing or mismatched response id as transport desync, expose the accepted request_id in successful results, and include it in timeout, transport, and JSON-RPC error diagnostics. |
call <backend-tool> --dcc-type <dcc> --instance-id <id> --json <object> | local MCP tools/call or remote POST /v1/dcc/{dcc}/instances/{id}/call | Invoke a backend tool without constructing a dotted gateway slug. |
wait-ready [--dcc-type <dcc>] [--instance-id <id>] [--require <bits>] | local registry + per-instance /v1/readyz, or remote gateway inventory + /v1/readyz | Wait for smoke-test readiness bits such as skill_catalog or host_execution_bridge. |
reload-skills [--dcc-type <dcc>] [--instance-id <id>] | local MCP tools/call dcc_admin__reload_skills, or remote POST /v1/dcc/{dcc}/instances/{id}/call | Ask running adapters to re-scan skill search paths after marketplace installs or path changes. |
stop-instance --dcc-type <dcc> --instance-id <id> --expected-owner <owner> --expected-session <session> | local safe_stop_url or remote POST /v1/dcc/{dcc}/instances/{id}/stop | Forward a guarded safe-stop request only when owner/session metadata and configured gateway auth match. |
stop-instance --operation-id <id> | local lifecycle record + safe_stop_url | Stop only the instance launched and owned by that start-instance operation. Operation scoping is an additional opt-in constraint layered on the mandatory owner/session guard: it is enforced whenever the target receives an operation_id, and an instance that advertises none is refused rather than stopped. |
start-instance --dcc-type <dcc> --project <path> [--launch-plan <path>] [--version <v>] [--instance-id <id>] [--wait-ready] [--require <bits>] [--timeout-secs <n>] [--dry-run] [--yes] | adapter-authored launch plan + local FileRegistry + per-instance /v1/readyz | Launch the DCC host bound to one project when no instance is live, or converge on the exact existing one. --instance-id narrows convergence to one instance when several claim the same project. Requires --yes to spawn a GUI process; --dry-run resolves and reports the plan without launching. |
install --dcc-type <dcc> [--version <catalog-version>] [--python <path>] [--dcc-path <path>] [--execute] | catalog-backed local plan / executor | Resolve the matching adapter and emit an auditable install plan. Pip adapters use the catalog-pinned wheel URL and SHA-256; --version may only repeat that artifact version. If the host is non-standard, supply its path with --dcc-path. |
uninstall --dcc-type <dcc> [--version <catalog-version>] [--python <path>] [--dcc-path <path>] [--yes] [--json] | validated install receipt + local filesystem/target interpreter | Remove only receipt-owned adapter state after revalidating recorded digests. Refuses missing, malformed, or drifted receipts and leaves user-modified destinations untouched. A locked owned path preserves the receipt and returns exit 50 with a structured restart-and-retry step. |
marketplace add <source> | local source registry | Register a marketplace source (dcc-mcp/marketplace, a GitHub owner/repo, raw JSON URL, or local catalog file). |
marketplace list | local source registry | List the built-in, configured, and environment-provided marketplace sources. |
marketplace search [-q|--query <q>] [--dcc <dcc>] [--source <source>] | marketplace catalog JSON/YAML | Fuzzy-rank Skill packages across configured or explicit sources using the shared search engine; the query flag works with released builds, while current builds also accept positional words as an alternative. Deduplicate by package name before applying --limit; --dcc-type is an alias for --dcc. |
marketplace inspect <name> [--source <source>] | marketplace catalog JSON/YAML | Print exact entry metadata including version and install fields. |
marketplace install <name> [--dcc <dcc>] [--source <source>] [--force] | marketplace catalog + local filesystem/git | Install host-neutral and multi-DCC packages to ~/.dcc-mcp/marketplace/any/<name>/, otherwise use ~/.dcc-mcp/marketplace/<dcc>/<name>/. |
marketplace list-installed [--dcc <dcc>] | local installed-state file | List locally installed marketplace packages and their versions/paths. Shared packages are listed once for each matching host. |
marketplace uninstall <name> --dcc <dcc> | local installed-state file + filesystem | Remove an installed marketplace package. |
marketplace outdated [NAME...] [--dcc <dcc>] | marketplace catalog + local installed state | Compare installed versions against latest catalog entries and list packages with newer versions available. |
marketplace update [<name>] [--all] [--dcc <dcc>] | marketplace catalog + git/filesystem + local installed state | Upgrade installed packages to the latest catalog version. Git updates reinstall the next full commit OID through verified staging; ZIP updates require and verify SHA-256. Use --all to update every outdated package. |
marketplace add-repo <repo> --commit <40-hex-oid> [--dcc <dcc>] | direct Git fetch + local filesystem | Install directly from an immutable repository commit. --list is read-only and may omit --commit; installation may not. |
marketplace pack <path> [--out <path>] | local filesystem + zip | Build a release zip for a marketplace package and print its SHA-256 digest. |
marketplace publish <path> --catalog <file> --install-url <url> | local marketplace catalog file | Build or update a marketplace.json entry from SKILL.md metadata and CLI overrides. |
update | GET /v1/update/check + download URL + SHA-256 verification | Check, download, verify, and stage the CLI binary for the next CLI launch. An existing staged update is reused. |
update check [--binary <name>] [--current-version <version>] | GET /v1/update/check | Read-only check of the gateway update manifest. Defaults to the CLI binary/version; pass --binary dcc-mcp-server plus a server version when checking an instance shown in Admin. |
update apply | GET /v1/update/check + download URL | Explicitly download and stage the CLI binary for the next CLI launch. It does not update running server instances; use Admin's instance update button or dcc-mcp-server update apply in the server environment. |
--auto-update <command> | same as update | Best-effort check and staging before an ordinary command. Enable with DCC_MCP_CLI_AUTO_UPDATE=true or the flag. Failures are warnings and do not change the current command result. |
gateway register <url> --name <profile> | local profile config | Persist a named remote gateway profile. |
gateway list | local profile config | Show configured remote profiles and the active local/remote selection. |
gateway set <profile|local> | local profile config | Select the active gateway profile. |
gateway daemon start [--port <port>] | local process | Start the local machine-wide gateway daemon. Defaults to --gateway-idle-timeout-secs 0, so an explicitly managed daemon stays alive with no backends. |
gateway daemon restart [--port <port>] | local process | Stop the pidfile-tracked daemon, then start it again. The restart's start phase uses the same persistent default as daemon start. |
gateway daemon stop [--port <port>] | local process | Stop a running gateway daemon by PID file and verify exit. |
gateway daemon status [--port <port>] | local process | Report gateway daemon health, PID, process liveness, registry dir, PID file, health URL, and CLI version. |
gateway ensure/start/stop/status | local process | Backward-compatible aliases for older scripts; prefer gateway daemon ... in user-facing docs. |
lint [PATH ...] | local filesystem validator | Recursively validate SKILL.md packages two levels below each path by default. |
marketplace install resolves an exact package name directly, so inspect is optional when the ID is already known. --dcc may also be omitted when the catalog entry declares exactly one DCC; multi-DCC entries still require it.
dcc-types describes release-catalog support, not currently running sessions; use list for live inventory. The core still accepts unknown/custom DCC names, so custom_types_supported remains true even when a custom identifier has no catalog install plan. Alias normalization follows DccName::parse, including 3ds Max, 3ds-max, and 3dsmax mapping to 3dsmax.
The targeted form, dcc-types --dcc-type <dcc>, follows dcc-discovery-decision-v1.schema.json. It is read-only and does not start a gateway. live_instances: 0 means only that no matching live row was found in the local FileRegistry; live_instances: null means that observation was unavailable or the requested identifier was invalid. Neither state proves that a public adapter, package installation, project-local plugin, or custom fork is absent. Unobserved gates stay unknown, and fixture evidence is never real-host proof. When the bundled catalog has an installable adapter, the safe next action is the plan-only install --dcc-type <dcc> command together with the adapter-owned installation URL. A custom catalog is never reported as the released public catalog, and the decision does not copy its private URL or path into a plan action. Run a separate explicit install --catalog <path> plan when that local source is intended. Search and calls remain separate: call only a slug or exact identity returned by live capability discovery.
For post-task review, route every task call with --require-gateway --agent-session-id task-42, then query stats --range 24h --session-id task-42 after acceptance. Inspect stats_coverage before the count: Gateway SQLite excludes local_mcp_direct, and configured_route_recorded=false means the configured single-call route cannot support the review. Stats are aggregate evidence rather than root-cause proof; total_calls == 0 means no telemetry evidence, not that no calls occurred. The review_skill_improvement prompt in the published dcc-mcp-skills-creator package accepts this JSON plus bounded task and validation summaries.
start-instance (project-bound launch and wait-ready)
An adapter can be installed and receipted for an exact project while dccmcp list still reports total: 0 because no host is running. start-instance closes that zero-instance gap: it launches the DCC host bound to one project and waits until it is ready.
dccmcp start-instance --dcc-type unity --project /abs/path/MyProject --dry-run
dccmcp start-instance --dcc-type unity --project /abs/path/MyProject --wait-ready --yes
dccmcp start-instance --dcc-type unity --project /abs/path/MyProject \
--wait-ready --require skill_catalog --timeout-secs 600 --yes
dccmcp stop-instance --operation-id <operation-id>Ownership split: core owns the lifecycle and readiness contract; the adapter supplies a validated launch plan. Core never builds a DCC-specific command line, never downloads, installs, upgrades, or edits configuration, and fails closed with blocking_state: launch_plan_missing when no plan exists.
Launch plan resolution, most specific source first:
--launch-plan <path><project>/.dcc-mcp/launch-plan.json<registry-dir>/launch-plans/<dcc>.json
A plan is schema_version: 1 JSON holding dcc_type, an absolute executable that exists on disk, a non-empty argv whose first element is that executable, and optional version, project_markers, and cwd. argv accepts the placeholders {executable}, {project}, {dcc_type}, and {version}.
Safety boundaries:
- launching a GUI process needs explicit
--yes; without it the report isauthorization_requiredand nothing is spawned; - an instance bound to another project is reported under
diagnostics.other_project_instancesand is never reused or closed; - several live instances claiming the same project fail closed as
ambiguous_reuseand ask for exact instance selection; that state is reported asretryable: false, because replaying the identical request reproduces the same ambiguity — the operator must stop the extra instance or pass--instance-id; - process creation is never reported as readiness — without
--wait-readythe report stops atstage: registration, neverterminal; --dry-runresolves the plan without spawning a host, so it reportsready: falseby design and exits successfully even when--wait-readyis also passed; the two flags are combinable and a dry run is never a timeout;- one operation ID spans launch, registration, domain reload, sidecar registration, and readiness; the host receives it as
DCC_MCP_START_OPERATION_IDalongsideDCC_MCP_START_PROJECTandDCC_MCP_START_DCC_TYPE; - a second identical request converges on the existing instance (
reused: true,converged_on_operation_id) instead of launching a second host.
The terminal report (schema_version: 1) returns operation_id, the resolved executable and version, the canonical project, launched / reused / owned, pid, window_handle when the adapter advertises one, instance_id, mcp_url, readyz_url, dispatch_state, host_progress (compiling, importing, domain-reload, and play-mode metadata reported verbatim), stage, timeout_stage, blocking_state, retryable, and one bounded next_action.
blocking_state covers none, restart_required, project_lock, license, modal_dialog, adapter_bootstrap, missing_executable, version_mismatch, ambiguous_reuse, launch_plan_missing, authorization_required, timeout, cancelled, invalid_launch_plan, project_not_found, project_marker_missing, and launch_failed. Every non-none state carries a non-interactive next_action with an exact command array; run it only after operator review.
Stop stays a separate, guarded operation: stop-instance --operation-id <id> may only stop the instance that operation launched and owns (stop_scope: owned_operation). Without --operation-id the existing owner/session guard applies. dcc-types --dcc-type <dcc> --project <path> recommends start-instance when a DCC has zero live instances and a validated launch plan exists for that project.
Adapter authors: the launch-plan schema, argv placeholders, registry metadata keys, readiness bits, and blocking-state contract are specified in adapter-launch-plan-contract.md.
Failure analysis and bug reporting
Use the existing surfaces instead of copying unbounded logs:
- Preserve the failed call's
request_id, trace/job ids, tool slug, instance, sanitized arguments, error code, and validation result. Do not blindly replay a mutating call. - Run
dccmcp doctorfor profile, registry, daemon, binary, or readiness failures. For task-level evidence, rundccmcp stats --range 24h --status failure --session-id <session-id>. - Run
dccmcp feedbackwithtool_name,intent,attempt,blocker, andseverity; include the DCC/instance/request/job ids when known. This gateway-owned route works after an instance exits, records a bounded event, and does not open a GitHub issue. - Review persisted reports with
dccmcp feedback list --range 7d --dcc <dcc> --json; usefeedback exportfor the largest bounded machine-readable window. A failedDccServerBase.start()writes aneeds-reviewstartup Finding to this store even though no gatewayrequest_idexists. Treat its exception-derived observed text as local evidence until it has been reviewed and redacted. - When a Finding v1 JSON file is available, run
dccmcp feedback route finding.json --json. The offline command uses exact catalog or Skill-metadata ownership and never creates the external issue; a routing error must be resolved instead of guessed. - After reviewing the Finding and setting all public-safe exclusion flags, run
dccmcp feedback bundle finding.json --install-report install-report.json --json. Pass the single JSON stdout object frominstall --execute --jsonwhen it is available. The bundle adds the safe issue report when a request id exists, a redacted doctor snapshot, version matrix, an exact-file bounded host-error tail, and a public-safe terminal Install SOP v1 report. The report must be a regular non-symlink file no larger than 256 KiB and match the Finding's DCC/core/adapter identity. Treat a validation failure as fail-closed; treat anyunavailablecomponent orcomplete=falseas incomplete evidence. - Run
dccmcp feedback file finding.json --jsonto search the routed repository without writing. A single exact fingerprint match returns one comment next step; no match returns a create next step. Keyword-only or multiple matches return review options and must not be auto-selected. Execute the reviewednext_step.argvexactly and only with user authorization; never reconstruct it from the visible decision flags. The argv binds the canonical Finding path, canonical catalog path or exact bundled-catalog sentinel, Finding content SHA-256, fingerprint, repository, and catalog SHA-256. The command rechecks that binding and the exact fingerprint immediately before mutation, pinsghtogithub.com, rejects bodies above 65,536 Unicode scalar values, and terminates and reaps the full tracker process tree on timeout with bounded pipe cleanup. - For a gateway-routed failure, read the public-safe
/v1/debug/issue-reports/<request_id>payload. It contains a bounded summary and suggested GitHub title/body. Review?mode=rawlocally and never attach it automatically. - Route schema/script/workflow bugs to the owning Skill, host dispatch or readiness bugs to the adapter, and shared CLI/gateway/protocol bugs to
dcc-mcp-core. Create the external issue only with user authorization.
gateway daemon start and gateway daemon restart are the durable operator paths. Their default --gateway-idle-timeout-secs 0 disables idle shutdown; pass a non-zero timeout only when a script intentionally wants a short-lived daemon. Automatic loopback gateway ensure applies to the agent-control path and endpoint commands; it can be disabled per invocation with --no-auto-gateway.
install defaults to a planning contract: it resolves catalog entries and spells out the adapter package / host-plugin / verification steps without silently modifying DCC plugin folders. The JSON plan also includes machine-readable next_steps: first a read-install-instructions step pointing at the adapter-maintained raw install.md runbook when the catalog or GitHub repo URL provides one, then command arrays for doctor, list, wait-ready, search, marketplace skill search/inspect/install, and reload-skills, plus the manual host-plugin start step. Pass --python (or DCC_MCP_INSTALL_PYTHON) when a pip-based adapter must be installed into a DCC interpreter such as mayapy, hython, or Blender's bundled Python. When both overrides are omitted, automatic selection requires an unambiguous selected host. A catalog python_path is considered after these overrides and before host discovery. Maya and Houdini plans can discover an existing adjacent mayapy or hython. Blender plans discover an executable under the selected host's versioned runtime directory, such as 4.3/python/bin/python3.11, or under the macOS app bundle's Contents/Resources directory. Multiple runtimes require --python to select one explicitly. Multiple discovered installations of a host require --dcc-path or --python, and a missing hosted interpreter fails preflight. The JSON plan records the selected source in python_source. Pass --execute to prompt for consent and run executable package-install steps. The plan also includes detected_installations from the read-only dccmcp discover scan and uses the first matching host Python when --python is omitted. Set DCC_MCP_DCC_SEARCH_PATHS to a platform-separated list of additional installation roots when a studio volume is outside the standard folders. Execution rolls back completed steps when a later step fails, uses <python> -m pip for pip installs, verifies pip installs with pip show, and verifies git/zip/path installs by checking that their target path exists and is not an empty directory. A DCC is considered online only after its host plugin or sidecar starts, remains alive, and appears in dccmcp list; the CLI does not fake gateway registration during install.
Standalone verify --dcc-type <dcc> --python <target-python> [--catalog <path>] --json checks a pip adapter's catalog-pinned installed distribution version and imports its declared module in that exact interpreter. --python (or DCC_MCP_INSTALL_PYTHON) is required; it never falls back to an ambient interpreter. It reuses the bounded doctor import probe without calling the adapter factory. One 60-second wall-clock ceiling covers the interpreter process, inherited output writers, cleanup, and final spool reads. A failure to confirm cleanup is reported as unavailable. Imports execute module initialization, so use the intended target environment. Bytecode writes are disabled for the probe.
The command bypasses automatic updates, registry/profile reads and gateway startup, and never executes install, uninstall or rollback actions. It reads the bundled catalog by default and does not refresh the online catalog. It emits the existing Install SOP v1 report with only a verification step. Malformed arguments exit 2, plan/preflight failures exit 10, and failed or unavailable imports/version mismatches or incompatible target Core exit 40. The error codes are ADAPTER_VERSION_MISMATCH, ADAPTER_CORE_INCOMPATIBLE, ADAPTER_IMPORT_UNAVAILABLE, and ADAPTER_IMPORT_FAILED. A failed probe also retains safe diagnostic evidence in the optional expected_adapter_version, observed_adapter_version, observed_distribution_source, and observed_core_compatibility verify fields. A successful local check exits 0 with status=partial, directly_usable=false and LIVE_DCC_VERIFICATION_REQUIRED; it cannot establish host readiness. Non-pip verification is currently unsupported and exits 40.
This standalone check does not prove wheel-byte integrity, enforce the full target Core requirements contract, restore a prior version, or complete the automatic install-to-readiness chain. Those Install SOP gates remain open.
Studios with dedicated deployment pipelines can disable automatic install execution by setting DCC_MCP_INSTALL_DISABLED=1. The plan still returns the adapter metadata and next_steps, but install_policy.auto_install_enabled is false, --execute is skipped, and the agent-facing prompt comes from DCC_MCP_INSTALL_DISABLED_PROMPT (supports {adapter}, {dcc_type}, and {version} placeholders). Use this for messages such as "Automatic install is unavailable; contact Pipeline TD to deploy {adapter} for {dcc_type}."
marketplace is the CLI-first discovery surface for official and private skill package catalogs. The built-in source is https://raw.githubusercontent.com/dcc-mcp/marketplace/main/marketplace.json. Additional sources are persisted under ~/.dcc-mcp/marketplace/sources.json, overridden with DCC_MCP_MARKETPLACE_SOURCES_FILE, or supplied ephemerally with DCC_MCP_MARKETPLACE_SOURCES (comma-separated). Installs land in ~/.dcc-mcp/marketplace/<dcc>/<name>/, with DCC_MCP_MARKETPLACE_INSTALL_ROOT overriding the root. The current installer supports install.type: git, install.type: path, and install.type: zip. Host-neutral and multi-DCC entries use ~/.dcc-mcp/marketplace/any/<name>/ and are visible to every matching DCC. The legacy all directory remains a read-only discovery fallback. Remote catalogs, git sources, and package archives require HTTPS. Remote ZIP installs require install.sha256 and reject entries that escape the install root. DCC adapters include ~/.dcc-mcp/marketplace/<dcc> in their skill search paths, so installed skills are discovered on adapter startup or the next dccmcp reload-skills --dcc-type <dcc>. After a reload, run dccmcp load-skill <skill-name> --dcc-type <dcc> --instance-id <id> when the adapter has not auto-loaded that skill yet.
update compares each installed package version against the latest catalog entry. Git packages are reinstalled through staging at the next catalog-pinned commit rather than mutated in place. The local installed-state file is updated with the new version metadata. Installed packages with no matching catalog entry (e.g. the source was removed) are silently skipped.
dccmcp update is for binary updates exposed by the gateway update manifest configured with DCC_MCP_UPDATE_MANIFEST_URL (or GatewayConfig.update_manifest_url). Official release builds refresh a local status cache in a detached process at most once every 24 hours. Failures use a one-hour retry interval and never block the foreground command. A cached available update adds cli_update to structured command output and writes a diagnostic to stderr. Agents should report its current/latest versions; the reported update_policy.apply_command is dccmcp update, which applies the update in one step with no separate confirmation flag. Set DCC_MCP_DISABLE_UPDATE_CHECK=1 to disable passive checks; explicit checks remain available.
update check is safe for both humans and agents because it only reads /v1/update/check; the CLI auto-ensures the local gateway before the request. Its result includes version_status, live/cache timing, target compatibility, and the update policy. An available entry is valid only when its URL and 64-hex SHA-256 are present. dccmcp update streams and verifies that exact asset, stages one installation-bound CLI component, and re-verifies it before replacement on the next launch, all in one step with no confirmation flag. The CLI then restarts with the original arguments and reports version_status: "applied". It never restarts a running server or DCC host. Legacy pending.bin / pending.marker state is unsigned and is quarantined rather than applied.
Official dcc-mcp/dcc-mcp-core update manifests also require a detached Sigstore bundle produced by the release workflow on main. The gateway checks the exact manifest bytes, GitHub Actions certificate identity, and public transparency-log proof before parsing entries. A custom DCC_MCP_UPDATE_MANIFEST_URL is an explicit operator-trusted boundary and is not treated as an official DCC-MCP release.
Update metadata uses a separate HTTP client that follows at most ten redirects, as required by GitHub release downloads. DCC backend requests continue to reject redirects. A redirect without a usable destination fails as an HTTP error instead of being parsed as an empty signature bundle.
The Admin Instances panel is check-only for every binary because the gateway cannot prove a selected local or remote instance's installation root. Run dcc-mcp-server update apply in the exact server environment. It uses the same mandatory digest and apply-time verification contract and stages only the server binary. The standalone dcc-cua CLI is released independently and is accessed through the forwarding command dccmcp cua --; it is not part of the gateway update manifest.
Use dccmcp cua -- manifest to inspect the installed standalone runtime and dccmcp cua -- host-ensure to ensure its shared Host process. If the runtime is missing, install it from the independent dcc-mcp/dcc-cua release and set DCC_MCP_CUA_BINARY when it uses a custom location. The CLI self-update does not install, replace, or restart the CUA runtime.
lint reuses the production dcc-mcp-skills validator, so local checks and runtime loading fail for the same structural problems. It also loads every sibling tools.yaml table and calls each declaration through Core's real router with deterministic mock handlers. A sync declaration must return a result and an async declaration must return a pending job envelope; adapter and DCC code is never executed. CI runs the same command with explicit repository skill roots via just lint-skills.
CLI installation assets
The installer scripts download one of these GitHub Release assets:
| Platform | Asset |
|---|---|
| Linux x86_64 | dccmcp-linux-x86_64 |
| Windows x86_64 | dccmcp-windows-x86_64.exe |
| macOS universal2 | dccmcp-macos-universal2 |
Compatibility raw assets remain available as dcc-mcp-cli-* with the same platform suffixes.
Default install locations are ~/.local/bin on Linux/macOS and %LOCALAPPDATA%\dcc-mcp\bin on Windows. Override with DCC_MCP_INSTALL_DIR or --install-dir.
The official CLI installers install and update only the standalone DCCMCP CLI. The CUA runtime remains an independently installed and independently updated companion.
dcc-mcp-server
Runtime binary for adapters, sidecars, bridges, and the machine-wide gateway daemon. It remains scriptable for CI and operations, but the primary user and agent UX is dccmcp.
Invoking dcc-mcp-server with no subcommand behaves like dcc-mcp-server auto: it ensures a local gateway daemon exists, registers the per-DCC server as a backend, and keeps a lightweight guardian while the backend is alive so the daemon can be re-ensured after a crash.
Run modes
| Command | Role | Gateway behavior |
|---|---|---|
dcc-mcp-server | Implicit auto. | Ensures the standalone gateway daemon, then registers as a backend. |
dcc-mcp-server auto | Explicit form of the default behavior. | Same as the no-subcommand path. |
dcc-mcp-server serve | Per-DCC MCP server. | Ensures the standalone gateway daemon, then registers as a backend. |
dcc-mcp-server serve --no-auto-gateway | Per-DCC MCP server only. | Registers/serves tools but never ensures or binds the gateway port. |
dcc-mcp-server auto --legacy-gateway-election | Legacy embedded gateway mode. | The per-DCC process competes for the gateway port directly. |
dcc-mcp-server sidecar | Per-DCC sidecar worker. | Ensures the standalone gateway daemon, registers a per-dcc-sidecar row, and dispatches through host RPC. Runtime is implemented by dcc-mcp-sidecar. |
dcc-mcp-server translate | External stdio MCP bridge. | Ensures the standalone gateway daemon and registers the bridge as a backend unless --no-register is set. |
dcc-mcp-server gateway | Machine-wide gateway daemon. | Hosts discovery, routing, resources/prompts, admin, and audit without running DCC tools inline. |
dcc-mcp-server update check/apply | Server runtime update helper. | Reads the gateway update manifest on 127.0.0.1:<gateway-port> and stages only the server binary. |
auto and serve share the server flags below. gateway has its own smaller flag surface and rejects server-only flags such as --app.
Core flags
| Flag | Env | Default | Meaning |
|---|---|---|---|
--mcp-port | DCC_MCP_MCP_PORT | 0 | MCP Streamable HTTP port. 0 = OS-assigned. |
--ws-port | DCC_MCP_WS_PORT | 9001 | WebSocket bridge port for non-Python DCC plugins. |
--app | DCC_MCP_APP | "" | App tag ("maya", "blender", "photoshop", …). Feeds skill discovery + the registry row. |
--skill-paths | — | [] | Additional skill search paths (repeatable). |
--server-name | DCC_MCP_SERVER_NAME | "dcc-mcp-server" | Server name advertised to MCP clients. |
--no-bridge | — | false | Disable the WebSocket bridge; MCP HTTP only. |
--host | — | 127.0.0.1 | Host to bind to. |
--pid-file | — | — | Write the server PID to this file while running. |
--force | — | false | Overwrite an existing PID file even if it points at a live process. |
--shutdown-timeout-secs | DCC_MCP_SHUTDOWN_TIMEOUT_SECS | 10 | Graceful shutdown deadline. |
Auto-gateway flags (auto / serve)
| Flag | Env | Default | Meaning |
|---|---|---|---|
--gateway-port | DCC_MCP_GATEWAY_PORT | 9765 | Well-known gateway port to ensure/register with. 0 disables gateway ensure/election for this process. |
--no-ensure-gateway | — | false | Do not auto-launch the standalone gateway daemon before backend registration. |
--legacy-gateway-election | DCC_MCP_LEGACY_GATEWAY_ELECTION | false | Restore the old embedded first-wins election path. |
--no-admin | DCC_MCP_NO_ADMIN | false | Disable the Admin UI on the elected gateway. Admin is enabled by default when a process wins the gateway role. |
--admin-path | DCC_MCP_ADMIN_PATH | /admin | URL prefix for the Admin UI and its JSON APIs. |
--registry-dir | DCC_MCP_REGISTRY_DIR | <temp>/dcc-mcp-registry | shared FileRegistry directory used by CLI local mode, sidecars, and gateway runners. |
--stale-timeout-secs | DCC_MCP_STALE_TIMEOUT | 30 | Seconds without heartbeat before an instance is considered stale. |
--app-version | DCC_MCP_APP_VERSION | — | App version (e.g., "2024.2"); recorded in the registry. |
--scene | DCC_MCP_SCENE | — | Currently-open scene / document; recorded in the registry, used by multi-instance disambiguation. |
--heartbeat-secs | DCC_MCP_HEARTBEAT_INTERVAL | 5 | Heartbeat cadence in seconds. 0 disables. |
Admin audit/trace persistence is configured by environment only: set DCC_MCP_GATEWAY_AUDIT_DIR to a writable directory to persist /admin/api/calls rows in audit.jsonl and dispatch traces in traces.jsonl; set DCC_MCP_GATEWAY_AUDIT_MAX_ROWS (default 5000) to cap each file.
Removed —
--gateway-tool-exposure/DCC_MCP_GATEWAY_TOOL_EXPOSUREare gone. The gateway surface is now unconditionally minimal (seedocs/guide/rest-api-surface.md).Removed —
--gateway-cursor-safe-tool-names/DCC_MCP_GATEWAY_CURSOR_SAFE_TOOL_NAMES. Aggregated gatewayprompts/listalways emits the cursor-safei_<id8>__<escaped>wire form (#656).
Standalone gateway flags (gateway)
| Flag | Env | Default | Meaning |
|---|---|---|---|
--daemon | DCC_MCP_DAEMON | false | Respawn the current executable as a detached gateway child and exit the parent. Unix children start in a new session; Windows children use detached process flags. Respawn failures fail before the parent exits. |
--restart | — | false | Restart a running gateway daemon. Reads the PID from --pidfile, gracefully stops the old process, waits for exit (up to 15 s), then spawns a fresh detached gateway and polls /health until ready. Requires --pidfile. Handles stale pidfiles (dead process): prints a warning, removes the stale pidfile, and spawns a fresh gateway. |
--pidfile PATH | DCC_MCP_PIDFILE | — | Implies daemon mode. The pidfile records the detached child PID and is removed when that child exits cleanly. Pidfile write failures fail before the parent exits. |
--gateway-persist | DCC_MCP_GATEWAY_PERSIST | false | Keep the gateway daemon alive with no registered backends. |
--gateway-idle-timeout-secs | DCC_MCP_GATEWAY_IDLE_TIMEOUT_SECS | 30 | Seconds to wait after the last backend disappears before shutdown. 0 disables idle shutdown. |
Daemon auto-ensure paths pass a bounded idle timeout by default unless DCC_MCP_GATEWAY_IDLE_TIMEOUT_SECS is set. The user-facing dccmcp gateway daemon start wrapper passes 0 by default so the explicitly managed machine-wide daemon does not exit just because no DCC is currently registered.
The env-backed boolean flags (--daemon, --no-admin, --gateway-persist, --semantic-search-enabled, --discover-mdns) accept every boolish spelling — 1/0, true/false, yes/no, on/off — both as a flag value and through the environment variable, so DCC_MCP_GATEWAY_PERSIST=1 is equivalent to --gateway-persist.
The same spellings work for the server-level boolean flags that read an environment variable: --legacy-gateway-election, --no-admin, --no-log-file, and --advertise-mdns. An explicit command-line value always wins over the environment, so --gateway-persist=false turns persist mode off even when DCC_MCP_GATEWAY_PERSIST=1 is set in the host environment.
Translate flags (dcc-mcp-server translate)
| Flag | Env | Default | Meaning |
|---|---|---|---|
--stdio | — | — | Command launching the stdio MCP server to bridge (e.g. "uvx mcp-server-git"). |
--app-type | — | external | App tag used for the gateway registration row. |
--restart-on-exit | — | true | Restart the stdio child when it exits. |
--max-restarts | — | 10 | Maximum restart attempts. 0 = unlimited. |
--bridge-timeout-secs | DCC_MCP_BRIDGE_TIMEOUT_SECS | 600 | Upper bound on how long a caller waits for the child's response. 0 waits indefinitely. A child that never answers the request id fails the call closed when the bound expires instead of pinning the HTTP request open. |
--stdio launches a program directly without a shell. Single or double quotes keep paths and arguments containing spaces together; empty quoted arguments are preserved. Unquoted Unicode whitespace separates arguments. Outside quotes, backslash-escaped spaces are supported for non-Windows paths such as /opt/my\ tools/python3. Windows drive, rooted, and relative paths (including values after =) keep their backslash separators: use quotes for spaces, for example "C:\Program Files\Python311\python.exe" -u C:\scripts\bridge.py. A bare backslash stays a root path; quote arguments that start with whitespace. Hash-prefixed arguments, shell operators, and variable references stay literal; there is no comment processing or expansion. Unterminated quotes are rejected. Quoting needed by your outer shell is separate from these command-string rules.
Responses are routed by JSON-RPC request id, so a response whose id matches no request in flight is dropped and the child keeps being read. Integers and exactly-integral floats name the same id (2 and 2.0 correlate).
File-logging flags
| Flag | Env | Default | Meaning |
|---|---|---|---|
--no-log-file | DCC_MCP_NO_LOG_FILE | false | Disable the rotating file logger (stderr logging stays on). |
--log-dir | DCC_MCP_LOG_DIR | platform default | Log file directory. |
--log-max-size | DCC_MCP_LOG_MAX_SIZE | 10 MiB | Max bytes per log file before size-triggered rotation. |
--log-max-files | DCC_MCP_LOG_MAX_FILES | 7 | How many rolled files to retain. |
--log-rotation | DCC_MCP_LOG_ROTATION | "both" | Rotation policy: size, daily, both. |
--log-file-prefix | DCC_MCP_LOG_FILE_PREFIX | "dcc-mcp" | Filename prefix. Full filename: <prefix>.<pid>.<YYYYMMDD>.log. |
--log-retention-days | DCC_MCP_LOG_RETENTION_DAYS | 7 | Age-based retention. 0 disables. |
--log-max-total-size-mb | DCC_MCP_LOG_MAX_TOTAL_SIZE_MB | 100 | Total directory cap in MiB. 0 disables. |
Capture replay/diff
dcc-mcp-server capture works on offline traffic capture files produced by DCC_MCP_TRAFFIC_CAPTURE=jsonl:<path> or DCC_MCP_TRAFFIC_CONFIG=<yaml>. It never enables capture itself and does not need a live DCC unless you use replay.
If the YAML config includes an admin_live sink, the retained in-memory window can be downloaded as JSONL from /admin/api/traffic/export (or the stable mirror /v1/debug/traffic/export) and then passed to capture replay or capture diff like any other capture file.
# Replay recorded client -> gateway requests against a live gateway MCP endpoint.
dcc-mcp-server capture replay ./captures/run.sqlite \
--target http://127.0.0.1:9765/mcp \
--session sess_01HQX \
--assert outputs-compatible
# Compare two captures frame-by-frame.
dcc-mcp-server capture diff ./captures/before.sqlite ./captures/after.sqlite \
--before-session sess_before \
--after-session sess_afterReplay assertion modes:
| Mode | Contract |
|---|---|
outputs-compatible | HTTP status and JSON-RPC result/error shape must match the recorded response. |
outputs-equal | HTTP status and response JSON must match exactly. |
outputs-ignored | Requests are sent and counted, but response bodies are not compared. |
Use --format jsonl or --format sqlite when the filename extension is not enough for auto-detection. --rebind-instance-id <id> rewrites captured gateway tool slugs such as maya.old.tool plus instance_id fields so a recording can be replayed against the current live instance.
Typical invocations
# 1) Backwards-compatible auto mode (same as: dcc-mcp-server auto --app maya).
dcc-mcp-server --app maya
# 2) Per-DCC server only, never competing for the shared gateway port.
dcc-mcp-server serve --no-auto-gateway --app maya
# 3) Daemon-backed backend on a workstation with multiple DCCs.
# Each process ensures the same gateway daemon and registers as a backend.
dcc-mcp-server auto --app maya --server-name maya-shotgun-alpha \
--scene /shots/ep101/sh0200/shot.ma \
--log-dir /var/log/dcc-mcp
# 4) Workstation-wide gateway daemon.
dcc-mcp-server gateway --host 127.0.0.1 --port 9765 \
--registry-dir /var/lib/dcc-mcp
# 4b) Same gateway as an explicit detached daemon.
dcc-mcp-server gateway --host 127.0.0.1 --port 9765 \
--registry-dir /var/lib/dcc-mcp \
--daemon --pidfile /var/run/dcc-mcp-gateway.pid
# 5) Bridge an external stdio MCP server behind the same daemon gateway.
dcc-mcp-server translate --stdio "uvx mcp-server-git" \
--app-type git --port 0dcc-mcp-tunnel-relay
Public-facing WebSocket relay that accepts registrations from local tunnel agents and forwards multiplexed MCP sessions from remote AI assistants.
Build with cargo build --bin dcc-mcp-tunnel-relay --features bin.
| Flag | Env | Default | Meaning |
|---|---|---|---|
--jwt-secret-file | DCC_MCP_TUNNEL_RELAY_JWT_SECRET_FILE | required | Path to a file containing the HS256 JWT secret. ≥32 bytes in production (openssl rand -base64 48). The file is read so the bytes never appear in ps output. |
--public-host | DCC_MCP_TUNNEL_RELAY_PUBLIC_HOST | localhost | Public hostname embedded in minted tunnel URLs (ends up in the JWT iss claim). |
--base-url | DCC_MCP_TUNNEL_RELAY_BASE_URL | ws://localhost:9870 | WebSocket base URL; prepended to per-tunnel paths in RegisterAck.public_url. |
--agent-bind | DCC_MCP_TUNNEL_RELAY_AGENT_BIND | 0.0.0.0:9870 | TCP bind for the agent control plane. |
--frontend-bind | DCC_MCP_TUNNEL_RELAY_FRONTEND_BIND | 0.0.0.0:9871 | TCP bind for the remote-client frontend. |
--ws-frontend-bind | DCC_MCP_TUNNEL_RELAY_WS_FRONTEND_BIND | — | Optional WebSocket frontend bind (/tunnel/<id> upgrade). Omit to disable. |
--admin-bind | DCC_MCP_TUNNEL_RELAY_ADMIN_BIND | — | Optional read-only admin endpoint bind (GET /tunnels, GET /healthz). Omit to disable. |
--stale-timeout-secs | DCC_MCP_TUNNEL_RELAY_STALE_TIMEOUT_SECS | 30 | Seconds without heartbeat before a tunnel is evicted from the registry. |
--max-tunnels | DCC_MCP_TUNNEL_RELAY_MAX_TUNNELS | 0 | Hard cap on simultaneously-registered tunnels. 0 disables the cap. |
Shutdown: SIGINT / SIGTERM (or Ctrl+C on Windows) drains the accept loops and waits for live sessions to close.
dcc-mcp-tunnel-relay \
--jwt-secret-file /etc/dcc-mcp/tunnel-secret \
--public-host relay.example.com \
--base-url wss://relay.example.com \
--agent-bind 0.0.0.0:9870 \
--frontend-bind 0.0.0.0:9871 \
--ws-frontend-bind 0.0.0.0:9880 \
--admin-bind 127.0.0.1:9877dcc-mcp-tunnel-agent
Local sidecar that registers with a relay and bridges per-session traffic to a local DCC MCP server. Keeps the connection alive across transient failures with a configurable reconnect policy.
Build with cargo build --bin dcc-mcp-tunnel-agent --features bin.
| Flag | Env | Default | Meaning |
|---|---|---|---|
--relay-url | DCC_MCP_TUNNEL_AGENT_RELAY_URL | required | Relay WebSocket URL (wss://relay.example.com). |
--token-file | DCC_MCP_TUNNEL_AGENT_TOKEN_FILE | required | Path to the bearer JWT file (minted by dcc_mcp_tunnel_protocol::auth::issue). |
--dcc | DCC_MCP_TUNNEL_AGENT_DCC | required | DCC tag this agent identifies with; must be in the JWT's allowed_dcc list. |
--local-target | DCC_MCP_TUNNEL_AGENT_LOCAL_TARGET | required | Local MCP HTTP server address (host:port) to bridge to. |
--heartbeat-secs | DCC_MCP_TUNNEL_AGENT_HEARTBEAT_SECS | 10 | Heartbeat cadence. Stay comfortably under the relay's --stale-timeout-secs. |
--reconnect-policy | DCC_MCP_TUNNEL_AGENT_RECONNECT_POLICY | exponential | constant or exponential. |
--reconnect-initial-secs | DCC_MCP_TUNNEL_AGENT_RECONNECT_INITIAL_SECS | 2 | Exponential: first-retry delay. |
--reconnect-max-secs | DCC_MCP_TUNNEL_AGENT_RECONNECT_MAX_SECS | 60 | Exponential: hard cap on retry delay. |
--reconnect-constant-secs | DCC_MCP_TUNNEL_AGENT_RECONNECT_CONSTANT_SECS | 5 | Constant: flat delay. |
--capabilities | DCC_MCP_TUNNEL_AGENT_CAPABILITIES | [] | Comma-separated capability tags forwarded to remote clients via /tunnels. |
A non-retryable Rejected error (bad JWT, DCC-type mismatch) exits the process with a non-zero code so supervisors don't restart-loop on a misconfiguration.
dcc-mcp-tunnel-agent \
--relay-url wss://relay.example.com \
--token-file ~/.config/dcc-mcp/tunnel.jwt \
--dcc maya \
--local-target 127.0.0.1:8765 \
--heartbeat-secs 10 \
--reconnect-policy exponential \
--reconnect-initial-secs 2 \
--reconnect-max-secs 60Deployment scenarios
Scenario 1 — Embedded in a DCC host
The Maya / Blender / Houdini plug-in loads dcc_mcp_core into the host's Python interpreter and calls create_skill_server() directly. No external binary involved. Most end-user deployments look like this.
See examples/host_adapter_template.py for the plug-in skeleton.
Scenario 2 — Standalone per-DCC server
One dcc-mcp-server process per workstation launched by the DCC supervisor or by a user autostart. Covers headless studios running things like mayapy batch or a Python-only renderer that still wants to expose capabilities via MCP + REST.
dcc-mcp-server --app maya --scene /shots/ep101/sh0200/shot.maScenario 3 — Gateway aggregating multiple DCC servers
Multiple dcc-mcp-server processes on the same workstation. The first one binds the gateway port 9765 and indexes the others. Clients connect to 127.0.0.1:9765/mcp (or /v1/*), use MCP search / describe for discovery, then execute through REST /v1/call or /v1/call_batch to reach any DCC through one endpoint.
Example manifests: examples/compose/gateway-ha/ and examples/k8s/gateway-ha/.
Scenario 4 — Remote relay + tunnel agent
The public relay runs on an operator-owned host; each artist workstation runs an agent that registers with it. SaaS AI clients (Claude.ai, Cursor desktop behind an enterprise firewall, etc.) connect to the relay's frontend and get forwarded to the workstation's local MCP server.
# On the relay host (public internet):
dcc-mcp-tunnel-relay \
--jwt-secret-file /etc/dcc-mcp/tunnel-secret \
--public-host relay.example.com \
--base-url wss://relay.example.com
# On the artist's workstation:
dcc-mcp-tunnel-agent \
--relay-url wss://relay.example.com \
--token-file ~/.config/dcc-mcp/tunnel.jwt \
--dcc maya --local-target 127.0.0.1:8765Mint JWTs with dcc_mcp_tunnel_protocol::auth::issue; scope them per artist / per DCC via the allowed_dcc claim.
Scenario 5 — CI / test harness
Integration tests spin up an in-process McpHttpServer and hit its /v1/* endpoints directly. No external binary; no gateway.
See crates/dcc-mcp-skill-rest/src/tests.rs and crates/dcc-mcp-http/tests/http/ for reference patterns.
Related reading
- REST API surface — the
/v1/*contract. - Gateway diagnostics — how to read logs + metrics when multiple servers contend for the gateway.