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
#!/usr/bin/env pwsh
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
$exe=""
$pathsep=":"
$env_node_path=$env:NODE_PATH
$new_node_path="C:\pnpm-fixture\global\5\.pnpm\@[email protected]\node_modules\@dbx-app\mcp-server\bin\node_modules;C:\pnpm-fixture\global\5\.pnpm\@[email protected]\node_modules\@dbx-app\mcp-server\node_modules;C:\pnpm-fixture\global\5\.pnpm\@[email protected]\node_modules\@dbx-app\node_modules;C:\pnpm-fixture\global\5\.pnpm\@[email protected]\node_modules;C:\pnpm-fixture\global\5\.pnpm\node_modules"
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
# Fix case when both the Windows and Linux builds of Node
# are installed in the same directory
$exe=".exe"
$pathsep=";"
} else {
$new_node_path="/pnpm-fixture/global/5/.pnpm/@[email protected]/node_modules/@dbx-app/mcp-server/bin/node_modules:/pnpm-fixture/global/5/.pnpm/@[email protected]/node_modules/@dbx-app/mcp-server/node_modules:/pnpm-fixture/global/5/.pnpm/@[email protected]/node_modules/@dbx-app/node_modules:/pnpm-fixture/global/5/.pnpm/@[email protected]/node_modules:/pnpm-fixture/global/5/.pnpm/node_modules"
}
if ([string]::IsNullOrEmpty($env_node_path)) {
$env:NODE_PATH=$new_node_path
} else {
$env:NODE_PATH="$new_node_path$pathsep$env_node_path"
}
$ret=0
if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../global/5/.pnpm/@[email protected]/node_modules/@dbx-app/mcp-server/bin/dbx-mcp-server.js" $args
} else {
& "$basedir/node$exe" "$basedir/../global/5/.pnpm/@[email protected]/node_modules/@dbx-app/mcp-server/bin/dbx-mcp-server.js" $args
}
$ret=$LASTEXITCODE
} else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../global/5/.pnpm/@[email protected]/node_modules/@dbx-app/mcp-server/bin/dbx-mcp-server.js" $args
} else {
& "node$exe" "$basedir/../global/5/.pnpm/@[email protected]/node_modules/@dbx-app/mcp-server/bin/dbx-mcp-server.js" $args
}
$ret=$LASTEXITCODE
}
$env:NODE_PATH=$env_node_path
exit $ret