Skip to main content

Substance 3D Painter adapter for the DCC Model Context Protocol ecosystem

Project description

dcc-mcp-substance3d-painter

DCC-MCP · SUBSTANCE3D-PAINTER

Agent workflow

AI agents should use the shared gateway through dcc-mcp-cli; IDE users may continue to use the MCP endpoint. Prefer typed skills and tools over raw scripts.

Install or update the CLI

dcc-mcp-cli is the preferred control path for every shell-capable agent. If it is missing, ask the user before installing the latest official release:

# Linux/macOS
curl -fsSL https://raw.githubusercontent.com/dcc-mcp/dcc-mcp-core/main/scripts/install-cli.sh | sh

# Windows PowerShell
powershell -ExecutionPolicy Bypass -c "irm https://raw.githubusercontent.com/dcc-mcp/dcc-mcp-core/main/scripts/install-cli.ps1 | iex"

Keep an official build current through the release manifest:

dcc-mcp-cli update check
dcc-mcp-cli update apply

update apply downloads and stages the latest CLI for the next launch. It does not update a running dcc-mcp-server; update that server in its own environment.

dcc-mcp-cli dcc-types
dcc-mcp-cli list
dcc-mcp-cli search --query "<task>" --dcc-type substance3d_painter
dcc-mcp-cli describe <tool-slug>
dcc-mcp-cli call <tool-slug> --json '{"key":"value"}'

dcc-types reports release-catalog support; list reports live sessions. If a tool belongs to an inactive progressive skill, call dcc-mcp-cli load-skill <skill-name> --dcc-type substance3d_painter before retrying. For post-task improvement, attach a stable session id with --meta-json, query dcc-mcp-cli stats --range 24h --session-id <task-id>, then pass the bounded evidence to the review_skill_improvement prompt from dcc-mcp-skills-creator.

Substance 3D Painter adapter for the DCC Model Context Protocol (MCP).

It embeds a Streamable HTTP MCP server in Painter and routes host API calls through Painter's Qt main thread. Painter uses an OS-assigned port by default and advertises the endpoint through DCC-MCP discovery.

Install and load

Install into the Python environment Painter uses:

python -m pip install dcc-mcp-substance3d-painter

Point SUBSTANCE_PAINTER_PLUGINS_PATH at the installed package's dcc_mcp_substance3d_painter/painter folder and add the installation root to PYTHONPATH. Painter discovers the packaged startup/dcc_mcp_substance3d_painter_plugin.py entry point and starts the adapter automatically.

Set DCC_MCP_SUBSTANCE3D_PAINTER_PORT before launching Painter only when a fixed port is required; 0 keeps automatic allocation. Standard DCC_MCP_GATEWAY_PORT and DCC_MCP_REGISTRY_DIR settings are also honoured.

Bundled skills

painter-project provides typed tools for a complete material-authoring pass:

  • inspect the project and texture sets;
  • create PBR fill layers;
  • search Painter resources and apply smart materials;
  • list export presets, save the .spp, and export textures.

The tools use Painter resource and preset URLs supplied by Painter itself. They do not expose raw JavaScript or arbitrary script execution.

Development

python -m pip install -e ".[dev]"
python -m pytest
ruff check src tests tools
python -m build

Releases use release-please. The release.yml workflow publishes through the pypi environment using PyPI Trusted Publishing.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dcc_mcp_substance3d_painter-0.2.0.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dcc_mcp_substance3d_painter-0.2.0-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file dcc_mcp_substance3d_painter-0.2.0.tar.gz.

File metadata

File hashes

Hashes for dcc_mcp_substance3d_painter-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0898bbd4fe1ac5291b6b9b9cb8a99e7211ef2200aef58e784a37475985e5665b
MD5 90234fc7a673355ff6e95fabe05eb9e3
BLAKE2b-256 7e157d613255d90a8c0a611a2fcc6600bc23baf069212166e95f674f5e901c24

See more details on using hashes here.

Provenance

The following attestation bundles were made for dcc_mcp_substance3d_painter-0.2.0.tar.gz:

Publisher: release.yml on dcc-mcp/dcc-mcp-substance3d-painter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dcc_mcp_substance3d_painter-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dcc_mcp_substance3d_painter-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dfd0cbd076c6cc34fc3fdbd751edafdf497a19a925a6046baa24afdae8d6632f
MD5 98054b329eead0ec43bf71c28322a520
BLAKE2b-256 22369b8c6a7d95e924aa5daef0464ce4e3e970db352ce78bd4ef8b4dd65176c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for dcc_mcp_substance3d_painter-0.2.0-py3-none-any.whl:

Publisher: release.yml on dcc-mcp/dcc-mcp-substance3d-painter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page