25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。
TypeScript aicliclickhousedatabasedatabase-clientdatabase-managementdockerguimcpmongodbmysqlpostgresqlredisrustsql-serversqlitetaurivue
fix(mcp): add back use std::env, use compile-time #[cfg] for locate_mcp_bin
t8y23f58526df8bf
diff --git a/src-tauri/src/commands/mcp.rs b/src-tauri/src/commands/mcp.rsindex 6cc8f7b67d..5a86401385 100644--- a/src-tauri/src/commands/mcp.rs+++ b/src-tauri/src/commands/mcp.rs@@ -1,3 +1,4 @@+use std::env;use std::path::Path;use std::process::Command;use std::time::Duration;@@ -91,10 +92,14 @@ fn installed_mcp_version() -> Option<String> {}fn locate_mcp_bin() -> Option<String> {- if cfg!(windows) {+ #[cfg(windows)]+ {return locate_windows_command("dbx-mcp-server");}- command_stdout("which", &["dbx-mcp-server"]).ok().and_then(first_non_empty_line)+ #[cfg(not(windows))]+ {+ command_stdout("which", &["dbx-mcp-server"]).ok().and_then(first_non_empty_line)+ }}#[cfg(windows)]