diff --git a/crates/mcp/src/tools/look.rs b/crates/mcp/src/tools/look.rs index bebf0ac..120fb69 100644 --- a/crates/mcp/src/tools/look.rs +++ b/crates/mcp/src/tools/look.rs @@ -2300,7 +2300,7 @@ mod tests { let info = call(&mut srv, "clip_info", json!({"clip": "V1#0"})); assert!(!info.is_error, "{}", info.text); assert!(info.text.contains("speed 1.00x→2.00x (3 keys) ·"), "{}", info.text); - assert!(!info.text.contains("speed 1x"), "{}", info.text); + assert!(!info.text.lines().any(|l| l.starts_with("speed 1x")), "{}", info.text); let tl = call(&mut srv, "timeline", json!({})); assert!(!tl.is_error, "{}", tl.text); assert!(tl.text.contains("speed ramp 1.00x→2.00x (3 keys)"), "{}", tl.text); diff --git a/crates/mcp/src/tools/project.rs b/crates/mcp/src/tools/project.rs index 955299a..782ca81 100644 --- a/crates/mcp/src/tools/project.rs +++ b/crates/mcp/src/tools/project.rs @@ -160,7 +160,7 @@ pub fn tools() -> Vec { "tonemap": {"type": "string", "enum": ["reference", "standard", "vivid"], "description": "HDR to SDR rendition."}, "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."}, "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."}, - "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]}, + "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]}, "proxies": {"type": "boolean", "description": "Play and edit through proxy files."}, "auto_proxies": {"type": "boolean", "description": "Make proxies automatically for heavy sources."}, "encoder": {"type": "string", "enum": ["auto", "hardware", "software"], "description": "Which encoder export uses."},