Skip to content

armgit / dbx

Public Imported from GitHub
0

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。

fix(mcp): route GaussDB through desktop bridge

t8y2dbf9cae4c07b
diff --git a/crates/dbx-core/assets/database-drivers.manifest.json b/crates/dbx-core/assets/database-drivers.manifest.json
index 5691724860..c045529f1f 100644
--- a/crates/dbx-core/assets/database-drivers.manifest.json
+++ b/crates/dbx-core/assets/database-drivers.manifest.json
@@ -707,7 +707,7 @@
"dbType": "gaussdb",
"label": "GaussDB",
"runtimeMode": "native",
- "mcpMode": "direct",
+ "mcpMode": "bridge",
"singleConnectionPool": false,
"metadataConnectionScoped": false,
"skipTcpProbe": false,
@@ -975,7 +975,7 @@
"dbType": "opengauss",
"label": "openGauss",
"runtimeMode": "native",
- "mcpMode": "direct",
+ "mcpMode": "bridge",
"singleConnectionPool": false,
"metadataConnectionScoped": false,
"skipTcpProbe": false,
diff --git a/packages/node-core/src/diagnostics.ts b/packages/node-core/src/diagnostics.ts
index 8a619ad3bc..db501221da 100644
--- a/packages/node-core/src/diagnostics.ts
+++ b/packages/node-core/src/diagnostics.ts
@@ -2,7 +2,7 @@ import { access, readFile } from "node:fs/promises";
import { bridgePortFilePath, dbPath, appDataDir } from "./paths.js";
import { inspectConnectionStore } from "./connections.js";
-export const DIRECT_QUERY_TYPES = ["postgres", "redshift", "mysql", "doris", "starrocks", "manticoresearch", "sqlite", "rqlite", "gaussdb", "kwdb", "opengauss", "questdb"] as const;
+export const DIRECT_QUERY_TYPES = ["postgres", "redshift", "mysql", "doris", "starrocks", "manticoresearch", "sqlite", "rqlite", "kwdb", "questdb"] as const;
export type DirectQueryType = (typeof DIRECT_QUERY_TYPES)[number];
@@ -30,6 +30,7 @@ export const BRIDGE_REQUIRED_TYPES = [
"vastbase",
"goldendb",
"databend",
+ "gaussdb",
"yashandb",
"databricks",
"saphana",
@@ -37,6 +38,7 @@ export const BRIDGE_REQUIRED_TYPES = [
"vertica",
"firebird",
"exasol",
+ "opengauss",
"oceanbase-oracle",
"gbase",
"tdengine",
diff --git a/packages/node-core/tests/driver-manifest.test.ts b/packages/node-core/tests/driver-manifest.test.ts
index 51a90c1c68..4e95c698d6 100644
--- a/packages/node-core/tests/driver-manifest.test.ts
+++ b/packages/node-core/tests/driver-manifest.test.ts
@@ -62,6 +62,14 @@ test("Manticore Search is direct-query capable", () => {
assert.equal(DIRECT_QUERY_TYPES.includes("manticoresearch" as any), true);
});
+test("GaussDB family requires the DBX Desktop bridge for MCP", () => {
+ for (const dbType of ["gaussdb", "opengauss"] as const) {
+ assert.equal(isDirectQueryType(dbType), false);
+ assert.equal(DIRECT_QUERY_TYPES.includes(dbType as any), false);
+ assert.equal(BRIDGE_REQUIRED_TYPES.includes(dbType as any), true);
+ }
+});
+
test("driver manifest declares support levels and product capabilities", () => {
const manifest = loadManifest();