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.py; enable it from the Python menu.

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 inspects the current project and texture sets. Its typed export tool exports texture sets using a caller-provided Painter export preset URL, avoiding 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.1.tar.gz (7.7 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.1-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for dcc_mcp_substance3d_painter-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b9eeee3e152ad6da503ff56cda3d902f93834c6d6c21c51c2c7878e97cb9d245
MD5 841e8baf1c06a0b29591a7d9a6bb4aff
BLAKE2b-256 9a695b51327031d35573e34d9cdfc26d7364db4918e30dc7c6cff984b33747e8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for dcc_mcp_substance3d_painter-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cfabf6e5cee866adf239ddc4697ff45a115fae1179f7be459901bf71c6481561
MD5 42443c83bf4d9da71b350239f6f7eabd
BLAKE2b-256 2d78cd6a660e22e970fb3bba0a918d7383fb70ca766ddf4602838feb4fdb4a98

See more details on using hashes here.

Provenance

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