forge
Explore
Log in

Don't you dare go Hollow

✅ MCP: sample_rate schema has a type; speed-ramp readback test no longer trips on the key list

Browse files at this commit

c77583cd2dc279e288b9af93870f14e3d1ff4263Ahmet Kaan GümüşParent: c327308
crates/mcp/src/tools/look.rsmodified+1 -1
@@ -2300,7 +2300,7 @@ mod tests {
2300 let info = call(&mut srv, "clip_info", json!({"clip": "V1#0"}));2300 let info = call(&mut srv, "clip_info", json!({"clip": "V1#0"}));
2301 assert!(!info.is_error, "{}", info.text);2301 assert!(!info.is_error, "{}", info.text);
2302 assert!(info.text.contains("speed 1.00x→2.00x (3 keys) ·"), "{}", info.text);2302 assert!(info.text.contains("speed 1.00x→2.00x (3 keys) ·"), "{}", info.text);
2303- assert!(!info.text.contains("speed 1x"), "{}", info.text);2303+ assert!(!info.text.lines().any(|l| l.starts_with("speed 1x")), "{}", info.text);
2304 let tl = call(&mut srv, "timeline", json!({}));2304 let tl = call(&mut srv, "timeline", json!({}));
2305 assert!(!tl.is_error, "{}", tl.text);2305 assert!(!tl.is_error, "{}", tl.text);
2306 assert!(tl.text.contains("speed ramp 1.00x→2.00x (3 keys)"), "{}", tl.text);2306 assert!(tl.text.contains("speed ramp 1.00x→2.00x (3 keys)"), "{}", tl.text);
crates/mcp/src/tools/project.rsmodified+1 -1
@@ -160,7 +160,7 @@ pub fn tools() -> Vec<Tool> {
160 "tonemap": {"type": "string", "enum": ["reference", "standard", "vivid"], "description": "HDR to SDR rendition."},160 "tonemap": {"type": "string", "enum": ["reference", "standard", "vivid"], "description": "HDR to SDR rendition."},
161 "notes": {"type": "string", "examples": ["Cut the intro to 30 s"], "description": "The project's notes: free text, several lines allowed (a newline is \\n in JSON). An empty string clears them. Saved with the project; one undo step."},161 "notes": {"type": "string", "examples": ["Cut the intro to 30 s"], "description": "The project's notes: free text, several lines allowed (a newline is \\n in JSON). An empty string clears them. Saved with the project; one undo step."},
162 "still_secs": {"type": "number", "description": "How long a still image is placed for, in seconds: 0.5 to 600 (default 5). Stills placed after this change take it; clips already placed keep theirs. Saved with the project; one undo step."},162 "still_secs": {"type": "number", "description": "How long a still image is placed for, in seconds: 0.5 to 600 (default 5). Stills placed after this change take it; clips already placed keep theirs. Saved with the project; one undo step."},
163- "sample_rate": {"description": "The project's sound mix rate: \"source\" (the default: the highest rate among the sources, 48 kHz when all are below 44.1 kHz), or 44100, 48000 or 96000 in Hz. Saved with the project; one undo step.", "enum": ["source", 44100, 48000, 96000]},163+ "sample_rate": {"type": ["string", "integer"], "description": "The project's sound mix rate: \"source\" (the default: the highest rate among the sources, 48 kHz when all are below 44.1 kHz), or 44100, 48000 or 96000 in Hz. Saved with the project; one undo step.", "enum": ["source", 44100, 48000, 96000]},
164 "proxies": {"type": "boolean", "description": "Play and edit through proxy files."},164 "proxies": {"type": "boolean", "description": "Play and edit through proxy files."},
165 "auto_proxies": {"type": "boolean", "description": "Make proxies automatically for heavy sources."},165 "auto_proxies": {"type": "boolean", "description": "Make proxies automatically for heavy sources."},
166 "encoder": {"type": "string", "enum": ["auto", "hardware", "software"], "description": "Which encoder export uses."},166 "encoder": {"type": "string", "enum": ["auto", "hardware", "software"], "description": "Which encoder export uses."},