mcp-for-cascadeur
# MCP for Cascadeur
Smart MCP connects an AI assistant to the live Cascadeur application. Inspect
native scenes and rigs, author body and finger animation, preserve curves,
retime keys, run native animation tools and verify saved results. Optional
Kimodo generation and provider-neutral visual review extend the native workflow.
Smart Motion and the `kimodo_*` MCP tools described here are part of the current
checkout. The published `release/0.1.0` tag predates these additions. Install this
checkout for the panel; the tag remains the reproducible earlier release.
## Install
Requires Python 3.11+, [uv](https://docs.astral.sh/uv/getting-started/installation/)
and a Cascadeur build containing **Scripts > MCP > Start script server**.
The supported native-job target is Windows Cascadeur **2026.2.3, build 44356**
with the validated Cascy rig. Generic discovery can inspect other installations;
their native editing behavior must be verified separately.
```powershell
uv tool install --force ".[animation]"
mcp-for-cascadeur setup --install-startup --local-tool --allow-python
```
Setup discovers Cascadeur, installs a stable host runtime outside the uv cache,
and configures the supported MCP client. Existing settings are preserved and
backed up. Restart Cascadeur, open a scene, and reconnect the MCP client. The
welcome screen alone does not provide scene-idle execution events.
```powershell
mcp-for-cascadeur doctor
```
Setup also installs **Scripts > MCP > Smart Motion**. Its native panel uses
Cascadeur's bundled Qt; generation runs in an external worker. It creates one
animation for the selected character and timeline range, without video rendering
or VLM requests. Prepared Kimodo sources and model assets are required. Known
UE5/UEFN humanoid mappings are automatic; custom rigs can bind their body roles
in the panel. See [Smart Motion](docs/smart-motion.md) and
[installation](docs/installation.md); no PyPI publication is required.
## What is available
| Area | Operations |
| --- | --- |
| Scene and rig inspection | Application/build/license, native objects and channels, hierarchy, RigInfo, Point bindings, tracks, keys, native tools and API signatures |
| Body animation | Complete or semantic Point poses, bounded pose sequences, relative corrections, motion plans and native mirroring |
| Hands and independent FK | Validated finger-local rotations; separate guarded FK-subtree editing and restoration |
| Curves and timing | Keys, native interpolation including CLAMPED_BEZIER, curve-preserving Point edits and synchronized character retiming |
| Native animation tools | Video Mocap, pose-based Motion Generation, Animation Unbaking and AutoPhysics with progress and recovery |
| Recovery | Whole-model checkpoints, durable poses, request receipts, verified rollback and persistent recovery fences |
| Playback and delivery | Observed native playback, camera/viewport capture, native save/reopen and licensed verified FBX export |
| Optional Kimodo pipeline | Text or native body key poses → Kimodo-SOMA-RP-v1.2 → the selected mapped humanoid; API clients may retain up to four candidates |
| Smart Motion panel | Prompt, selected character/range, native key poses, one result, progress, cooperative cancellation and resume; no VLM or video rendering |
| Visual review | Gemini or a compatible local Qwen3-VL service; common report schema, multi-view motion evidence and explicit uncertainty |
The packaged MCP server supplies native structured tools, `animation_review` and
the `kimodo_*` job tools. Smart Motion, MCP and the CLI use the same durable
worker service and prepared checkout pipeline. `kimodo_generate` returns a job
ID; `kimodo_job_status` observes it without holding the MCP connection open.
Visual review and raw generation can run while Cascadeur is disconnected.
Native Kimodo transfer requires `setup --allow-python`; this explicit opt-in
has Cascadeur's application privileges.
## The animation workflow
1. Inspect the actual scene, native capabilities, recovery state, rig and timeline.
2. Choose the input route: existing animation, native video Mocap, native endpoint
inbetweening, or external Kimodo text/keypose generation.
3. Save an isolated source copy and capture the appropriate checkpoint. Plan body
poses and timing from motion events; handle finger articulation separately.
4. Generate or apply bounded edits. Read actual solved results, protected channels,
geometry and contact diagnostics. Poll native jobs to verified completion.
5. For an assistant-driven visual review, render the resulting motion from several
views and send the comparison to the configured reviewer. Interactive panel
generation skips this stage. Correct only a diagnosed problem, then recheck it.
6. Save, reopen and verify the result; observe playback and verify any licensed
export in the receiving application. Retain useful outputs and recovery records.
The complete operating instructions are shipped inside the MCP package:
| Resource | Purpose |
| --- | --- |
| `cascadeur://guide` | Native editing and recovery rules |
| `cascadeur://workflow` | Full Smart MCP route selection, generation, review and delivery flow |
| `cascadeur://capabilities` | Machine-readable route boundaries and limits |
| `cascadeur://tools` | Exact registered parameter contracts |
| `cascadeur://scene` | Fresh native scene context |
The `animate_character` prompt applies this workflow to a brief. An assistant
must report measured outcomes and remaining uncertainty; tool success alone
does not establish natural movement or game readiness.
## Configure visual review
Gemini and local models perform **visual analysis**, while Kimodo generates
motion and Cascadeur edits/solves it. The review provider returns the same
validated candidate IDs, usability, confidence, scores, findings, limitations
and preference. Matching JSON does not establish equal animation judgment.
```powershell
mcp-for-cascadeur review configure --provider gemini --model gemini-flash-latest
mcp-for-cascadeur review key set gemini
mcp-for-cascadeur review status --json
```
The key command uses hidden input. Windows stores the secret encrypted for the
current user outside the repository. Environment variables remain available on
all supported platforms. Do not put a real key in source, client arguments,
Docker files, prompts or committed examples.
An MCP client calls `animation_review` with an absolute workspace JSON request
and optional new output path. It returns review, selection and native-evidence
status without editing the scene. See the [request contract](docs/workflow.md#mcp-review-request).
For an already running local service:
```powershell
mcp-for-cascadeur review configure --provider openai-compatible --model '<local-model-id>' --base-url http://127.0.0.1:8000/v1 --media-transport frames
```
Provisioning that service/model is separate from configuring the MCP integration.
Use the video or timestamped-frame transport supported by the runtime. Measure
VRAM and benchmark a replacement on the same clips before trusting its rankings.
See [visual-review configuration](docs/workflow.md#visual-review-providers).
## Optional Kimodo generation
Kimodo runs in Linux GPU containers; Cascadeur remains on Windows. The supported
checkpoint is **Kimodo-SOMA-RP-v1.2**, with a real 4-bit LLM2Vec encoder. The
Indie-compatible route uses this project's Point retarget instead of Pro-only
native Retargeting Copy/Paste.
Open **Scripts > MCP > Smart Motion**, enter a prompt, choose the target character
and take the selected timeline range. Enable body anchors to use native keys or
add the current pose. The panel exposes generation, saved results and runtime
controls. The same pipeline is available through `kimodo_generate` and
`mcp-for-cascadeur motion generate --request '<request.json>'`; parameters and
job handling are documented in the [workflow](docs/workflow.md#smart-motion-panel-mcp-and-cli).
Generation and transfer have no fixed total frame-count ceiling. Long inference
uses native continuation in chunks of up to 240 frames; the chosen range determines
the output length. Transfer writes bounded batches and verifies the saved result.
The model produces 30 FPS body/root motion. Finger articulation and seamless loops
need separate work. Real memory, disk, runtime and native index capacity still
apply. Raw NPZ/FBX output does not establish native transfer correctness. See
[Kimodo setup and commands](integrations/kimodo/README.md).
## Limits and verification
Character retiming accepts 2–8 synchronized keys. General checked edits require
a complete recovery checkpoint within the byte, node and sample budgets; the
terminal solver guard remains read-only. Smart Motion writes only its isolated
owned result through bounded Point batches, retaining the immutable source.
Other native animation tools keep their separately documented acceptance scope.
Native actions report dispatch. Structured jobs verify operation-specific
completion. After an uncertain write, inspect its receipt rather than retrying.
A restart does not clear a failed recovery fence. Saved scenes, checkpoints and
single-pose snapshots serve different purposes.
See [capability contracts](docs/capabilities.md), [workflow](docs/workflow.md),
[verification](docs/verification.md) and the [native API reference](docs/native-api-notes.md).
## Updating and removal
Install the intended release source and repeat setup, then restart Cascadeur and
the MCP client so imported native modules reload. `mcp-for-cascadeur uninstall`
removes the recorded startup hook, Smart Motion menu and client entry, preserving scenes, models
and user settings. Remove a persistent uv installation separately with
`uv tool uninstall mcp-for-cascadeur`.
Contributors should follow [CONTRIBUTING.md](CONTRIBUTING.md) and run only affected
tests and immediate integration checks.
## Licenses
The integration code is MIT licensed. Cascadeur, its sample assets, NVIDIA Kimodo,
MotionCorrection, Blender and model weights retain their respective licenses and
notices. They are not relicensed by this repository's MIT license.
TDQS
Scored across 95 tools
The set contains many closely related pose read/write/offset/apply tools across semantic, character, rig, subtree, and transform abstractions, with subtle distinctions that are hard to choose between. Some domains are distinct, but the pose-editing surface has multiple tools that appear to do nearly the same thing under different abstractions.
Names are almost entirely snake_case, which is good, but conventions vary between resource_action and action_resource patterns, and singular/plural forms are mixed. Families like semantic_pose_*, character_pose_*, rig_pose_*, and subtree_pose_* help, but the many near-duplicate names reduce predictability.
With 95 tools, this is far beyond a well-scoped MCP tool set and exceeds the extreme-mismatch threshold. The surface is very large and contains many overlapping pose, recovery, checkpoint, readback, and transaction tools that could be consolidated.
Coverage is broad: scene lifecycle, selection, camera, viewport, import/export, inspection, timeline, tracks, poses, rig profiles, characters, playback, checkpoints, recovery, and transactions are all represented. Some gaps remain, such as explicit object creation/deletion or scene close operations, but core animation and scene-editing workflows are heavily covered.