@dbx-app/mcp-server 0.4.18 → 0.4.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -0
- package/package.json +2 -2
- package/server.json +2 -2
package/README.md
CHANGED
|
@@ -41,6 +41,21 @@ Add to your project's `.mcp.json`:
|
|
|
41
41
|
}
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
+
For Windows portable builds, set `DBX_DATA_DIR` to the portable data directory that contains `dbx.db`:
|
|
45
|
+
|
|
46
|
+
```json
|
|
47
|
+
{
|
|
48
|
+
"mcpServers": {
|
|
49
|
+
"dbx": {
|
|
50
|
+
"command": "dbx-mcp-server",
|
|
51
|
+
"env": {
|
|
52
|
+
"DBX_DATA_DIR": "D:\\DBX_x64-portable\\data"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
```
|
|
58
|
+
|
|
44
59
|
Or for development (from source):
|
|
45
60
|
|
|
46
61
|
```json
|
|
@@ -123,6 +138,8 @@ The MCP server reads your database connections from DBX's SQLite database:
|
|
|
123
138
|
- **Linux**: `~/.local/share/com.dbx.app/dbx.db`
|
|
124
139
|
- **Windows**: `%APPDATA%\com.dbx.app\dbx.db`
|
|
125
140
|
|
|
141
|
+
Windows portable builds store data next to `DBX.exe`, usually in `data\dbx.db`. Set `DBX_DATA_DIR` to that `data` folder instead of copying `dbx.db` into the default directory.
|
|
142
|
+
|
|
126
143
|
## DBX UI Integration
|
|
127
144
|
|
|
128
145
|
The `dbx_open_table` tool communicates with the running DBX app to open tables directly in the UI. This requires DBX to be running. If DBX is not running, the tool will return an error message.
|
|
@@ -181,6 +198,21 @@ npx @dbx-app/mcp-server
|
|
|
181
198
|
}
|
|
182
199
|
```
|
|
183
200
|
|
|
201
|
+
Windows 便携版需要在 MCP 配置中设置 `DBX_DATA_DIR`,指向包含 `dbx.db` 的便携版数据目录:
|
|
202
|
+
|
|
203
|
+
```json
|
|
204
|
+
{
|
|
205
|
+
"mcpServers": {
|
|
206
|
+
"dbx": {
|
|
207
|
+
"command": "dbx-mcp-server",
|
|
208
|
+
"env": {
|
|
209
|
+
"DBX_DATA_DIR": "D:\\DBX_x64-portable\\data"
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
```
|
|
215
|
+
|
|
184
216
|
#### 3. 使用
|
|
185
217
|
|
|
186
218
|
在 Claude Code 中直接说:
|
|
@@ -243,6 +275,8 @@ MCP Server 从 DBX 的 SQLite 数据库读取连接信息:
|
|
|
243
275
|
- **Linux**: `~/.local/share/com.dbx.app/dbx.db`
|
|
244
276
|
- **Windows**: `%APPDATA%\com.dbx.app\dbx.db`
|
|
245
277
|
|
|
278
|
+
Windows 便携版的数据通常在 `DBX.exe` 同级的 `data\dbx.db`。请把 `DBX_DATA_DIR` 设置为这个 `data` 文件夹,不要手工复制 `dbx.db` 到默认目录。
|
|
279
|
+
|
|
246
280
|
### DBX UI 联动
|
|
247
281
|
|
|
248
282
|
`dbx_open_table` 工具通过本地 HTTP 接口与运行中的 DBX 应用通信,直接在 UI 中打开表。需要 DBX 正在运行。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dbx-app/mcp-server",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.19",
|
|
4
4
|
"description": "MCP server for DBX — query databases from Claude Code, Cursor, and other AI agents",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai-agent",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@modelcontextprotocol/sdk": "^1.12.1",
|
|
32
32
|
"zod": "^3.25.20",
|
|
33
|
-
"@dbx-app/node-core": "^0.4.
|
|
33
|
+
"@dbx-app/node-core": "^0.4.19"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^22.15.21",
|
package/server.json
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"url": "https://github.com/t8y2/dbx",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.4.
|
|
9
|
+
"version": "0.4.19",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "@dbx-app/mcp-server",
|
|
14
|
-
"version": "0.4.
|
|
14
|
+
"version": "0.4.19",
|
|
15
15
|
"transport": {
|
|
16
16
|
"type": "stdio"
|
|
17
17
|
}
|