@dbx-app/mcp-server 0.4.90 → 0.4.92
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 +6 -2
- package/package.json +7 -7
- package/server.json +2 -2
package/README.md
CHANGED
|
@@ -152,7 +152,7 @@ Ask the MCP client to:
|
|
|
152
152
|
| `dbx_list_routines` | List stored procedures and functions in a schema, with an optional `routine_type` filter (PROCEDURE or FUNCTION) |
|
|
153
153
|
| `dbx_get_routine_source` | Return the source of a stored procedure or function by name, with an optional `signature` for overloaded names |
|
|
154
154
|
| `dbx_get_schema_context` | Return compact schema context suitable for an AI model |
|
|
155
|
-
| `dbx_execute_query` | Execute SQL or a supported MongoDB shell command, returning
|
|
155
|
+
| `dbx_execute_query` | Execute SQL or a supported MongoDB shell command, returning 100 rows by default (up to 1000 with the `max_rows` parameter) |
|
|
156
156
|
| `dbx_execute_batch` | Execute a SQL script containing multiple statements in one call, returning a result per statement (or a single merged result with `use_transaction` on a multi-statement script) |
|
|
157
157
|
| `dbx_open_session` | Open a stateful SQL query session pinned to one backend connection |
|
|
158
158
|
| `dbx_close_session` | Close a session and release its pinned connection resources |
|
|
@@ -164,6 +164,8 @@ Ask the MCP client to:
|
|
|
164
164
|
|
|
165
165
|
When connection scoping is enabled, mutating connection tools and desktop UI tools are hidden.
|
|
166
166
|
|
|
167
|
+
`dbx_execute_query` accepts an optional `max_rows` parameter (1–1000, default 100; out-of-range values are clamped, not rejected). It applies to SQL connections only: MongoDB shell commands always return at most 100 rows, and multi-statement scripts routed to the batch executor return at most 100 rows per statement.
|
|
168
|
+
|
|
167
169
|
`dbx_peek_messages` reads a Kafka topic in local or Web mode when `mq-admin` is enabled. Pass `connection_id` or `connection_name`, `topic`, optional `count` (1–100, default 20), `start_position` (`latest` by default, `earliest`, or `offset`), and optional non-negative `partition`. A non-negative `offset` is required only in offset mode; without a partition it applies to all partitions. The JSON response preserves base64 payloads and metadata, reports broker partial reads via `incomplete`, and reports whole-message omissions under a 256 KiB output budget via `outputTruncated`. It respects connection/tool scopes and permits read-only and production reads without committing consumer offsets. It does not support other MQ types or continuous subscriptions.
|
|
168
170
|
|
|
169
171
|
`dbx_list_databases` returns only database names allowed by the selected connection's MCP database scope. `dbx_send_message` is available when message-queue support is included in the server build.
|
|
@@ -529,7 +531,7 @@ MCP 配置:
|
|
|
529
531
|
| `dbx_list_tables` | 列出表、视图、集合或消息队列 Topic |
|
|
530
532
|
| `dbx_describe_table` | 获取字段和表结构 |
|
|
531
533
|
| `dbx_get_schema_context` | 获取适合 AI 使用的紧凑 Schema 上下文 |
|
|
532
|
-
| `dbx_execute_query` | 执行 SQL 或支持的 MongoDB Shell
|
|
534
|
+
| `dbx_execute_query` | 执行 SQL 或支持的 MongoDB Shell 命令,默认返回 100 行,可用 `max_rows` 参数提高到最多 1000 行 |
|
|
533
535
|
| `dbx_execute_batch` | 一次执行包含多条语句的 SQL 脚本,按语句返回结果(多语句脚本搭配 `use_transaction` 时返回单个合并结果) |
|
|
534
536
|
| `dbx_open_session` | 为 SQL 连接打开固定后端连接的有状态查询会话 |
|
|
535
537
|
| `dbx_close_session` | 关闭会话并释放固定连接资源 |
|
|
@@ -539,6 +541,8 @@ MCP 配置:
|
|
|
539
541
|
| `dbx_open_table` | 在 DBX 桌面端打开表 |
|
|
540
542
|
| `dbx_execute_and_show` | 执行查询并在 DBX 桌面端展示结果 |
|
|
541
543
|
|
|
544
|
+
`dbx_execute_query` 支持可选参数 `max_rows`(取值 1–1000,默认 100;越界值会被夹取到范围内,而不是报错)。该参数仅对 SQL 连接生效:MongoDB shell 命令始终最多返回 100 行,路由到批量执行器的多语句脚本每条语句最多返回 100 行。
|
|
545
|
+
|
|
542
546
|
启用 `mq-admin` 后,`dbx_peek_messages` 可在本地和 Web 模式下读取 Kafka Topic。参数为 `connection_id` 或 `connection_name`、`topic`、可选 `count`(1–100,默认 20)、`start_position`(默认 `latest`,也支持 `earliest`、`offset`)及可选的非负 `partition`。仅 offset 模式必须且允许指定非负 `offset`,未指定分区时该位点应用于所有分区。JSON 结果保留 base64 消息体和元数据,通过 `incomplete` 标记底层不完整读取,通过 `outputTruncated` 标记因 256 KiB 输出预算而省略整条消息。工具遵守连接和工具范围,允许只读与生产连接读取,不提交消费位点,不支持其他 MQ 类型或持续订阅。
|
|
543
547
|
|
|
544
548
|
`dbx_list_databases` 只返回该连接 MCP 数据库范围内允许访问的名称。`dbx_send_message` 仅在 Server 构建时包含消息队列支持时可用。
|
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.92",
|
|
4
4
|
"description": "MCP server for DBX — query databases from Claude Code, Cursor, and other AI agents",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai-agent",
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
],
|
|
29
29
|
"type": "module",
|
|
30
30
|
"optionalDependencies": {
|
|
31
|
-
"@dbx-app/mcp-darwin-arm64": "0.4.
|
|
32
|
-
"@dbx-app/mcp-darwin-x64": "0.4.
|
|
33
|
-
"@dbx-app/mcp-linux-arm64-gnu": "0.4.
|
|
34
|
-
"@dbx-app/mcp-linux-x64-gnu": "0.4.
|
|
35
|
-
"@dbx-app/mcp-win32-arm64": "0.4.
|
|
36
|
-
"@dbx-app/mcp-win32-x64": "0.4.
|
|
31
|
+
"@dbx-app/mcp-darwin-arm64": "0.4.92",
|
|
32
|
+
"@dbx-app/mcp-darwin-x64": "0.4.92",
|
|
33
|
+
"@dbx-app/mcp-linux-arm64-gnu": "0.4.92",
|
|
34
|
+
"@dbx-app/mcp-linux-x64-gnu": "0.4.92",
|
|
35
|
+
"@dbx-app/mcp-win32-arm64": "0.4.92",
|
|
36
|
+
"@dbx-app/mcp-win32-x64": "0.4.92"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@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.92",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "@dbx-app/mcp-server",
|
|
14
|
-
"version": "0.4.
|
|
14
|
+
"version": "0.4.92",
|
|
15
15
|
"transport": {
|
|
16
16
|
"type": "stdio"
|
|
17
17
|
}
|