From c77583cd2dc279e288b9af93870f14e3d1ff4263 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Fri, 6 Nov 2026 14:06:05 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20MCP:=20sample=5Frate=20schema=20has?= =?UTF-8?q?=20a=20type;=20speed-ramp=20readback=20test=20no=20longer=20tri?= =?UTF-8?q?ps=20on=20the=20key=20list?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/mcp/src/tools/look.rs | 2 +- crates/mcp/src/tools/project.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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."},