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