@dbx-app/mcp-server 0.4.84 → 0.4.86

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 CHANGED
@@ -157,12 +157,15 @@ Ask the MCP client to:
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 |
159
159
  | `dbx_execute_redis_command` | Execute a Redis command |
160
+ | `dbx_peek_messages` | Read Kafka messages without committing consumer offsets |
160
161
  | `dbx_send_message` | Send a message to a supported message queue topic |
161
162
  | `dbx_open_table` | Open a table in the running DBX desktop application |
162
163
  | `dbx_execute_and_show` | Execute a query and display the result in the DBX desktop application |
163
164
 
164
165
  When connection scoping is enabled, mutating connection tools and desktop UI tools are hidden.
165
166
 
167
+ `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
+
166
169
  `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.
167
170
 
168
171
  ## Execution Modes
@@ -531,10 +534,13 @@ MCP 配置:
531
534
  | `dbx_open_session` | 为 SQL 连接打开固定后端连接的有状态查询会话 |
532
535
  | `dbx_close_session` | 关闭会话并释放固定连接资源 |
533
536
  | `dbx_execute_redis_command` | 执行 Redis 命令 |
537
+ | `dbx_peek_messages` | 读取 Kafka 消息,不提交消费位点 |
534
538
  | `dbx_send_message` | 向支持的消息队列 Topic 发送消息 |
535
539
  | `dbx_open_table` | 在 DBX 桌面端打开表 |
536
540
  | `dbx_execute_and_show` | 执行查询并在 DBX 桌面端展示结果 |
537
541
 
542
+ 启用 `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
+
538
544
  `dbx_list_databases` 只返回该连接 MCP 数据库范围内允许访问的名称。`dbx_send_message` 仅在 Server 构建时包含消息队列支持时可用。
539
545
 
540
546
  ### 本地数据目录
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbx-app/mcp-server",
3
- "version": "0.4.84",
3
+ "version": "0.4.86",
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.84",
32
- "@dbx-app/mcp-darwin-x64": "0.4.84",
33
- "@dbx-app/mcp-linux-arm64-gnu": "0.4.84",
34
- "@dbx-app/mcp-linux-x64-gnu": "0.4.84",
35
- "@dbx-app/mcp-win32-arm64": "0.4.84",
36
- "@dbx-app/mcp-win32-x64": "0.4.84"
31
+ "@dbx-app/mcp-darwin-arm64": "0.4.86",
32
+ "@dbx-app/mcp-darwin-x64": "0.4.86",
33
+ "@dbx-app/mcp-linux-arm64-gnu": "0.4.86",
34
+ "@dbx-app/mcp-linux-x64-gnu": "0.4.86",
35
+ "@dbx-app/mcp-win32-arm64": "0.4.86",
36
+ "@dbx-app/mcp-win32-x64": "0.4.86"
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.84",
9
+ "version": "0.4.86",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "identifier": "@dbx-app/mcp-server",
14
- "version": "0.4.84",
14
+ "version": "0.4.86",
15
15
  "transport": {
16
16
  "type": "stdio"
17
17
  }