dcc-mcp-capcut
by dcc-mcp
README.md
# dcc-mcp-capcut
Typed MCP adapter for CapCut Desktop. CapCut has no stable public Python API,
so this adapter uses a localhost, token-authenticated bridge and a bundled
CapCut-side panel. MCP calls remain typed and auditable; the panel is the only
component allowed to invoke CapCut host APIs.
## Capabilities
The bundled skills cover project lifecycle/settings, media import/relink and
proxies, timeline/clip editing, transitions, text and auto-captions, audio
mixing/fades, effects and color, AI helpers (background removal/stabilization),
video/thumbnail export, and a complete `build_vlog_demo` recipe.
## Run locally
```powershell
uv sync --extra dev
uv run pytest
uv run python -c "from dcc_mcp_capcut import start_server; start_server()"
```
## Guided installation and environment setup
The `capcut-setup` skill is built in. Call `detect_installation` and then
`installation_plan` when CapCut is missing. `auto_setup_capcut` executes the
full install-and-bind flow after receiving an operator-owned
`ui_control__system_operation` grant: it installs `ByteDance.CapCut` when
needed, configures the shared runtime/bridge, loads the panel, and verifies the
exact CapCut process. The adapter never shells out, edits the registry, or
silently installs software.
Install/load the panel from `src/dcc_mcp_capcut/capcut_panel` in the supported
CapCut extension host, then verify `GET /health` on the bridge URL. Set
`DCC_MCP_CAPCUT_BRIDGE_TOKEN` to a per-user secret for production use.
## Vlog demo
`demo/assets.json` records NASA/JPL public-domain source pages and attribution
notes. Run `python demo/fetch_assets.py`, then `python demo/render_vlog.py` for
an offline 9:16 proof in `demo/output/free-travel-vlog.mp4`. When CapCut is
available, call `auto_setup_capcut`, import the same assets, and replay
`demo/vlog_recipe.json` through `build_vlog_demo` for a native project export.
## Runtime boundary
The adapter is an external-bridge (`instance_type=gui`) service. It does not
invent a CapCut API, use raw script execution, or silently fall back to generic
computer automation. For UI verification use the project-owned `dcc-cua` /
`ui-control` route with an exact CapCut PID and HWND.
`dcc-mcp-runtime` is distributed as a separately verified runtime bundle, not
as a PyPI dependency. The `dcc-mcp-capcut-runtime` entry point refuses to start
when that runtime is missing, its CapCut manifest is stale, or required
handshake metadata is absent.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo issues