Skip to content

Commit d7f871b

Browse files
committed
feat(mcp): add uv/uvx to Windows script detection for better reliability
1 parent a8e3c44 commit d7f871b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src-tauri/src/mcp/client/stdio.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,11 @@ impl McpClient for StdioClient {
165165
let is_script = extension.eq_ignore_ascii_case("cmd")
166166
|| extension.eq_ignore_ascii_case("bat")
167167
|| path.file_name().and_then(std::ffi::OsStr::to_str) == Some("npx")
168-
|| original_cmd_str == "npx";
168+
|| path.file_name().and_then(std::ffi::OsStr::to_str) == Some("uv")
169+
|| path.file_name().and_then(std::ffi::OsStr::to_str) == Some("uvx")
170+
|| original_cmd_str == "npx"
171+
|| original_cmd_str == "uv"
172+
|| original_cmd_str == "uvx";
169173

170174
let mut cmd = if is_script {
171175
let mut c = Command::new("cmd");

0 commit comments

Comments
 (0)