MCP: Performance (#199) #213
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
needs-info
needs-triage
question
ready-for-agent
ready-for-human
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crowmaki/ai-studio!213
Loading…
Reference in a new issue
No description provided.
Delete branch "issue-199-mcp-performance"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #199. Part of #157.
A harness can now set up the dialogue timing that drives Shots. Each tool wraps an existing
ApiImplcommand. Edits land in the undo log with their usual labels, except import and Bounce, which core does not make undoable.Tools
read_performance: a Scene's Performance with its version, Line marks (units), the previous version's marks (ghost), every version and whether it is off. It isnullwhen the Scene has none. The audio blob id and waveform are left out because a harness can't use them.import_performance: imports an audio file (absolute path) over a run of Lines, or over all of them, and auto-places the marks.set_performance_mark/rerun_performance_auto_placement: change the marks of the Scene's newest version. They take asceneId, because only the newest version can be edited.bounce_performance: bounces the Cut into a new version. ReturnsholeLineIdsand the Performance.set_performance_off: switches the Performance off and on. A Scene without a Performance is refused.The server instructions now say what a Bounce is and how a Performance affects its Shots.
Tests
src-tauri/tests/mcp_performance.rscovers each acceptance criterion:It also covers the refusals: a relative path, and marks or the off/on switch on a Scene without a Performance.
The ffmpeg
lavficode the tests repeated is now one helper,common::mcp::lavfi.The full
cargo testpasses.