概览
dsh-mysql
源码级技术说明DeepSeek Harness MySQL 连接插件:在设置页配置多套 MySQL 连接(每连接可配表白名单、行写与结构变更权限),输入栏一键切换当前会话的数据库连接,为所有 Agent 预设全局提供 mysql_query / mysql_tables / mysql_execute / mysql_ddl 工具。MySQL connector for DeepSeek Harness: configure multiple connections in settings (per-connection table allowlist, row-write and schema-change permissions), switch the active connection from the composer, and expose mysql_query / mysql_tables / mysql_execute / mysql_ddl tools globally to every agent preset.收起技术说明
DeepSeek Harness MySQL 连接插件:在设置页配置多套 MySQL 连接(每连接可配表白名单、行写与结构变更权限),输入栏一键切换当前会话的数据库连接,为所有 Agent 预设全局提供 mysql_query / mysql_tables / mysql_execute / mysql_ddl 工具。MySQL connector for DeepSeek Harness: configure multiple connections in settings (per-connection table allowlist, row-write and schema-change permissions), switch the active connection from the composer, and expose mysql_query / mysql_tables / mysql_execute / mysql_ddl tools globally to every agent preset.
README / ZH
插件文档
目录摘要
DeepSeek Harness MySQL 连接插件:在设置页配置多套 MySQL 连接(每连接可配表白名单、行写与结构变更权限),输入栏一键切换当前会话的数据库连接,为所有 Agent 预设全局提供 mysql_query / mysql_tables / mysql_execute / mysql_ddl 工具。MySQL connector for DeepSeek Harness: configure multiple connections in settings (per-connection table allowlist, row-write and schema-change permissions), switch the active connection from the composer, and expose mysql_query / mysql_tables / mysql_execute / mysql_ddl tools globally to every agent preset.
dsh.pub 核对固定版本的组合包契约、运行时事实与分发语义;完整 README 请查看源仓库。
在 GitHub 阅读完整 READMELIMITATIONS
已知限制
- 每个会话独立选择零个、一个或多个数据源;更改不会影响其他会话。空选择会禁用该会话的数据库工具;选择状态为运行时内存状态,DSH 重启后重新初始化。 - 每次工具调用仅针对一个数据源;多选时必须指定 `connectionId`,不会向多个数据库广播或合并结果。 - `mysql_tables` 使用连接的 `DATABASE()` 值,只发现默认数据库中的表;未配置默认库时列表可能为空,也不会自动浏览其他数据库。 - 表白名单是轻量级实现,只检查常见的表引用位置,不解析 MySQL 的全部语法形式。 - 2000 行限制作用于数据库结果已经获取之后的 JSON 返回内容。 - `mysql_execute` 仍仅处理行写入,不提供事务管理或二次确认。`mysql_ddl` 也没有逐次确认;它通过按连接授权、表白名单和默认库边界约束。请使用权限范围足够窄的数据库账号。 - 连接配置面向 TCP 连接,界面没有 SSL/TLS、Unix socket / 命名管道或字符集选择项。
