Skip to main content

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

Project description

dcc-mcp-substance3d-painter

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. The default endpoint is http://127.0.0.1:8765/mcp.

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. Painter discovers the packaged plugins/dcc_mcp_substance3d_painter_plugin.py entry point. For unattended launches, set SUBSTANCE_PAINTER_STARTUP_PLUGINS=dcc_mcp_substance3d_painter_plugin so Painter starts the adapter without an interactive Python-menu action.

Set DCC_MCP_SUBSTANCE3D_PAINTER_PORT before launching Painter to choose a different port. 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.1.2.tar.gz (12.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.1.2-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for dcc_mcp_substance3d_painter-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e1abd18b4c324aa378de98dd28221b216e5fc8dc1f616d167b925a5676f879de
MD5 9013e00a1fb7575282265588ae29bf34
BLAKE2b-256 6f6371fb81e232080b05eb9c7d5022787cf756fcc55baeada7b370e26e5fe13d

See more details on using hashes here.

Provenance

The following attestation bundles were made for dcc_mcp_substance3d_painter-0.1.2.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.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for dcc_mcp_substance3d_painter-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e9d8c411d4e8de590404d2aa07b74f664fc9d84e06756de3b77e542e088d5ccd
MD5 3f5f168183411d41a1c60b9529df32e0
BLAKE2b-256 8b4ceacaa7e6a5d73284b53a1bff05d807a48f6ddd827c6fad50cb05a19de752

See more details on using hashes here.

Provenance

The following attestation bundles were made for dcc_mcp_substance3d_painter-0.1.2-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