dcc-mcp-kdenlive 0.1.1__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 (92) hide show
  1. dcc_mcp_kdenlive-0.1.1/.gitattributes +3 -0
  2. dcc_mcp_kdenlive-0.1.1/.github/workflows/ci.yml +109 -0
  3. dcc_mcp_kdenlive-0.1.1/.github/workflows/release.yml +78 -0
  4. dcc_mcp_kdenlive-0.1.1/.gitignore +10 -0
  5. dcc_mcp_kdenlive-0.1.1/.release-please-manifest.json +3 -0
  6. dcc_mcp_kdenlive-0.1.1/CHANGELOG.md +36 -0
  7. dcc_mcp_kdenlive-0.1.1/LICENSE +21 -0
  8. dcc_mcp_kdenlive-0.1.1/PKG-INFO +146 -0
  9. dcc_mcp_kdenlive-0.1.1/README.md +127 -0
  10. dcc_mcp_kdenlive-0.1.1/docs/acceptance.md +43 -0
  11. dcc_mcp_kdenlive-0.1.1/docs/capabilities.md +29 -0
  12. dcc_mcp_kdenlive-0.1.1/docs/images/headphones-workflow-showcase.webp +0 -0
  13. dcc_mcp_kdenlive-0.1.1/docs/native-bridge.md +98 -0
  14. dcc_mcp_kdenlive-0.1.1/docs/releases.md +29 -0
  15. dcc_mcp_kdenlive-0.1.1/docs/showcase/README.md +53 -0
  16. dcc_mcp_kdenlive-0.1.1/docs/showcase/imagegen-provenance.json +43 -0
  17. dcc_mcp_kdenlive-0.1.1/docs/showcase/kdenlive-headphones-workflow.png +0 -0
  18. dcc_mcp_kdenlive-0.1.1/docs/showcase/kdenlive-solar-system.png +0 -0
  19. dcc_mcp_kdenlive-0.1.1/install.md +132 -0
  20. dcc_mcp_kdenlive-0.1.1/native/CMakeLists.txt +12 -0
  21. dcc_mcp_kdenlive-0.1.1/native/LICENSE +232 -0
  22. dcc_mcp_kdenlive-0.1.1/native/bridge_server.cpp +79 -0
  23. dcc_mcp_kdenlive-0.1.1/native/bridge_server.h +18 -0
  24. dcc_mcp_kdenlive-0.1.1/native/kdenlive_bridge.cpp +140 -0
  25. dcc_mcp_kdenlive-0.1.1/native/tests/bridge_tests.cpp +69 -0
  26. dcc_mcp_kdenlive-0.1.1/native/upstream.json +8 -0
  27. dcc_mcp_kdenlive-0.1.1/pyproject.toml +42 -0
  28. dcc_mcp_kdenlive-0.1.1/release-please-config.json +23 -0
  29. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/__init__.py +11 -0
  30. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/catalog.py +79 -0
  31. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/cli.py +57 -0
  32. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/media.py +51 -0
  33. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/native.py +130 -0
  34. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/project.py +535 -0
  35. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/render.py +83 -0
  36. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/runtime.py +96 -0
  37. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/server.py +47 -0
  38. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-catalog/SKILL.md +21 -0
  39. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-catalog/scripts/describe_asset.py +7 -0
  40. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-catalog/scripts/list_assets.py +7 -0
  41. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-catalog/scripts/query_services.py +7 -0
  42. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-catalog/tools.yaml +114 -0
  43. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-effects/SKILL.md +21 -0
  44. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-effects/scripts/add_effect.py +7 -0
  45. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-effects/scripts/add_transition.py +7 -0
  46. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-effects/scripts/remove_effect.py +7 -0
  47. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-effects/scripts/set_properties.py +7 -0
  48. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-effects/tools.yaml +245 -0
  49. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-export/SKILL.md +21 -0
  50. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-export/scripts/render_project.py +7 -0
  51. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-export/tools.yaml +63 -0
  52. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-interchange/SKILL.md +21 -0
  53. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-interchange/scripts/probe_media.py +7 -0
  54. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-interchange/scripts/write_subtitles.py +7 -0
  55. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-interchange/tools.yaml +97 -0
  56. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-media/SKILL.md +21 -0
  57. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-media/scripts/add_media.py +7 -0
  58. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-media/scripts/relink_media.py +7 -0
  59. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-media/tools.yaml +115 -0
  60. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-native/SKILL.md +30 -0
  61. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-native/scripts/handshake.py +7 -0
  62. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-native/scripts/insert_clip.py +7 -0
  63. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-native/scripts/move_clip.py +7 -0
  64. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-native/scripts/project_state.py +7 -0
  65. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-native/scripts/redo.py +7 -0
  66. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-native/scripts/undo.py +7 -0
  67. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-native/tools.yaml +233 -0
  68. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-project/SKILL.md +21 -0
  69. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-project/scripts/create_project.py +7 -0
  70. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-project/scripts/inspect_project.py +7 -0
  71. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-project/scripts/set_guides.py +7 -0
  72. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-project/scripts/validate_project.py +7 -0
  73. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-project/tools.yaml +202 -0
  74. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-setup/SKILL.md +21 -0
  75. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-setup/scripts/get_status.py +7 -0
  76. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-setup/tools.yaml +31 -0
  77. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-timeline/SKILL.md +21 -0
  78. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-timeline/scripts/insert_clip.py +7 -0
  79. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-timeline/scripts/remove_item.py +7 -0
  80. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-timeline/scripts/split_clip.py +7 -0
  81. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/skills/kdenlive-timeline/tools.yaml +183 -0
  82. dcc_mcp_kdenlive-0.1.1/src/dcc_mcp_kdenlive/storage.py +49 -0
  83. dcc_mcp_kdenlive-0.1.1/tests/conftest.py +32 -0
  84. dcc_mcp_kdenlive-0.1.1/tests/test_live.py +17 -0
  85. dcc_mcp_kdenlive-0.1.1/tests/test_native.py +158 -0
  86. dcc_mcp_kdenlive-0.1.1/tests/test_project.py +96 -0
  87. dcc_mcp_kdenlive-0.1.1/tests/test_runtime.py +41 -0
  88. dcc_mcp_kdenlive-0.1.1/tests/test_server.py +104 -0
  89. dcc_mcp_kdenlive-0.1.1/tests/test_skills.py +21 -0
  90. dcc_mcp_kdenlive-0.1.1/tools/build_artifacts.py +79 -0
  91. dcc_mcp_kdenlive-0.1.1/tools/generate_skills.py +218 -0
  92. dcc_mcp_kdenlive-0.1.1/tools/prepare_native_host.py +54 -0
