blender-connector 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. blender_connector-0.2.0/.bumpversion.cfg +8 -0
  2. blender_connector-0.2.0/.github/workflows/connector.yml +90 -0
  3. blender_connector-0.2.0/.github/workflows/image-smoke.yml +74 -0
  4. blender_connector-0.2.0/.pre-commit-config.yaml +70 -0
  5. blender_connector-0.2.0/LICENSE +21 -0
  6. blender_connector-0.2.0/MANIFEST.in +16 -0
  7. blender_connector-0.2.0/PKG-INFO +186 -0
  8. blender_connector-0.2.0/README.md +158 -0
  9. blender_connector-0.2.0/blender_connector/__init__.py +49 -0
  10. blender_connector-0.2.0/blender_connector/__main__.py +4 -0
  11. blender_connector-0.2.0/blender_connector/content_gen/__init__.py +28 -0
  12. blender_connector-0.2.0/blender_connector/content_gen/errors.py +32 -0
  13. blender_connector-0.2.0/blender_connector/content_gen/ontology.py +191 -0
  14. blender_connector-0.2.0/blender_connector/content_gen/prompts.py +206 -0
  15. blender_connector-0.2.0/blender_connector/content_gen/skill.py +249 -0
  16. blender_connector-0.2.0/blender_connector/content_gen/sources.py +247 -0
  17. blender_connector-0.2.0/blender_connector/mcp/__init__.py +71 -0
  18. blender_connector-0.2.0/blender_connector/mcp_config.json +16 -0
  19. blender_connector-0.2.0/blender_connector/mcp_server.py +22 -0
  20. blender_connector-0.2.0/blender_connector/ontology/blender.ttl +260 -0
  21. blender_connector-0.2.0/blender_connector/probe.py +98 -0
  22. blender_connector-0.2.0/blender_connector/prompts/__init__.py +5 -0
  23. blender_connector-0.2.0/blender_connector/prompts/blender-assets.json +40 -0
  24. blender_connector-0.2.0/blender_connector/prompts/blender-build_scene.json +39 -0
  25. blender_connector-0.2.0/blender_connector/prompts/blender-camera_lighting.json +39 -0
  26. blender_connector-0.2.0/blender_connector/prompts/blender-generative_3d.json +41 -0
  27. blender_connector-0.2.0/blender_connector/prompts/blender-inspect_scene.json +39 -0
  28. blender_connector-0.2.0/blender_connector/prompts/blender-lookdev_lighting_artist.json +74 -0
  29. blender_connector-0.2.0/blender_connector/prompts/blender-materials.json +39 -0
  30. blender_connector-0.2.0/blender_connector/prompts/blender-operator.json +105 -0
  31. blender_connector-0.2.0/blender_connector/prompts/blender-review_viewport.json +39 -0
  32. blender_connector-0.2.0/blender_connector/prompts/blender-rig_animate.json +40 -0
  33. blender_connector-0.2.0/blender_connector/prompts/blender-scene_builder.json +82 -0
  34. blender_connector-0.2.0/blender_connector/prompts/blender-session_controls.json +39 -0
  35. blender_connector-0.2.0/blender_connector/prompts/blender-technical_animator.json +73 -0
  36. blender_connector-0.2.0/blender_connector/release.json +5 -0
  37. blender_connector-0.2.0/blender_connector/skills/blender/SKILL.md +91 -0
  38. blender_connector-0.2.0/blender_connector/skills/blender-assets/SKILL.md +86 -0
  39. blender_connector-0.2.0/blender_connector/skills/blender-build-scene/SKILL.md +85 -0
  40. blender_connector-0.2.0/blender_connector/skills/blender-camera-lighting/SKILL.md +84 -0
  41. blender_connector-0.2.0/blender_connector/skills/blender-generative-3d/SKILL.md +96 -0
  42. blender_connector-0.2.0/blender_connector/skills/blender-inspect-scene/SKILL.md +83 -0
  43. blender_connector-0.2.0/blender_connector/skills/blender-materials/SKILL.md +84 -0
  44. blender_connector-0.2.0/blender_connector/skills/blender-review-viewport/SKILL.md +84 -0
  45. blender_connector-0.2.0/blender_connector/skills/blender-rig-animate/SKILL.md +94 -0
  46. blender_connector-0.2.0/blender_connector/skills/blender-session-controls/SKILL.md +74 -0
  47. blender_connector-0.2.0/blender_connector/upstreams.py +108 -0
  48. blender_connector-0.2.0/blender_connector.egg-info/PKG-INFO +186 -0
  49. blender_connector-0.2.0/blender_connector.egg-info/SOURCES.txt +108 -0
  50. blender_connector-0.2.0/blender_connector.egg-info/dependency_links.txt +1 -0
  51. blender_connector-0.2.0/blender_connector.egg-info/entry_points.txt +9 -0
  52. blender_connector-0.2.0/blender_connector.egg-info/requires.txt +15 -0
  53. blender_connector-0.2.0/blender_connector.egg-info/top_level.txt +1 -0
  54. blender_connector-0.2.0/docs/agent-readiness.json +28 -0
  55. blender_connector-0.2.0/docs/architecture.md +42 -0
  56. blender_connector-0.2.0/docs/capabilities/mcp.json +49 -0
  57. blender_connector-0.2.0/docs/deployment.md +135 -0
  58. blender_connector-0.2.0/docs/glossary.md +18 -0
  59. blender_connector-0.2.0/docs/index.md +8 -0
  60. blender_connector-0.2.0/docs/installation.md +59 -0
  61. blender_connector-0.2.0/docs/overview.md +22 -0
  62. blender_connector-0.2.0/docs/spec-delivery.md +14 -0
  63. blender_connector-0.2.0/docs/upstreams.example.toml +20 -0
  64. blender_connector-0.2.0/docs/usage.md +43 -0
  65. blender_connector-0.2.0/mkdocs.yml +15 -0
  66. blender_connector-0.2.0/pyproject.toml +137 -0
  67. blender_connector-0.2.0/pytest.ini +10 -0
  68. blender_connector-0.2.0/requirements.txt +2 -0
  69. blender_connector-0.2.0/scripts/bootstrap.sh +61 -0
  70. blender_connector-0.2.0/scripts/generate_blender_content.py +247 -0
  71. blender_connector-0.2.0/scripts/smoke_images.py +97 -0
  72. blender_connector-0.2.0/setup.cfg +4 -0
  73. blender_connector-0.2.0/specs/README.md +17 -0
  74. blender_connector-0.2.0/specs/blender-connector/checklists/requirements.md +22 -0
  75. blender_connector-0.2.0/specs/blender-connector/contracts/arbora-fleet.md +14 -0
  76. blender_connector-0.2.0/specs/blender-connector/contracts/upstream-registry.md +16 -0
  77. blender_connector-0.2.0/specs/blender-connector/data-model.md +8 -0
  78. blender_connector-0.2.0/specs/blender-connector/plan.md +123 -0
  79. blender_connector-0.2.0/specs/blender-connector/quickstart.md +19 -0
  80. blender_connector-0.2.0/specs/blender-connector/requirements.md +27 -0
  81. blender_connector-0.2.0/specs/blender-connector/research.md +8 -0
  82. blender_connector-0.2.0/specs/blender-connector/spec.md +114 -0
  83. blender_connector-0.2.0/specs/blender-connector/tasks.md +25 -0
  84. blender_connector-0.2.0/specs/blender-connector/test-spec.md +29 -0
  85. blender_connector-0.2.0/specs/blender-connector-content/checklists/requirements.md +22 -0
  86. blender_connector-0.2.0/specs/blender-connector-content/contracts/medulla-ontology.md +16 -0
  87. blender_connector-0.2.0/specs/blender-connector-content/data-model.md +9 -0
  88. blender_connector-0.2.0/specs/blender-connector-content/plan.md +98 -0
  89. blender_connector-0.2.0/specs/blender-connector-content/quickstart.md +13 -0
  90. blender_connector-0.2.0/specs/blender-connector-content/requirements.md +15 -0
  91. blender_connector-0.2.0/specs/blender-connector-content/research.md +7 -0
  92. blender_connector-0.2.0/specs/blender-connector-content/spec.md +85 -0
  93. blender_connector-0.2.0/specs/blender-connector-content/tasks.md +13 -0
  94. blender_connector-0.2.0/specs/blender-connector-content/test-spec.md +13 -0
  95. blender_connector-0.2.0/tests/conftest.py +71 -0
  96. blender_connector-0.2.0/tests/fixtures/fake_blender_mcp.py +66 -0
  97. blender_connector-0.2.0/tests/test_content_drift.py +78 -0
  98. blender_connector-0.2.0/tests/test_content_quality.py +86 -0
  99. blender_connector-0.2.0/tests/test_content_surfaces.py +43 -0
  100. blender_connector-0.2.0/tests/test_drift.py +67 -0
  101. blender_connector-0.2.0/tests/test_image_smoke.py +73 -0
  102. blender_connector-0.2.0/tests/test_image_startup.py +234 -0
  103. blender_connector-0.2.0/tests/test_images.py +183 -0
  104. blender_connector-0.2.0/tests/test_local_mode.py +77 -0
  105. blender_connector-0.2.0/tests/test_ontology_rollup.py +133 -0
  106. blender_connector-0.2.0/tests/test_phase1_gate.py +63 -0
  107. blender_connector-0.2.0/tests/test_probe.py +39 -0
  108. blender_connector-0.2.0/tests/test_remote_overlay.py +45 -0
  109. blender_connector-0.2.0/tests/test_tool_budget.py +49 -0
  110. blender_connector-0.2.0/tests/test_upstream_declarations.py +47 -0
@@ -0,0 +1,8 @@
1
+ [bumpversion]
2
+ current_version = 0.2.0
3
+ commit = True
4
+ tag = True
5
+
6
+ [bumpversion:file:pyproject.toml]
7
+ search = version = "{current_version}"
8
+ replace = version = "{new_version}"
@@ -0,0 +1,90 @@
1
+ name: Connector
2
+
3
+ # Copy to .github/workflows/connector.yml (reference/ci-standard.md, "Connector pipeline").
4
+ # The ONE caller a connector carries; every pipeline change is made in pipelines'
5
+ # connector_pipeline.yml. Routing by event:
6
+ # pull_request gates, affected tests, image check
7
+ # push to main org-site notify + main checks; never publishes
8
+ # push of a v* tag PyPI, then Docker, and GitHub Pages
9
+ # schedule, repository_dispatch, workflow_dispatch SDK rebuild
10
+ # Releases are cut by the owner with gh: scripts/release_connector.sh in pipelines (the owner's tag push publishes).
11
+ # Per-connector differences are `with:` inputs of the job below (all defaulted).
12
+ # The GitHub Pages environment needs a `v*` tag deployment policy.
13
+
14
+ on:
15
+ pull_request:
16
+ branches: [main]
17
+ push:
18
+ branches: [main]
19
+ tags: ['v*']
20
+ schedule:
21
+ - cron: '17 5 * * *'
22
+ repository_dispatch:
23
+ types: [sdk-release]
24
+ workflow_dispatch:
25
+ inputs:
26
+ release_repair:
27
+ description: Republish the already published container after the reviewed public-wheel guard.
28
+ required: false
29
+ default: false
30
+ type: boolean
31
+ release_source_sha:
32
+ description: Full SHA of the original package source that produced the public wheel.
33
+ required: false
34
+ default: ''
35
+ type: string
36
+ release_source_epoch:
37
+ description: Exact SOURCE_DATE_EPOCH used to generate the public connector payload.
38
+ required: false
39
+ default: ''
40
+ type: string
41
+ legacy_profile:
42
+ description: Preserve the reviewed tracked wheel-only package tree without renderer generation.
43
+ required: false
44
+ default: false
45
+ type: boolean
46
+
47
+ # Pull requests cancel superseded runs; every other event queues per event and ref and never cancels.
48
+ concurrency:
49
+ group: ${{ github.event_name == 'pull_request' && format('pr-{0}-{1}', github.workflow, github.event.pull_request.number) || format('connector-{0}-{1}', github.event_name, github.ref) }}
50
+ cancel-in-progress: ${{ github.event_name == 'pull_request' }}
51
+
52
+ permissions: {}
53
+
54
+ jobs:
55
+ pipeline:
56
+ permissions:
57
+ contents: write
58
+ pages: write
59
+ id-token: write
60
+ uses: Knuckles-Team/pipelines/.github/workflows/connector_pipeline.yml@main
61
+ with:
62
+ release_repair: ${{ inputs.release_repair || false }}
63
+ release_source_sha: ${{ inputs.release_source_sha || '' }}
64
+ release_source_epoch: ${{ inputs.release_source_epoch || '' }}
65
+ legacy_profile: ${{ inputs.legacy_profile || false }}
66
+ secrets:
67
+ PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
68
+ DOCKER_REGISTRY: ${{ secrets.DOCKER_REGISTRY }}
69
+ DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
70
+ DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
71
+ DOCKER_REPOSITORY: ${{ secrets.DOCKER_REPOSITORY }}
72
+ org_site_app_id: ${{ secrets.org_site_app_id }}
73
+ org_site_app_private_key: ${{ secrets.org_site_app_private_key }}
74
+
75
+ # The one required status check (reference/ci-standard.md): named in the caller so the
76
+ # ruleset context is exactly `CI required`. Skipped routes pass; failed or cancelled fail.
77
+ ci-required:
78
+ name: CI required
79
+ if: always()
80
+ needs: [pipeline]
81
+ runs-on: ubuntu-latest
82
+ timeout-minutes: 5
83
+ permissions: {}
84
+ steps:
85
+ - name: Fail on a failed or cancelled pipeline (skipped is fine)
86
+ env:
87
+ RESULT: ${{ needs.pipeline.result }}
88
+ run: |
89
+ echo "pipeline result: $RESULT"
90
+ case "$RESULT" in failure|cancelled) echo "::error::the pipeline ended $RESULT"; exit 1;; esac
@@ -0,0 +1,74 @@
1
+ name: image-smoke
2
+
3
+ # CONN-BLENDER-CONNECTOR-R018: build both images, start the compose bundle with no GPU and prove
4
+ # the scene round trip through the connector. The images are built from the files the shared
5
+ # pipeline renders; the connector image installs the wheel built from this checkout.
6
+ on:
7
+ pull_request:
8
+ paths:
9
+ - pyproject.toml
10
+ - image/**
11
+ - deploy/**
12
+ - scripts/smoke_images.py
13
+ - .github/workflows/image-smoke.yml
14
+ push:
15
+ branches: [main]
16
+ paths:
17
+ - pyproject.toml
18
+ - image/**
19
+ - deploy/**
20
+ - scripts/smoke_images.py
21
+ - .github/workflows/image-smoke.yml
22
+ workflow_dispatch:
23
+
24
+ permissions:
25
+ contents: read
26
+
27
+ concurrency:
28
+ group: image-smoke-${{ github.ref }}
29
+ cancel-in-progress: true
30
+
31
+ jobs:
32
+ smoke:
33
+ runs-on: ubuntu-latest
34
+ timeout-minutes: 60
35
+ permissions:
36
+ contents: read
37
+ steps:
38
+ - name: Check out the repository
39
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
40
+ with:
41
+ persist-credentials: false
42
+ - name: Install uv
43
+ uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
44
+ - name: Build the wheel and render the image files
45
+ run: |
46
+ set -euo pipefail
47
+ uv build --wheel --out-dir dist
48
+ uvx --from "git+https://github.com/Knuckles-Team/pipelines@main" pipelines-connector render --root . --out docker
49
+ # The rendered connector image installs the release from the package index; install the
50
+ # wheel built here instead, from a named build context.
51
+ sed -i 's|^FROM builder-base AS builder-mcp$|&\nCOPY --from=wheelhouse . /wheelhouse|; s|uv pip install --system|uv pip install --find-links /wheelhouse --system|' docker/Dockerfile
52
+ - name: Build the connector image
53
+ run: docker build --target mcp --build-context wheelhouse=dist -f docker/Dockerfile -t smoke-connector .
54
+ - name: Build the Blender image
55
+ run: docker build -f docker/blender.Dockerfile -t smoke-blender .
56
+ - name: Start both containers without a GPU
57
+ env:
58
+ BLENDER_IMAGE: smoke-blender
59
+ CONNECTOR_IMAGE: smoke-connector
60
+ run: docker compose -f deploy/compose.yml up -d
61
+ - name: Assert the scene round trip
62
+ run: uv run --no-project --with fastmcp python scripts/smoke_images.py
63
+ - name: Show the container logs
64
+ if: failure()
65
+ env:
66
+ BLENDER_IMAGE: smoke-blender
67
+ CONNECTOR_IMAGE: smoke-connector
68
+ run: docker compose -f deploy/compose.yml logs --no-color
69
+ - name: Stop the containers
70
+ if: always()
71
+ env:
72
+ BLENDER_IMAGE: smoke-blender
73
+ CONNECTOR_IMAGE: smoke-connector
74
+ run: docker compose -f deploy/compose.yml down -v
@@ -0,0 +1,70 @@
1
+ default_language_version:
2
+ python: python3
3
+ default_install_hook_types: [pre-commit, pre-push]
4
+ default_stages: [pre-commit]
5
+
6
+ repos:
7
+ - repo: https://github.com/Knuckles-Team/pipelines
8
+ rev: main
9
+ hooks:
10
+ # Native scanner versions and policy follow the approved shared main source.
11
+ # Use the reviewed, already-provisioned toolchain; hooks never install it.
12
+ - id: scanner-versions
13
+ stages: [pre-push]
14
+ - id: complexity-staged
15
+ - id: kiss-staged
16
+ - id: dupehound-changed
17
+ - id: complexity-census
18
+ stages: [pre-push]
19
+ - id: kiss-census
20
+ stages: [pre-push]
21
+ - id: public-surface
22
+ - id: security-sanitizer
23
+ - id: secret-history
24
+ - id: supply-chain
25
+ - id: import-cycles
26
+ - id: env-sprawl
27
+ - id: stdout-writes
28
+ - id: swallowed-errors
29
+ - id: event-loop-blocking
30
+ - id: no-stub
31
+ - id: spec-decomposition
32
+ - id: spec-standard
33
+ - id: spec-status
34
+ # Inherit the upstream manual stage; ordinary code checks do not call it.
35
+ - id: dependency-readiness
36
+
37
+ - repo: https://github.com/pre-commit/pre-commit-hooks
38
+ rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # v6.0.0
39
+ hooks:
40
+ - id: check-ast
41
+ - id: check-yaml
42
+ args: [--unsafe]
43
+ - id: check-toml
44
+ - id: check-json
45
+ - id: check-merge-conflict
46
+ - id: detect-private-key
47
+ - id: trailing-whitespace
48
+ - id: end-of-file-fixer
49
+
50
+ - repo: https://github.com/astral-sh/ruff-pre-commit
51
+ rev: 38bfb07c0c64c304f47eb52090f8288150c77730 # v0.17.1
52
+ hooks:
53
+ - id: ruff-check
54
+ - id: ruff-format
55
+
56
+ - repo: local
57
+ hooks:
58
+ - id: content-drift
59
+ name: Generated content matches the committed snapshot
60
+ entry: python scripts/generate_blender_content.py --check
61
+ language: system
62
+ pass_filenames: false
63
+ always_run: true
64
+ - id: pytest
65
+ name: Generated connector contracts
66
+ entry: python -m pytest tests -q
67
+ language: system
68
+ pass_filenames: false
69
+ always_run: true
70
+ stages: [pre-push]
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Repository Maintainers
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,16 @@
1
+ include LICENSE
2
+ include README.md
3
+ include requirements.txt
4
+ # Scanner policies are included in source distributions so a checkout
5
+ # recreated from the sdist has the same reviewed quality surface. They
6
+ # remain source-checkout tooling, not runtime wheel/package data; hooks
7
+ # never install native tools and the Docker runtime excludes scripts/.
8
+ include .pre-commit-config.yaml
9
+ graft .github/workflows
10
+ graft scripts
11
+ graft tests
12
+ graft docs
13
+ graft specs
14
+ include mkdocs.yml pytest.ini .bumpversion.cfg
15
+ global-exclude __pycache__ *.py[cod]
16
+ recursive-include blender_connector *.py *.json *.md *.yaml *.yml *.ttl
@@ -0,0 +1,186 @@
1
+ Metadata-Version: 2.4
2
+ Name: blender-connector
3
+ Version: 0.2.0
4
+ Summary: Blender connector and MCP server; proxies the mcp-for-blender upstream and serves the packaged Blender skills, prompts and ontology
5
+ Author-email: Repository Maintainers <maintainers@knuckles.team>
6
+ License: MIT
7
+ Classifier: Development Status :: 4 - Beta
8
+ Classifier: License :: OSI Approved :: MIT License
9
+ Classifier: Environment :: Console
10
+ Classifier: Operating System :: POSIX :: Linux
11
+ Classifier: Programming Language :: Python :: 3
12
+ Requires-Python: <3.15,>=3.12
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ Requires-Dist: pyyaml<7,>=6.0.2
16
+ Requires-Dist: scion-sdk[mcp]<0.8,>=0.7.1
17
+ Provides-Extra: mcp
18
+ Requires-Dist: scion-sdk[mcp]<0.8,>=0.7.1; extra == "mcp"
19
+ Provides-Extra: all
20
+ Requires-Dist: scion-sdk[mcp]<0.8,>=0.7.1; extra == "all"
21
+ Provides-Extra: test
22
+ Requires-Dist: pytest-xdist>=3.8.0; extra == "test"
23
+ Requires-Dist: pytest; extra == "test"
24
+ Requires-Dist: pytest-asyncio; extra == "test"
25
+ Requires-Dist: pytest-cov; extra == "test"
26
+ Requires-Dist: rdflib<8,>=7.0.0; extra == "test"
27
+ Dynamic: license-file
28
+
29
+ # Blender Connector
30
+ ## CLI or API | MCP
31
+
32
+ ![PyPI - Version](https://img.shields.io/pypi/v/blender-connector)
33
+ ![MCP Server](https://badge.mcpx.dev?type=server 'MCP Server')
34
+ ![PyPI - Downloads](https://img.shields.io/pypi/dd/blender-connector)
35
+ ![GitHub Repo stars](https://img.shields.io/github/stars/Knuckles-Team/blender-connector)
36
+ ![GitHub forks](https://img.shields.io/github/forks/Knuckles-Team/blender-connector)
37
+ ![GitHub contributors](https://img.shields.io/github/contributors/Knuckles-Team/blender-connector)
38
+ ![PyPI - License](https://img.shields.io/pypi/l/blender-connector)
39
+ ![GitHub](https://img.shields.io/github/license/Knuckles-Team/blender-connector)
40
+ ![GitHub last commit (by committer)](https://img.shields.io/github/last-commit/Knuckles-Team/blender-connector)
41
+ ![GitHub pull requests](https://img.shields.io/github/issues-pr/Knuckles-Team/blender-connector)
42
+ ![GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed/Knuckles-Team/blender-connector)
43
+ ![GitHub issues](https://img.shields.io/github/issues/Knuckles-Team/blender-connector)
44
+ ![GitHub top language](https://img.shields.io/github/languages/top/Knuckles-Team/blender-connector)
45
+ ![GitHub language count](https://img.shields.io/github/languages/count/Knuckles-Team/blender-connector)
46
+ ![GitHub repo size](https://img.shields.io/github/repo-size/Knuckles-Team/blender-connector)
47
+ ![GitHub repo file count (file type)](https://img.shields.io/github/directory-file-count/Knuckles-Team/blender-connector)
48
+ ![PyPI - Wheel](https://img.shields.io/pypi/wheel/blender-connector)
49
+ ![PyPI - Implementation](https://img.shields.io/pypi/implementation/blender-connector)
50
+
51
+ > **Documentation** — Installation, deployment, and usage are maintained in the
52
+ > [official documentation](https://knuckles-team.github.io/blender-connector/).
53
+
54
+ ---
55
+
56
+ ## Overview
57
+
58
+ **Blender Connector** is a Model Context Protocol (MCP) server for Blender 3D scene work. It **proxies the third-party `mcp-for-blender` upstream** (formerly `blender-mcp`) instead of reimplementing it, and serves the packaged Blender skills, prompts and ontology alongside it. It is built on the shared connector SDK (`scion-sdk`).
59
+
60
+ The upstream talks to a running Blender through an add-on socket (default `localhost:9876`). With Blender down, the `blender_*` calls return the upstream's actionable timeout text while the server, the registry and the content keep serving.
61
+
62
+ ---
63
+
64
+ ## Key Features
65
+
66
+ - **Wraps, does not reimplement:** the upstream is a pooled stdio child namespaced `blender`; every upstream tool is served as `blender_<tool>` with the `scion/upstream` metadata, and upstream resources pass through unmodified.
67
+ - **Complete surface:** nine functionality skills plus a router skill, one prompt per functionality plus an operator and three role prompts (scene builder, look-dev and lighting artist, technical animator), and an ontology of tool-use contracts and data locations.
68
+ - **Safe by default:** safe mode (`BLENDER_MCP_SAFE_MODE=1`) and the telemetry opt-out are shipped in the example client entry, and the child gets a clean environment.
69
+ - **Readiness without Blender:** the connector-native `handshake` tool checks the upstream binary and the add-on socket without any Blender protocol traffic.
70
+ - **Drift gates:** a committed tool snapshot, byte-checked generated content and a live drift check against the upstream.
71
+
72
+ ---
73
+
74
+ ## MCP
75
+
76
+ ### Available MCP Tools
77
+
78
+ | MCP Tool | Description |
79
+ |----------|-------------|
80
+ | `handshake` | Local readiness check: upstream binary on PATH and add-on socket reachable. |
81
+ | `blender_get_addon_status` | Version, add-on match, and which libraries and generators are on. |
82
+ | `blender_get_scene_info` | Scene facts as text: objects, placement, health, settings. |
83
+ | `blender_execute_blender_code` | Run Python (bpy, bmesh, mathutils) in the live Blender. |
84
+ | `blender_look` | See the scene as an image: viewport, camera, angles or frames. |
85
+ | `blender_search_assets` | Search Poly Haven, Sketchfab and Poly Pizza. |
86
+ | `blender_import_asset` | Import a found asset into the scene. |
87
+ | `blender_generate_3d` | Generate one textured model from a prompt or an image (may cost credits). |
88
+ | `blender_generate_gaussian_world` | Generate a Gaussian-splat environment (may cost credits; Blender 5.3+). |
89
+ | `blender_disable_telemetry` | Turn off data collection for the session. |
90
+ | `blender_record_trajectory_feedback` | Record accept, reject, undo or correction feedback. |
91
+ | `registry_list_namespaces`, `registry_activate`, `registry_deactivate`, `registry_status` | SDK registry tools for the upstream namespace. |
92
+
93
+ ### Skills and prompts
94
+
95
+ | Skill | Use it to |
96
+ |-------|-----------|
97
+ | `blender` | Router: pick the functionality skill. |
98
+ | `blender-inspect-scene` | Report status and scene facts. |
99
+ | `blender-build-scene` | Add, move and shape objects with Python. |
100
+ | `blender-materials` | Author materials and node graphs. |
101
+ | `blender-camera-lighting` | Cameras, lights, world, render device. |
102
+ | `blender-rig-animate` | Armatures, keyframes and actions. |
103
+ | `blender-review-viewport` | Review with viewport and rendered looks. |
104
+ | `blender-assets` | Search and import library assets. |
105
+ | `blender-generative-3d` | Generate models and worlds. |
106
+ | `blender-session-controls` | Telemetry opt-out and feedback. |
107
+
108
+ Every skill has numbered steps (one objective and one check each), concrete tool arguments, an error-recovery table, and when-to-use and when-not-to-use guidance. Prompts are served as `blender-<functionality>`, `blender-operator`, `blender-scene_builder`, `blender-lookdev_lighting_artist` and `blender-technical_animator`.
109
+
110
+ ### MCP Configuration Examples
111
+
112
+ #### stdio Transport (local IDEs: Cursor, Claude Desktop, VS Code)
113
+
114
+ ```json
115
+ {
116
+ "mcpServers": {
117
+ "blender": {
118
+ "command": "uvx",
119
+ "args": ["--from", "blender-connector[mcp]", "blender-connector"],
120
+ "env": {
121
+ "DISABLE_TELEMETRY": "1",
122
+ "BLENDER_MCP_SAFE_MODE": "1",
123
+ "SCION_UPSTREAMS_INHERIT_ENV": "PATH,HOME,LANG,DISABLE_TELEMETRY,BLENDER_HOST,BLENDER_PORT,BLENDER_MCP_SAFE_MODE"
124
+ }
125
+ }
126
+ }
127
+ }
128
+ ```
129
+
130
+ #### Streamable-HTTP Transport (networked)
131
+
132
+ ```sh
133
+ blender-connector --transport streamable-http --host 0.0.0.0 --port 8000
134
+ ```
135
+
136
+ The Blender add-on socket has no authentication: keep it on the same host or pod as the connector, never on an untrusted network.
137
+
138
+ ---
139
+
140
+ ## Environment Variables
141
+
142
+ | Setting | Meaning | Start value |
143
+ |---|---|---|
144
+ | `DISABLE_TELEMETRY` | Telemetry opt-out, inherited by the upstream child | `1` |
145
+ | `BLENDER_MCP_SAFE_MODE` | Validate scripts before they run in Blender, inherited by the upstream child | `1` |
146
+ | `BLENDER_HOST` / `BLENDER_PORT` | The add-on socket address, inherited by the upstream child | `localhost` / `9876` |
147
+ | `SCION_UPSTREAMS_INHERIT_ENV` | The child environment whitelist that carries the rows above | `PATH,HOME,LANG,DISABLE_TELEMETRY,BLENDER_HOST,BLENDER_PORT,BLENDER_MCP_SAFE_MODE` |
148
+ | `SCION_UPSTREAMS_FILE` | An operator overlay TOML (example: `docs/upstreams.example.toml`) | unset |
149
+ | `BLENDERTOOL` | Toggle for the connector-native tool surface | on |
150
+
151
+ ---
152
+
153
+ ## Installation
154
+
155
+ ```sh
156
+ pip install "blender-connector[mcp]"
157
+ uv tool install mcp-for-blender # the upstream binary must be on PATH
158
+ uvx mcp-for-blender install-addon # install the Blender add-on, then enable it in Blender
159
+ blender-connector # serve the MCP server (stdio by default)
160
+ blender-connector-probe # probe the upstream after an update
161
+ ```
162
+
163
+ Install the upstream in its own environment (`uv tool install` does this): it pins an older MCP library than the connector SDK, so one shared environment does not resolve. The upstream binary is `mcp-for-blender` (the package was named `blender-mcp` before version 2). For a headless GPU deployment (virtual display, Cycles CUDA) see [docs/deployment.md](docs/deployment.md).
164
+
165
+ ---
166
+
167
+ ## Documentation
168
+
169
+ See [docs/](docs/index.md): overview, architecture, installation, usage, deployment, glossary. Specs live under `specs/`.
170
+
171
+ ## Development
172
+
173
+ ```sh
174
+ scripts/bootstrap.sh # pinned environment + hooks
175
+ uvx pre-commit run --all-files # the gate
176
+ uv run pytest tests -q # the suite (hermetic: fixture upstream)
177
+ uv run python scripts/generate_blender_content.py --check # content drift gate
178
+ ```
179
+
180
+ ## Repository Owners
181
+
182
+ Maintained by the Knuckles Team.
183
+
184
+ ## Contribute
185
+
186
+ Open an issue or a pull request on [GitHub](https://github.com/Knuckles-Team/blender-connector). Every change carries a `Spec:` trailer; see `AGENTS.md`.
@@ -0,0 +1,158 @@
1
+ # Blender Connector
2
+ ## CLI or API | MCP
3
+
4
+ ![PyPI - Version](https://img.shields.io/pypi/v/blender-connector)
5
+ ![MCP Server](https://badge.mcpx.dev?type=server 'MCP Server')
6
+ ![PyPI - Downloads](https://img.shields.io/pypi/dd/blender-connector)
7
+ ![GitHub Repo stars](https://img.shields.io/github/stars/Knuckles-Team/blender-connector)
8
+ ![GitHub forks](https://img.shields.io/github/forks/Knuckles-Team/blender-connector)
9
+ ![GitHub contributors](https://img.shields.io/github/contributors/Knuckles-Team/blender-connector)
10
+ ![PyPI - License](https://img.shields.io/pypi/l/blender-connector)
11
+ ![GitHub](https://img.shields.io/github/license/Knuckles-Team/blender-connector)
12
+ ![GitHub last commit (by committer)](https://img.shields.io/github/last-commit/Knuckles-Team/blender-connector)
13
+ ![GitHub pull requests](https://img.shields.io/github/issues-pr/Knuckles-Team/blender-connector)
14
+ ![GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed/Knuckles-Team/blender-connector)
15
+ ![GitHub issues](https://img.shields.io/github/issues/Knuckles-Team/blender-connector)
16
+ ![GitHub top language](https://img.shields.io/github/languages/top/Knuckles-Team/blender-connector)
17
+ ![GitHub language count](https://img.shields.io/github/languages/count/Knuckles-Team/blender-connector)
18
+ ![GitHub repo size](https://img.shields.io/github/repo-size/Knuckles-Team/blender-connector)
19
+ ![GitHub repo file count (file type)](https://img.shields.io/github/directory-file-count/Knuckles-Team/blender-connector)
20
+ ![PyPI - Wheel](https://img.shields.io/pypi/wheel/blender-connector)
21
+ ![PyPI - Implementation](https://img.shields.io/pypi/implementation/blender-connector)
22
+
23
+ > **Documentation** — Installation, deployment, and usage are maintained in the
24
+ > [official documentation](https://knuckles-team.github.io/blender-connector/).
25
+
26
+ ---
27
+
28
+ ## Overview
29
+
30
+ **Blender Connector** is a Model Context Protocol (MCP) server for Blender 3D scene work. It **proxies the third-party `mcp-for-blender` upstream** (formerly `blender-mcp`) instead of reimplementing it, and serves the packaged Blender skills, prompts and ontology alongside it. It is built on the shared connector SDK (`scion-sdk`).
31
+
32
+ The upstream talks to a running Blender through an add-on socket (default `localhost:9876`). With Blender down, the `blender_*` calls return the upstream's actionable timeout text while the server, the registry and the content keep serving.
33
+
34
+ ---
35
+
36
+ ## Key Features
37
+
38
+ - **Wraps, does not reimplement:** the upstream is a pooled stdio child namespaced `blender`; every upstream tool is served as `blender_<tool>` with the `scion/upstream` metadata, and upstream resources pass through unmodified.
39
+ - **Complete surface:** nine functionality skills plus a router skill, one prompt per functionality plus an operator and three role prompts (scene builder, look-dev and lighting artist, technical animator), and an ontology of tool-use contracts and data locations.
40
+ - **Safe by default:** safe mode (`BLENDER_MCP_SAFE_MODE=1`) and the telemetry opt-out are shipped in the example client entry, and the child gets a clean environment.
41
+ - **Readiness without Blender:** the connector-native `handshake` tool checks the upstream binary and the add-on socket without any Blender protocol traffic.
42
+ - **Drift gates:** a committed tool snapshot, byte-checked generated content and a live drift check against the upstream.
43
+
44
+ ---
45
+
46
+ ## MCP
47
+
48
+ ### Available MCP Tools
49
+
50
+ | MCP Tool | Description |
51
+ |----------|-------------|
52
+ | `handshake` | Local readiness check: upstream binary on PATH and add-on socket reachable. |
53
+ | `blender_get_addon_status` | Version, add-on match, and which libraries and generators are on. |
54
+ | `blender_get_scene_info` | Scene facts as text: objects, placement, health, settings. |
55
+ | `blender_execute_blender_code` | Run Python (bpy, bmesh, mathutils) in the live Blender. |
56
+ | `blender_look` | See the scene as an image: viewport, camera, angles or frames. |
57
+ | `blender_search_assets` | Search Poly Haven, Sketchfab and Poly Pizza. |
58
+ | `blender_import_asset` | Import a found asset into the scene. |
59
+ | `blender_generate_3d` | Generate one textured model from a prompt or an image (may cost credits). |
60
+ | `blender_generate_gaussian_world` | Generate a Gaussian-splat environment (may cost credits; Blender 5.3+). |
61
+ | `blender_disable_telemetry` | Turn off data collection for the session. |
62
+ | `blender_record_trajectory_feedback` | Record accept, reject, undo or correction feedback. |
63
+ | `registry_list_namespaces`, `registry_activate`, `registry_deactivate`, `registry_status` | SDK registry tools for the upstream namespace. |
64
+
65
+ ### Skills and prompts
66
+
67
+ | Skill | Use it to |
68
+ |-------|-----------|
69
+ | `blender` | Router: pick the functionality skill. |
70
+ | `blender-inspect-scene` | Report status and scene facts. |
71
+ | `blender-build-scene` | Add, move and shape objects with Python. |
72
+ | `blender-materials` | Author materials and node graphs. |
73
+ | `blender-camera-lighting` | Cameras, lights, world, render device. |
74
+ | `blender-rig-animate` | Armatures, keyframes and actions. |
75
+ | `blender-review-viewport` | Review with viewport and rendered looks. |
76
+ | `blender-assets` | Search and import library assets. |
77
+ | `blender-generative-3d` | Generate models and worlds. |
78
+ | `blender-session-controls` | Telemetry opt-out and feedback. |
79
+
80
+ Every skill has numbered steps (one objective and one check each), concrete tool arguments, an error-recovery table, and when-to-use and when-not-to-use guidance. Prompts are served as `blender-<functionality>`, `blender-operator`, `blender-scene_builder`, `blender-lookdev_lighting_artist` and `blender-technical_animator`.
81
+
82
+ ### MCP Configuration Examples
83
+
84
+ #### stdio Transport (local IDEs: Cursor, Claude Desktop, VS Code)
85
+
86
+ ```json
87
+ {
88
+ "mcpServers": {
89
+ "blender": {
90
+ "command": "uvx",
91
+ "args": ["--from", "blender-connector[mcp]", "blender-connector"],
92
+ "env": {
93
+ "DISABLE_TELEMETRY": "1",
94
+ "BLENDER_MCP_SAFE_MODE": "1",
95
+ "SCION_UPSTREAMS_INHERIT_ENV": "PATH,HOME,LANG,DISABLE_TELEMETRY,BLENDER_HOST,BLENDER_PORT,BLENDER_MCP_SAFE_MODE"
96
+ }
97
+ }
98
+ }
99
+ }
100
+ ```
101
+
102
+ #### Streamable-HTTP Transport (networked)
103
+
104
+ ```sh
105
+ blender-connector --transport streamable-http --host 0.0.0.0 --port 8000
106
+ ```
107
+
108
+ The Blender add-on socket has no authentication: keep it on the same host or pod as the connector, never on an untrusted network.
109
+
110
+ ---
111
+
112
+ ## Environment Variables
113
+
114
+ | Setting | Meaning | Start value |
115
+ |---|---|---|
116
+ | `DISABLE_TELEMETRY` | Telemetry opt-out, inherited by the upstream child | `1` |
117
+ | `BLENDER_MCP_SAFE_MODE` | Validate scripts before they run in Blender, inherited by the upstream child | `1` |
118
+ | `BLENDER_HOST` / `BLENDER_PORT` | The add-on socket address, inherited by the upstream child | `localhost` / `9876` |
119
+ | `SCION_UPSTREAMS_INHERIT_ENV` | The child environment whitelist that carries the rows above | `PATH,HOME,LANG,DISABLE_TELEMETRY,BLENDER_HOST,BLENDER_PORT,BLENDER_MCP_SAFE_MODE` |
120
+ | `SCION_UPSTREAMS_FILE` | An operator overlay TOML (example: `docs/upstreams.example.toml`) | unset |
121
+ | `BLENDERTOOL` | Toggle for the connector-native tool surface | on |
122
+
123
+ ---
124
+
125
+ ## Installation
126
+
127
+ ```sh
128
+ pip install "blender-connector[mcp]"
129
+ uv tool install mcp-for-blender # the upstream binary must be on PATH
130
+ uvx mcp-for-blender install-addon # install the Blender add-on, then enable it in Blender
131
+ blender-connector # serve the MCP server (stdio by default)
132
+ blender-connector-probe # probe the upstream after an update
133
+ ```
134
+
135
+ Install the upstream in its own environment (`uv tool install` does this): it pins an older MCP library than the connector SDK, so one shared environment does not resolve. The upstream binary is `mcp-for-blender` (the package was named `blender-mcp` before version 2). For a headless GPU deployment (virtual display, Cycles CUDA) see [docs/deployment.md](docs/deployment.md).
136
+
137
+ ---
138
+
139
+ ## Documentation
140
+
141
+ See [docs/](docs/index.md): overview, architecture, installation, usage, deployment, glossary. Specs live under `specs/`.
142
+
143
+ ## Development
144
+
145
+ ```sh
146
+ scripts/bootstrap.sh # pinned environment + hooks
147
+ uvx pre-commit run --all-files # the gate
148
+ uv run pytest tests -q # the suite (hermetic: fixture upstream)
149
+ uv run python scripts/generate_blender_content.py --check # content drift gate
150
+ ```
151
+
152
+ ## Repository Owners
153
+
154
+ Maintained by the Knuckles Team.
155
+
156
+ ## Contribute
157
+
158
+ Open an issue or a pull request on [GitHub](https://github.com/Knuckles-Team/blender-connector). Every change carries a `Spec:` trailer; see `AGENTS.md`.