dsh-database: Connect to MySQL, Oracle, Redis, and Kafka in the DSH Conversation Sidebar

Preface

When building agents or doing operational troubleshooting, a common practice is to open a separate database client, Redis CLI, or Kafka console, then verbally provide the connection info and SQL in the DSH conversation. The context easily breaks, and AI cannot get structured results. DeepSeek Harness (DSH) supports extending the conversation UI via plugins; dsh-database connects MySQL, Oracle, Redis, and Kafka to the Database panel on the right side of the session, supporting object browsing, query execution, and sharing the query editor with AI. The repository notes that this plugin was written with AI involvement throughout, licensed under MIT, maintained by zhuoxiaoshuai, and categorized under admin-security in the community directory.

What Is This

dsh-database is a Web sidebar plugin for DSH: it connects the above four types of data sources on the right side of the conversation, enabling database/table/key/Topic browsing, SQL or command execution, result grid maintenance, and an AI Query collaboration entry for AI. MySQL and Oracle focus on schema browsing, batch SQL, execution plans, and SQL knowledge analysis; Redis provides DB/key browsing and a single-command console; Kafka provides Topic/consumer group, watermark and lag, bounded message preview, and publish/fix operations under SIT. All sources share query, AI Query, history, and knowledge base entries; the editor and results preserve per-source semantics.

Core Features

Below is a summary of the capabilities listed in the README, organized by data source.

Shared Capabilities

  • Right-side Database tab: My Connections manages addresses, credentials, and environment tags (SIT / UAT / PVT).
  • Regular query pages are separated from AI Query; typing in AI Query or clicking Take Over puts the document under human control, and clicking Return to AI allows the model to continue collaborating.
  • Permissions are differentiated by environment: for example, AI SQL on UAT/PVT is read-only, grid DDL is disabled outside SIT; Kafka write operations are disabled outside SIT. Humans can still execute authorized SQL/Redis write operations on UAT/PVT, requiring read-only accounts or ACLs. See the Permissions section of the repository for details.

MySQL / Oracle

Capability Description
Browsing MySQL: database → table → column; Oracle: objects organized by schema
Querying Object/query tabs, SQL batch processing, execution plans (Oracle uses EXPLAIN PLAN FOR)
Maintenance Grid editing (parameterized DML, preview confirmation); multi-step DDL approval (step count and time limits in README)
Drivers MySQL: mysql2, default port 3306; Oracle: oracledb Thin, default 1521, supports Service Name / SID

Redis

  • Requires Redis 7.2+; the tree structure is DB → keys, SCAN pagination may have empty pages or duplicates, and the UI indicates when the cursor has not finished.
  • Supports standalone, single Sentinel, or single Cluster seed; optional ACL, TLS, and custom CA.
  • The key browser and command console use different connections; the console executes one CLI-style command and then closes.

Kafka

  • Topic/consumer group, partitions, watermarks, lag, message preview, bounded search.
  • Under SIT, supports publish/fix operations with confirmation; read operations are allowed in each environment according to policy.

Installation and Activation

The plugin runs with the permissions of the current dsh process. Before installation, read the repository source code and the MIT license. Requires Node.js 24 or newer. The official release package does not include a path for direct installation from github: (the repository does not ship prebuilt lib/).

Web configuration installation (restart dsh web after installation):

dsh plugin --profile web add https://github.com/zhuoxiaoshuai/dsh-database/releases/download/v0.1.0-alpha.12.15/dsh-database.tgz

Desktop requires opening DSH Terminal from the tray (when dsh is not in PATH), use --profile desktop, which does not install alongside web configuration:

dsh plugin --profile desktop add https://github.com/zhuoxiaoshuai/dsh-database/releases/download/v0.1.0-alpha.12.15/dsh-database.tgz

Uninstall:

dsh plugin --profile web remove dsh-database

Do not manually copy cordis.patch.yml into the profile. If packaging from source, you can run npm ci --legacy-peer-deps and npm pack in the cloned directory, then install with dsh plugin --profile web add ./dsh-database-<version printed by npm pack>.tgz; the source package.json currently has version 0.1.0-alpha.12.18, which may differ from the release package version above—use the actual filename and acceptance instructions as the standard.

Typical Usage

After installation and restarting the corresponding profile, follow the README First use operations:

  1. Open Database on the right side of the conversation, click + next to My Connections, select the data source and fill in the address, credentials, and database/Service Name/DB or brokers, choosing SIT, UAT, or PVT.
  2. Optionally Test Connection, then Connect (only testing will not save the connection).
  3. Select the database/schema for SQL and perform a connectivity check on the query page:
    - MySQL: SELECT 1;
    - Oracle: SELECT 1 FROM DUAL;
    - Redis: PING
    - Kafka: TOPICS
  4. When AI collaboration is needed, open AI Query, explain the connection, objects, and task in the conversation (for example, asking the model to interpret the current SQL); confirm the target and environment permissions before execution.

MySQL large integer example (the README notes BIGINT is returned as a string):

SELECT 9007199254740993 AS id;

Redis console example:

PING

Use Cases and Notes

  • Suitable for: teams already using DSH Web/Desktop for development or troubleshooting, who want to query databases, modify grids, let AI read SQL or structured database/table information in the same conversation, and can distinguish SIT/UAT/PVT.
  • Environment: the plugin injects into the Web client sidebar (cordis.patch.yml); the community directory skillhub.cn plugin page is a community listing, with no official affiliation with DeepSeek / High-Flyer.
  • Security: passwords are kept in Host memory by default; on Windows, optionally Remember Password uses the current user’s DPAPI. Interrupted write operations may report unknown and will not automatically replay; reconnecting invalidates old requests. AI receives SQL results on SIT unmasked, while ordinary user query results are not automatically sent to the model.
  • Limitations excerpt: Oracle queries containing LOB columns will fail; Redis cluster mode host is a seed and DB must be 0; query results default to 100 rows, with a maximum of 500 rows or 1 MiB.

Conclusion

dsh-database brings relational databases, caches, and message queues into the DSH session sidebar and constrains AI and write operations with environment tags, suitable for an integrated “conversation + database/table/key/Topic” workflow. For further information, see the community directory page and the GitHub repository (including the Chinese README, SECURITY.md, and docs).

  • Directory page: https://www.skillhub.cn/plugins/zhuoxiaoshuai/dsh-database
  • GitHub: https://github.com/zhuoxiaoshuai/dsh-database
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye