DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Local Dba — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
L

dsh-local-dba

Local Dba

DeepSeek Harness 的本地 DBA 工具:支持 MySQL/MariaDB 和 PostgreSQL 的查询、架构检查、DDL/DML、备份/恢复及慢查询分析

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:kichare/dsh-local-dba#88286547c4528c4cc88b0d5466269015b21cd49a
README兼容性版本

兼容性与来源证明

Local Dba 以 dsh-local-dba 发布,当前版本为 0.1.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/9/11

版本

0.1.0stable
2026/9/11

相关插件

正在加载相关插件…

最新版
0.1.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/9/11
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 developer-tools 分类下经过校验的插件。

Web App@deepseek-ai/dsh-web-appdsh 浏览器界面捆绑包:位于 dsh-base 之上的 Web 补丁层,加上运行时粘合插件(提供前端 dist、Web 界面提示符、bash 运行时变量和 URL 行)Sdk Minimal@deepseek-ai/dsh-sdk-minimal独立的最小 SDK 配置包:JSON-RPC、一个 DeepSeek 适配器、持久化 Shell 和 JSONL 会话Sdk App@deepseek-ai/dsh-sdk-appdsh SDK 配置包:基于 dsh-base 提供 stdio JSON-RPC 服务和进程生命周期管理Subagent Codex@deepseek-ai/dsh-subagent-codex基于官方 app-server 协议的一次性 Codex 子代理提供程序

README

dsh-local-dba

English | 中文

A local database-administration (DBA) plugin for DeepSeek Harness. It ships as a Cordis plugin bundle that registers a set of db_* model-facing tools, letting the agent query, inspect schema, run DDL/DML, back up/restore and analyze slow queries against MySQL / MariaDB and PostgreSQL.

Repository: https://github.com/kichare/dsh-local-dba

Features

  • 8 db_* tools — query, schema, health, backup, restore and slow-query analysis in one bundle.
  • Configured inside the Harness UI — the plugin ships a settings card, so connections are added/removed and the default connection is picked right in the page. Saving applies immediately; no files to edit.
  • Mainstream SQL databases — MySQL / MariaDB and PostgreSQL.
  • Safe and read-only by default — the write and backup/restore switches are off by default; passwords can come from an environment variable (passwordEnv); db_query is read-only enforced.
  • No build step — plain JavaScript (ESM); install and go.

Tools

* marks a required argument.

ToolPurposeArguments
db_connectionsList configured connections (no passwords)—
db_queryRead-only SQL (SELECT / SHOW / DESCRIBE / EXPLAIN / WITH)sql*, connection, limit
db_executeWrite SQL (DDL / DML)sql*, connection
db_schemaStructure: tables / columns / indexes / foreign keysconnection, action, table, schema
db_healthVersion, current database, per-database sizesconnection
db_backupLogical backup via mysqldump / pg_dumpconnection, database, output
db_restoreRestore a .sql dump via mysql / psqlconnection, file*, database
db_slow_queriesActive connections / process list / slow queriesconnection, limit

db_schema's action is one of tables (default), columns, indexes, foreign_keys; the last three require table.

Requirements

  • DeepSeek Harness (dsh) with the Web UI.
  • Node.js 24 and pnpm (used by dsh plugin to install plugins).
  • Runtime drivers mysql2 and pg — installed automatically with this plugin.
  • Backup / restore additionally needs the native clients mysqldump / mysql and pg_dump / psql. When missing, db_backup / db_restore report a clear error; query-only tools do not depend on them.

Install

Install with dsh plugin

git clone https://github.com/kichare/dsh-local-dba.git
dsh plugin --profile web add ./dsh-local-dba

Restart the profile to load the new bundle:

# example: the web profile
lsof -ti tcp:3080 | xargs kill   # stop the old process (adjust the port)
dsh web

This command forwards to pnpm through dsh plugin. If it reports pnpm not found, install pnpm first (corepack enable pnpm or npm i -g pnpm) and make sure it is on PATH.

Configuration

Everything is configured in the Harness UI:

Settings → Plugins → Plugin configuration → "本地 DBA 连接" (the card)

Add or remove database connections and pick the default connection in the card; saving applies immediately (hot reload) — no file editing and no restart.

Currently supported SQL types: MySQL / MariaDB and PostgreSQL.

Usage examples

No need to memorize tool names — just say what you want:

# health check
check the database health
list the databases and their sizes

# schema
list all tables in mydb
what columns and indexes does the users table have?

# queries
show the latest 20 rows of mydb.orders
count orders per user, top 10 descending

# changes (these really mutate the database)
add a unique index on users.email
update orders set status='pending' where status='tmp'

# backup / restore
back up mydb into the backups directory
restore mydb from backups/mydb-2026-xx-xx.sql

# diagnostics
show the current slow queries

With several connections configured, name one: "query local-pg for ...".

Security notes

  • Prefer passwordEnv so the password lives in an environment variable rather than in the configuration. db_backup / db_restore pass credentials to the client processes via MYSQL_PWD / PGPASSWORD, so they never appear in the process argument list.
  • Write-permission switches (important; off by default): the card's "全局选项" section has allowWrite and allowBackupRestore, and both default to off — read-only first, safe right after install.
    • Once allowWrite is on, the agent can run CREATE / ALTER / DROP / INSERT / UPDATE / DELETE — these really and irreversibly modify data; any damage from a mistaken change is the operator's responsibility.
    • Once allowBackupRestore is on, db_restore writes into the target database and overwrites same-named objects (it can wipe production data), while db_backup dumps a whole database to disk — mind disk usage and data leakage.
    • Turn them on only when genuinely needed, and preferably only in an isolated local or test profile; leave them off for production / important databases.
  • db_query is read-only enforced: only statements starting with SELECT / SHOW / DESCRIBE / EXPLAIN / WITH are accepted; writes are rejected with a pointer to db_execute.
  • Add an explicit LIMIT for large tables; maxRows only caps the returned rows, it does not limit how much the SQL scans.

Troubleshooting

SymptomCause / fix
pnpm not foundInstall pnpm (corepack enable pnpm or npm i -g pnpm) and put it on PATH
ECONNREFUSED / cannot connectWrong host or port; verify the server is listening and the port is right (non-default ports especially)
no database selectedSet the connection's default database in the card, or write db.table in the SQL
db_schema lists no tablesSame: the connection has no default database
connection "x" not foundThe connection argument does not match a connection alias in the card
db_execute says writes are disabledWrite permission is off by default; tick "允许写操作" in the card's "全局选项" and save
db_backup / db_restore say they are disabledSame: tick "允许备份 / 恢复" and save
No dba card in the UIThe plugin is not loaded / not restarted; check Plugin list for dsh-local-dba running
Backup reports command not foundmysqldump / pg_dump is missing on this machine
only_full_group_by-style errorsRaw database errors surfaced as-is; fix the SQL

Layout

dsh-local-dba/
├── package.json        # dual-face: dsh.bundle.patch → cordis.patch.yml; dsh.client → lib/client.js
├── cordis.patch.yml    # the row that registers this plugin
├── lib/
│   ├── index.js        # Host half: the 8 db_* tools + the settings namespace
│   ├── db.js           # database and native-CLI helpers
│   ├── client.js       # browser half: the settings card
│   └── index.d.ts      # type declarations
├── README.md
├── README.zh.md
└── LICENSE

Development notes

  • No build step: lib/*.js is the runtime code (ESM).
  • @deepseek-ai/cordis and @deepseek-ai/dsh-tools are peerDependencies (so the plugin reuses the host's single tool registry); @deepseek-ai/schemastery, mysql2 and pg are regular dependencies.
  • Changing the Host half (lib/index.js / lib/db.js) or the browser half (lib/client.js) requires a profile restart. Configuration changes made in the card hot-reload.

Contact

  • Email: 5235278@qq.com
  • Issues: https://github.com/kichare/dsh-local-dba/issues

Questions, bug reports and feature requests are all welcome.

License

MIT