fufengyuan/dsh-stool-plugin0

dsh-stool-plugin

DSH 运维工具箱插件:集成 stool 全部能力(服务器管理/数据库/日志/CI-CD/Git/MFA/笔记/待办),9 个合并工具,附设置页面

包名
dsh-stool-plugin
版本
1.0.0
许可证
MIT
最近更新
2026年8月25日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:fufengyuan/dsh-stool-plugin

dsh-stool-plugin

DSH 运维工具箱插件。将 stool 运维 CLI 的全部能力注册为 DSH 模型可调用的工具,无需手动操作即可让 Agent 自动执行服务器管理、日志搜索、数据库查询、CI/CD 部署等操作。

安装

dsh plugin --profile web add github:fufengyuan/dsh-stool-plugin

然后重启 dsh web:

```bash
launchctl kickstart -k gui/501/com.duormi.dsh-web

提供的工具

工具操作说明
stool_serverlist / exec / health / diagnose / read / ls / java-ps服务器管理
stool_dblist / query / redis数据库管理
stool_loglist / search / tail日志搜索与查看
stool_cicdlist / deploy / historyCI/CD 部署管理
stool_mfalist / code双因子认证码
stool_gitstatus / log / branches / pull / pushGit 仓库操作
stool_notelist / add / search笔记管理
stool_todolist / add / complete / stats待办任务
stool_miscaccounting / weekly / audit / project / nginx其他工具

目录结构

dsh-stool-plugin/
├── package.json          # 包配置
├── cordis.patch.yml      # Cordis 插件注册行
├── .gitignore
├── README.md
├── lib/
│   ├── index.js          # Host 端:9 个工具注册
│   └── client.js         # Client 端:设置页面 UI
└── node_modules/
    └── @deepseek-ai/
        └── dsh-tools     # peerDependency 符号链接

依赖

  • @deepseek-ai/cordis ^4.0.1(peer)
  • @deepseek-ai/dsh-tools ^0.1.0-rc.6(peer)
  • stool CLI(需在宿主机上安装,stool 命令在 PATH 中)

从源码构建

cd ~/.dsh/plugin-src/dsh-stool-plugin
npm install                 # 安装 peerDependencies
# 或
ln -sf /path/to/dsh-tools  node_modules/@deepseek-ai/dsh-tools

License

MIT