@@ -0,0 +1,3 @@
1
+ * text=auto eol=lf
2
+ *.png binary
3
+ *.zip binary
@@ -0,0 +1,109 @@
1
+ name: CI
2
+ on:
3
+ push:
4
+ branches: [main]
5
+ pull_request:
6
+ workflow_call:
7
+ workflow_dispatch:
8
+ permissions:
9
+ contents: read
10
+ jobs:
11
+ native-protocol:
12
+ name: Native protocol / ${{ matrix.os }}
13
+ runs-on: ${{ matrix.os }}
14
+ timeout-minutes: 20
15
+ strategy:
16
+ fail-fast: false
17
+ matrix:
18
+ os: [ubuntu-24.04, windows-2022]
19
+ steps:
20
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
21
+ - uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38
22
+ with:
23
+ python-version: '3.12'
24
+ - name: Linux Qt SDK
25
+ if: runner.os == 'Linux'
26
+ run: sudo apt-get update && sudo apt-get install -y qt6-base-dev ninja-build
27
+ - name: Windows Qt SDK
28
+ if: runner.os == 'Windows'
29
+ shell: pwsh
30
+ run: |
31
+ python -m pip install aqtinstall==3.3.0
32
+ python -m aqt install-qt windows desktop 6.10.0 win64_msvc2022_64 --archives qtbase --outputdir "$env:RUNNER_TEMP/qt"
33
+ "CMAKE_PREFIX_PATH=$env:RUNNER_TEMP/qt/6.10.0/msvc2022_64" >> $env:GITHUB_ENV
34
+ "$env:RUNNER_TEMP/qt/6.10.0/msvc2022_64/bin" >> $env:GITHUB_PATH
35
+ - run: cmake -S native -B build/native
36
+ - run: cmake --build build/native --config Release --parallel 2
37
+ - run: ctest --test-dir build/native -C Release --output-on-failure
38
+ - name: Verify overlay against exact upstream source
39
+ shell: bash
40
+ run: |
41
+ git clone --depth 1 --branch v26.08.1 https://github.com/KDE/kdenlive.git build/upstream
42
+ python tools/prepare_native_host.py build/upstream
43
+ git -C build/upstream diff --check
44
+ - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
45
+ with:
46
+ name: native-protocol-${{ matrix.os }}
47
+ path: |
48
+ build/native/Testing/Temporary/LastTest.log
49
+ build/native/bridge-results.xml
50
+ test:
51
+ name: Python ${{ matrix.python }} / ${{ matrix.os }}
52
+ runs-on: ${{ matrix.os }}
53
+ timeout-minutes: 15
54
+ strategy:
55
+ fail-fast: false
56
+ matrix:
57
+ os: [ubuntu-22.04, windows-2022]
58
+ python: ['3.7', '3.12']
59
+ env:
60
+ DCC_MCP_DISABLE_DEFAULT_SKILL_PATHS: '1'
61
+ DCC_MCP_DISABLE_TELEMETRY: '1'
62
+ steps:
63
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
64
+ - uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38
65
+ with:
66
+ python-version: ${{ matrix.python }}
67
+ - run: python -m pip install -e ".[test]"
68
+ - name: Require native core (py37-lite is insufficient)
69
+ run: python -c "from dcc_mcp_core import DccServerBase; from dcc_mcp_core import _core; print(_core.__file__)"
70
+ - run: python -m pytest -q
71
+ package:
72
+ runs-on: ubuntu-24.04
73
+ timeout-minutes: 15
74
+ steps:
75
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
76
+ - uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38
77
+ with:
78
+ python-version: '3.12'
79
+ - run: python -m pip install ruff build twine
80
+ - run: python -m ruff check src tests tools
81
+ - run: python -m ruff format --check src tests tools
82
+ - run: python -m build
83
+ - run: python -m twine check dist/*
84
+ - run: python tools/build_artifacts.py
85
+ - name: Install wheel outside source tree
86
+ run: |
87
+ python -m venv /tmp/wheel-smoke
88
+ /tmp/wheel-smoke/bin/pip install dist/*.whl
89
+ cd /tmp
90
+ /tmp/wheel-smoke/bin/dcc-mcp-kdenlive --version
91
+ /tmp/wheel-smoke/bin/dcc-mcp-kdenlive doctor
92
+ - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
93
+ with:
94
+ name: distribution
95
+ path: dist/
96
+ render:
97
+ runs-on: ubuntu-24.04
98
+ timeout-minutes: 15
99
+ env:
100
+ KDENLIVE_LIVE_TEST: '1'
101
+ QT_QPA_PLATFORM: offscreen
102
+ steps:
103
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
104
+ - uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38
105
+ with:
106
+ python-version: '3.12'
107
+ - run: sudo apt-get update && sudo apt-get install -y melt ffmpeg libmlt-data
108
+ - run: python -m pip install -e ".[test]"
109
+ - run: python -m pytest tests/test_live.py -q
@@ -0,0 +1,78 @@
1
+ name: Release
2
+ on:
3
+ push:
4
+ branches: [main]
5
+ permissions:
6
+ contents: read
7
+ concurrency:
8
+ group: release-main
9
+ cancel-in-progress: false
10
+ jobs:
11
+ checks:
12
+ uses: ./.github/workflows/ci.yml
13
+ version:
14
+ needs: checks
15
+ runs-on: ubuntu-24.04
16
+ permissions:
17
+ contents: write
18
+ pull-requests: write
19
+ outputs:
20
+ created: ${{ steps.release.outputs.release_created }}
21
+ tag: ${{ steps.release.outputs.tag_name }}
22
+ sha: ${{ steps.release.outputs.sha }}
23
+ steps:
24
+ - uses: googleapis/release-please-action@5c625bfb5d1ff62eadeeb3772007f7f66fdcf071
25
+ id: release
26
+ artifacts:
27
+ needs: version
28
+ if: needs.version.outputs.created == 'true'
29
+ runs-on: ubuntu-24.04
30
+ timeout-minutes: 15
31
+ permissions:
32
+ contents: write
33
+ id-token: write
34
+ attestations: write
35
+ env:
36
+ RELEASE_TAG: ${{ needs.version.outputs.tag }}
37
+ RELEASE_SHA: ${{ needs.version.outputs.sha }}
38
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39
+ steps:
40
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
41
+ with:
42
+ ref: ${{ needs.version.outputs.sha }}
43
+ persist-credentials: false
44
+ - uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38
45
+ with:
46
+ python-version: '3.12'
47
+ - name: Verify exact release identity
48
+ run: |
49
+ test "$RELEASE_SHA" = "$GITHUB_SHA"
50
+ test "$(git rev-parse HEAD)" = "$RELEASE_SHA"
51
+ python -c 'import os,tomllib; v=tomllib.load(open("pyproject.toml","rb"))["project"]["version"]; assert os.environ["RELEASE_TAG"] == "v"+v'
52
+ - run: python -m pip install build twine
53
+ - run: python -m build
54
+ - run: python -m twine check dist/*
55
+ - run: python tools/build_artifacts.py
56
+ - uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be
57
+ with:
58
+ subject-path: dist/*
59
+ - run: gh release upload "$RELEASE_TAG" dist/*
60
+ - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
61
+ with:
62
+ name: pypi-packages
63
+ path: |
64
+ dist/*.whl
65
+ dist/*.tar.gz
66
+ pypi:
67
+ needs: artifacts
68
+ if: vars.PUBLISH_PYPI == 'true'
69
+ runs-on: ubuntu-24.04
70
+ environment: pypi
71
+ permissions:
72
+ id-token: write
73
+ steps:
74
+ - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
75
+ with:
76
+ name: pypi-packages
77
+ path: dist/
78
+ - uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33
@@ -0,0 +1,10 @@
1
+ .venv/
2
+ __pycache__/
3
+ *.py[cod]
4
+ .pytest_cache/
5
+ .ruff_cache/
6
+ dist/
7
+ build/
8
+ *.egg-info/
9
+ .artifacts/
10
+ .coverage
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.1.1"
3
+ }
@@ -0,0 +1,36 @@
1
+ # Changelog
2
+
3
+ ## [0.1.1](https://github.com/dcc-mcp/dcc-mcp-kdenlive/compare/v0.1.0...v0.1.1) (2026-09-14)
4
+
5
+
6
+ ### Features
7
+
8
+ * add experimental native Kdenlive editor bridge ([e58a52b](https://github.com/dcc-mcp/dcc-mcp-kdenlive/commit/e58a52bcab7e9bb45ba8b0050bfe562af279e2d1))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * preserve exact Kdenlive window binding ([#5](https://github.com/dcc-mcp/dcc-mcp-kdenlive/issues/5)) ([da305d9](https://github.com/dcc-mcp/dcc-mcp-kdenlive/commit/da305d94c0e8f0b30a7bcc37a236d1a0dc11f213))
14
+ * refresh active sequence after native undo ([540e407](https://github.com/dcc-mcp/dcc-mcp-kdenlive/commit/540e40791970d1f0938b7b30cf932bb556919290))
15
+
16
+
17
+ ### Documentation
18
+
19
+ * add Kdenlive installation and lifecycle runbook ([b73753f](https://github.com/dcc-mcp/dcc-mcp-kdenlive/commit/b73753fda1d492b57e1805930f9c60a4b46d3510))
20
+ * explain Skills and MCP with concept art ([#6](https://github.com/dcc-mcp/dcc-mcp-kdenlive/issues/6)) ([9ae4db3](https://github.com/dcc-mcp/dcc-mcp-kdenlive/commit/9ae4db3c59dd3a961a3842e15165a2106201b4da))
21
+ * illustrate headphone video editing workflow ([#7](https://github.com/dcc-mcp/dcc-mcp-kdenlive/issues/7)) ([db719e6](https://github.com/dcc-mcp/dcc-mcp-kdenlive/commit/db719e633cc0b344281d5761e05b13659e7d0663))
22
+ * showcase a vertical Kdenlive edit ([#4](https://github.com/dcc-mcp/dcc-mcp-kdenlive/issues/4)) ([5ad60bc](https://github.com/dcc-mcp/dcc-mcp-kdenlive/commit/5ad60bca3b702640d46c07610f3b836206777abd))
23
+
24
+ ## 0.1.0 (2026-09-13)
25
+
26
+
27
+ ### Features
28
+
29
+ * expose Kdenlive project and rendering tools through DCC-MCP ([7013328](https://github.com/dcc-mcp/dcc-mcp-kdenlive/commit/7013328c92fad553d9d0f1cc3f8da954c80ac8a6))
30
+
31
+
32
+ ### Bug Fixes
33
+
34
+ * serialize project XML on native Python 3.7 ([e9917a0](https://github.com/dcc-mcp/dcc-mcp-kdenlive/commit/e9917a092eb985fd1bb5b547ac4136227b3decbd))
35
+ * support catalog entry point and document native acceptance ([a462a9a](https://github.com/dcc-mcp/dcc-mcp-kdenlive/commit/a462a9abfd0cc6938be845adbfa7247cdade726b))
36
+ * support Python 3.7 build isolation ([174e90d](https://github.com/dcc-mcp/dcc-mcp-kdenlive/commit/174e90dc6bc8246dfcf93b37473e6bf6b2bdcb26))
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 loonghao
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,146 @@
1
+ Metadata-Version: 2.5
2
+ Name: dcc-mcp-kdenlive
3
+ Version: 0.1.1
4
+ Summary: Kdenlive project authoring, MLT rendering and scoped editor control for DCC-MCP agents
5
+ Project-URL: Repository, https://github.com/dcc-mcp/dcc-mcp-kdenlive
6
+ Project-URL: Issues, https://github.com/dcc-mcp/dcc-mcp-kdenlive/issues
7
+ Author-email: loonghao <hal.long@outlook.com>
8
+ License: MIT
9
+ License-File: LICENSE
10
+ Requires-Python: >=3.7
11
+ Requires-Dist: dcc-mcp-core<1.0.0,>=0.20.28
12
+ Requires-Dist: defusedxml>=0.7.1
13
+ Requires-Dist: psutil>=5.9
14
+ Provides-Extra: test
15
+ Requires-Dist: jsonschema>=4; extra == 'test'
16
+ Requires-Dist: pytest>=7; extra == 'test'
17
+ Requires-Dist: pyyaml>=6; extra == 'test'
18
+ Description-Content-Type: text/markdown
19
+
20
+ # DCC-MCP Kdenlive
21
+
22
+ Agent tools for Kdenlive project files, installed effects and transitions, media,
23
+ subtitles, and MLT rendering. Uses the DCC-MCP Core gateway, skill discovery,
24
+ async jobs and shared DCC-CUA editor control.
25
+
26
+ An experimental [native C++ bridge](docs/native-bridge.md) adds live timeline
27
+ readback and undoable edits for a separately built, pinned Kdenlive host.
28
+ The source overlay and protocol tests are included; stock installations do not
29
+ expose this endpoint, and a full host binary has not yet been validated.
30
+
31
+ ## See a product video take shape
32
+
33
+ ![AI-generated Kdenlive interface illustration with headphone clips, an editing timeline, narration and music tracks, and a portrait product preview](docs/images/headphones-workflow-showcase.webp)
34
+
35
+ *ImageGen interface reconstruction · workflow illustration.* A headphone video
36
+ connects source clips, timeline edits, narration and the finished preview in one
37
+ recognisable workspace. DCC-MCP provides project-file editing, media and subtitle
38
+ tools, and MLT rendering; Skills package reusable methods for those tools.
39
+ The image is a generated illustration, not a live recording or export evidence.
40
+ [Image sources, attribution and the original Kdenlive screenshot](docs/showcase/README.md).
41
+
42
+ ## Install and run
43
+
44
+ Follow the authoritative [installation and lifecycle runbook](install.md) for
45
+ acquisition, integrity checks, setup, verification, upgrades and removal.
46
+
47
+ Install the wheel from GitHub Releases (or `pip install .` from a checkout):
48
+
49
+ ```sh
50
+ python -m pip install ./dcc_mcp_kdenlive-0.1.0-py3-none-any.whl
51
+ dcc-mcp-kdenlive doctor
52
+ dcc-mcp-kdenlive serve
53
+ ```
54
+
55
+ The default service is standalone and chooses an available loopback port. It can
56
+ edit files independently of the editor. For the existing editor's UI, supply both
57
+ its exact PID and native window handle:
58
+
59
+ ```sh
60
+ dcc-mcp-kdenlive serve --pid 1234 --hwnd 5678 --host-version 26.08.1
61
+ dcc-mcp-cli list
62
+ dcc-mcp-cli load-skill kdenlive-project --instance-id INSTANCE_ID
63
+ ```
64
+
65
+ GUI binding uses the exact PID and window handle without assuming a window title;
66
+ Kdenlive's title changes with the active project and profile.
67
+
68
+ Discover the instance through the gateway and use search/describe/call with its
69
+ returned tool slugs. The CLI prints its direct MCP URL as an alternative. Configure
70
+ an MCP client with that HTTP URL or the machine's DCC-MCP gateway URL.
71
+
72
+ Configuration:
73
+
74
+ | Environment variable | Meaning |
75
+ | --- | --- |
76
+ | `DCC_MCP_KDENLIVE_EXECUTABLE` | Installed Kdenlive executable; also locates sibling MLT/FFmpeg programs |
77
+ | `DCC_MCP_KDENLIVE_MELT` | Explicit MLT melt executable |
78
+ | `DCC_MCP_KDENLIVE_FFPROBE` | Explicit FFprobe executable |
79
+ | `DCC_MCP_KDENLIVE_FFMPEG` | Explicit FFmpeg executable |
80
+ | `DCC_MCP_KDENLIVE_DATA` | Installed Kdenlive data directory |
81
+ | `DCC_MCP_KDENLIVE_PORT` | Optional fixed instance port |
82
+
83
+ No editor, plugins or model weights are downloaded implicitly. `doctor` reports
84
+ missing programs; install Kdenlive from its official distribution when needed.
85
+
86
+ ## Agent capabilities
87
+
88
+ Eight progressively loaded skill packages ship in the wheel:
89
+
90
+ | Skill | Tools |
91
+ | --- | --- |
92
+ | `kdenlive-project` | Create, inspect, validate and set guides |
93
+ | `kdenlive-media` | Import file/color/title producers and relink media |
94
+ | `kdenlive-timeline` | Append with gaps, split, remove and ripple |
95
+ | `kdenlive-effects` | Add/remove effects, keyframe parameters, compositions |
96
+ | `kdenlive-catalog` | Query **installed** MLT services and native asset definitions |
97
+ | `kdenlive-export` | Async MP4, WebM, ProRes MOV and WAV rendering |
98
+ | `kdenlive-interchange` | FFprobe inspection and SRT subtitle authoring |
99
+ | `kdenlive-setup` | Host and executable readiness |
100
+
101
+ The catalog is dynamic: it exposes the effects/producers/transitions installed
102
+ with the host, including their native parameter metadata. It does not assume all
103
+ optional MLT plugins are available. Native MLT parameter values, including
104
+ keyframe expressions, remain strings; discover each service before configuring it.
105
+
106
+ Editor-only capabilities (multi-sequence editing, grouped/mixed clips, slip/slide,
107
+ multicam, title designer, speech recognition, tracking/rotoscoping, proxies,
108
+ recording, layouts and settings) use the existing `ui-control` skill. These are
109
+ **UI routes, not claimed native APIs**. They depend on available controls and host
110
+ features. See [coverage](docs/capabilities.md) and [live acceptance](docs/acceptance.md).
111
+
112
+ Every document edit creates a **new file**. Existing outputs are never replaced.
113
+ Use the inspection result's `sha256` as `expected_sha256` to fence edits against
114
+ stale input. Source files remain unchanged; opening the new artifact and checking
115
+ the editor is a separate operation. Grouped and nested timeline mutations reject
116
+ with an editor-route instruction. File operations do not participate in editor Undo.
117
+
118
+ ## Render and recover
119
+
120
+ Load `kdenlive-export`, describe `render_project`, then supply a new output path,
121
+ preset, and explicit inclusive `start` / `end` frames. The core returns an async
122
+ job ID. Poll `jobs_get_status` until terminal; `jobs_cancel` cooperatively stops
123
+ and reaps the render child. The final file is published only after FFprobe finds
124
+ streams. The four encoding presets are portable defaults; other native export
125
+ configurations remain available through the editor.
126
+
127
+ ## Development and releases
128
+
129
+ ```sh
130
+ python -m pip install -e '.[test]' ruff build twine
131
+ python -m ruff check src tests tools
132
+ python -m ruff format --check src tests tools
133
+ python -m pytest -q
134
+ python -m build
135
+ python -m twine check dist/*
136
+ python tools/build_artifacts.py
137
+ ```
138
+
139
+ CI validates Linux and Windows, Python 3.7 native compatibility and current Python,
140
+ wheel installation, MCP HTTP calls, and real Linux MLT rendering. Release Please
141
+ manages versions and changelogs. Release artifacts include wheel, sdist, an agent
142
+ skill ZIP, an install manifest and SHA-256 checksums with provenance attestation.
143
+ See [release operations](docs/releases.md) for publishing and catalog onboarding.
144
+
145
+ Kdenlive is a KDE project. This adapter is independently maintained and is not
146
+ endorsed by KDE. It does not bundle Kdenlive or MLT binaries.
@@ -0,0 +1,127 @@
1
+ # DCC-MCP Kdenlive
2
+
3
+ Agent tools for Kdenlive project files, installed effects and transitions, media,
4
+ subtitles, and MLT rendering. Uses the DCC-MCP Core gateway, skill discovery,
5
+ async jobs and shared DCC-CUA editor control.
6
+
7
+ An experimental [native C++ bridge](docs/native-bridge.md) adds live timeline
8
+ readback and undoable edits for a separately built, pinned Kdenlive host.
9
+ The source overlay and protocol tests are included; stock installations do not
10
+ expose this endpoint, and a full host binary has not yet been validated.
11
+
12
+ ## See a product video take shape
13
+
14
+ ![AI-generated Kdenlive interface illustration with headphone clips, an editing timeline, narration and music tracks, and a portrait product preview](docs/images/headphones-workflow-showcase.webp)
15
+
16
+ *ImageGen interface reconstruction · workflow illustration.* A headphone video
17
+ connects source clips, timeline edits, narration and the finished preview in one
18
+ recognisable workspace. DCC-MCP provides project-file editing, media and subtitle
19
+ tools, and MLT rendering; Skills package reusable methods for those tools.
20
+ The image is a generated illustration, not a live recording or export evidence.
21
+ [Image sources, attribution and the original Kdenlive screenshot](docs/showcase/README.md).
22
+
23
+ ## Install and run
24
+
25
+ Follow the authoritative [installation and lifecycle runbook](install.md) for
26
+ acquisition, integrity checks, setup, verification, upgrades and removal.
27
+
28
+ Install the wheel from GitHub Releases (or `pip install .` from a checkout):
29
+
30
+ ```sh
31
+ python -m pip install ./dcc_mcp_kdenlive-0.1.0-py3-none-any.whl
32
+ dcc-mcp-kdenlive doctor
33
+ dcc-mcp-kdenlive serve
34
+ ```
35
+
36
+ The default service is standalone and chooses an available loopback port. It can
37
+ edit files independently of the editor. For the existing editor's UI, supply both
38
+ its exact PID and native window handle:
39
+
40
+ ```sh
41
+ dcc-mcp-kdenlive serve --pid 1234 --hwnd 5678 --host-version 26.08.1
42
+ dcc-mcp-cli list
43
+ dcc-mcp-cli load-skill kdenlive-project --instance-id INSTANCE_ID
44
+ ```
45
+
46
+ GUI binding uses the exact PID and window handle without assuming a window title;
47
+ Kdenlive's title changes with the active project and profile.
48
+
49
+ Discover the instance through the gateway and use search/describe/call with its
50
+ returned tool slugs. The CLI prints its direct MCP URL as an alternative. Configure
51
+ an MCP client with that HTTP URL or the machine's DCC-MCP gateway URL.
52
+
53
+ Configuration:
54
+
55
+ | Environment variable | Meaning |
56
+ | --- | --- |
57
+ | `DCC_MCP_KDENLIVE_EXECUTABLE` | Installed Kdenlive executable; also locates sibling MLT/FFmpeg programs |
58
+ | `DCC_MCP_KDENLIVE_MELT` | Explicit MLT melt executable |
59
+ | `DCC_MCP_KDENLIVE_FFPROBE` | Explicit FFprobe executable |
60
+ | `DCC_MCP_KDENLIVE_FFMPEG` | Explicit FFmpeg executable |
61
+ | `DCC_MCP_KDENLIVE_DATA` | Installed Kdenlive data directory |
62
+ | `DCC_MCP_KDENLIVE_PORT` | Optional fixed instance port |
63
+
64
+ No editor, plugins or model weights are downloaded implicitly. `doctor` reports
65
+ missing programs; install Kdenlive from its official distribution when needed.
66
+
67
+ ## Agent capabilities
68
+
69
+ Eight progressively loaded skill packages ship in the wheel:
70
+
71
+ | Skill | Tools |
72
+ | --- | --- |
73
+ | `kdenlive-project` | Create, inspect, validate and set guides |
74
+ | `kdenlive-media` | Import file/color/title producers and relink media |
75
+ | `kdenlive-timeline` | Append with gaps, split, remove and ripple |
76
+ | `kdenlive-effects` | Add/remove effects, keyframe parameters, compositions |
77
+ | `kdenlive-catalog` | Query **installed** MLT services and native asset definitions |
78
+ | `kdenlive-export` | Async MP4, WebM, ProRes MOV and WAV rendering |
79
+ | `kdenlive-interchange` | FFprobe inspection and SRT subtitle authoring |
80
+ | `kdenlive-setup` | Host and executable readiness |
81
+
82
+ The catalog is dynamic: it exposes the effects/producers/transitions installed
83
+ with the host, including their native parameter metadata. It does not assume all
84
+ optional MLT plugins are available. Native MLT parameter values, including
85
+ keyframe expressions, remain strings; discover each service before configuring it.
86
+
87
+ Editor-only capabilities (multi-sequence editing, grouped/mixed clips, slip/slide,
88
+ multicam, title designer, speech recognition, tracking/rotoscoping, proxies,
89
+ recording, layouts and settings) use the existing `ui-control` skill. These are
90
+ **UI routes, not claimed native APIs**. They depend on available controls and host
91
+ features. See [coverage](docs/capabilities.md) and [live acceptance](docs/acceptance.md).
92
+
93
+ Every document edit creates a **new file**. Existing outputs are never replaced.
94
+ Use the inspection result's `sha256` as `expected_sha256` to fence edits against
95
+ stale input. Source files remain unchanged; opening the new artifact and checking
96
+ the editor is a separate operation. Grouped and nested timeline mutations reject
97
+ with an editor-route instruction. File operations do not participate in editor Undo.
98
+
99
+ ## Render and recover
100
+
101
+ Load `kdenlive-export`, describe `render_project`, then supply a new output path,
102
+ preset, and explicit inclusive `start` / `end` frames. The core returns an async
103
+ job ID. Poll `jobs_get_status` until terminal; `jobs_cancel` cooperatively stops
104
+ and reaps the render child. The final file is published only after FFprobe finds
105
+ streams. The four encoding presets are portable defaults; other native export
106
+ configurations remain available through the editor.
107
+
108
+ ## Development and releases
109
+
110
+ ```sh
111
+ python -m pip install -e '.[test]' ruff build twine
112
+ python -m ruff check src tests tools
113
+ python -m ruff format --check src tests tools
114
+ python -m pytest -q
115
+ python -m build
116
+ python -m twine check dist/*
117
+ python tools/build_artifacts.py
118
+ ```
119
+
120
+ CI validates Linux and Windows, Python 3.7 native compatibility and current Python,
121
+ wheel installation, MCP HTTP calls, and real Linux MLT rendering. Release Please
122
+ manages versions and changelogs. Release artifacts include wheel, sdist, an agent
123
+ skill ZIP, an install manifest and SHA-256 checksums with provenance attestation.
124
+ See [release operations](docs/releases.md) for publishing and catalog onboarding.
125
+
126
+ Kdenlive is a KDE project. This adapter is independently maintained and is not
127
+ endorsed by KDE. It does not bundle Kdenlive or MLT binaries.
@@ -0,0 +1,43 @@
1
+ # Acceptance and evidence
2
+
3
+ ## Automated
4
+
5
+ `python -m pytest` tests copy-on-write isolation, revision conflicts, XML safety,
6
+ timeline frame arithmetic, effects, subprocess cancellation, metadata validation
7
+ and actual MCP initialize/load/call/error responses. Server tests disable gateway
8
+ failover so they cannot disturb a running gateway.
9
+
10
+ Set `KDENLIVE_LIVE_TEST=1` and configure the MLT/FFprobe executable paths to include
11
+ the real renderer test. It creates a project with a color clip, renders a second
12
+ of video, and verifies duration and resolution from the final media stream.
13
+
14
+ ## Editor acceptance
15
+
16
+ 1. Start or select Kdenlive and record its version, PID and HWND.
17
+ 2. Start the adapter with the exact host binding. Discover its live instance.
18
+ 3. Load `ui-control`; report `provider=dcc-cua runtime=VERSION pid=PID hwnd=HWND`.
19
+ 4. Snapshot the editor. Preserve any unsaved user project.
20
+ 5. Open only a test artifact created in a disposable output directory.
21
+ 6. Re-observe and check the bin, tracks, duration and project monitor. Save a new
22
+ native roundtrip file, then inspect it independently through the project tools.
23
+ 7. Close the test project, stop UI control and stop the adapter. Confirm its
24
+ registry row is no longer routable.
25
+
26
+ Every UI action uses a fresh observation. Stop after user interruption or a
27
+ permission/policy rejection. No generic Computer Use or alternate input backend
28
+ is part of this adapter's acceptance path.
29
+
30
+ Publication evidence must distinguish unit/MCP tests, renderer acceptance,
31
+ editor readback, CI at the exact release SHA, and downloaded release assets.
32
+
33
+ ## 2026-09-13 acceptance
34
+
35
+ - Native Kdenlive 26.08.1 on Windows opened an adapter-created 640x360 project.
36
+ DCC-CUA 1.8.3 exact-window pixels and UIA confirmed the named bin clip, V1 track,
37
+ two-second duration and matching blue project-monitor image. Native save/reopen
38
+ roundtrip was not established by this observation.
39
+ - CLI discovery and progressive skill loading reached a GUI-bound adapter using
40
+ Core 0.20.28. `render_project --wait` traversed pending -> running -> completed.
41
+ FFprobe confirmed H.264, 640x360, 25 fps and 50 video frames in the final artifact.
42
+ - The pre-existing unsaved user project was preserved in its original process;
43
+ the acceptance project ran in a separate editor instance.
@@ -0,0 +1,29 @@
1
+ # Capability contract
2
+
3
+ | Domain | Implemented structured route | Editor route / limitation |
4
+ | --- | --- | --- |
5
+ | Project | Create, inspect, reference validation, guides | Open/save/undo/settings through UI; disk edits are separate copies |
6
+ | Project bin | File/color/title-template import, relink | Folders, tags, proxy settings and clip jobs through UI |
7
+ | Timeline | Ungrouped append/gap, split, remove, single-playlist ripple | Insert-overwrite, trim/slip/slide, groups/mixes, nested/multiple sequences, multicam through UI |
8
+ | Video effects | Dynamic service/asset discovery, attach/remove, native parameters and keyframes | Plugin availability depends on installation; producer effects apply to every use |
9
+ | Audio | Native audio filters/parameters, track effects, WAV rendering | Recording/mixer interaction and device setup through UI |
10
+ | Compositions | MLT transitions between tractor tracks and native parameters | Interactive mix edits through UI |
11
+ | Titles | Import native `.kdenlivetitle` templates | Design/edit text, fonts, paths and layout through title designer UI |
12
+ | Subtitles | New UTF-8 SRT from timed text | Import and project subtitle tracks, styling, speech recognition through UI |
13
+ | Export | Explicit frame-range async MP4/WebM/ProRes/WAV, cancel, probe verification | Other native export presets, render queue UI and hardware-specific encoding through UI |
14
+ | Assets | Installed effects, transitions, producers, consumers, profiles, templates, LUTs/lumas | Online resource accounts/downloads require their normal host setup |
15
+ | AI / tracking | Discover relevant installed assets | Speech models, tracking, rotoscoping and analysis are editor workflows, not native adapter endpoints |
16
+ | UI / settings | Core ui-control skill with exact PID/HWND | Requires DCC-CUA readiness; blocked controls are reported explicitly |
17
+
18
+ This release does not claim every editor operation has a typed native API.
19
+ The project schema is based on Kdenlive's documented MLT serialization and the
20
+ 1.04 document graph. Newer documents are inspected and unknown XML is preserved;
21
+ complex timeline changes must use the editor's model. Native 26.08 editor roundtrip
22
+ acceptance is tracked separately from XML and render tests.
23
+
24
+ Sources:
25
+
26
+ - [Kdenlive project file details](https://docs.kdenlive.org/en/project_and_asset_management/file_management/project_files.html)
27
+ - [Kdenlive rendering](https://docs.kdenlive.org/en/exporting/render.html)
28
+ - [MLT melt command line](https://www.mltframework.org/docs/melt/)
29
+ - [Kdenlive source](https://invent.kde.org/multimedia/kdenlive)