dsh-db-connections
配置并命名只读或可写的数据库连接 适合需要在聊天中通过名称快速引用和查询 MySQL 数据库的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:lb290/dsh-db-connections说明文档
阅读完整 README ↗Route 2: edit the configuration file
Redefine the db-connections row in the profile's cordis.patch.yml. The loader replaces a row's whole config rather than deep-merging it, so restate every key:
- id: db-connections
name: "dsh-db-connections"
config:
connections:
- name: "128" # the name you and the model use in chat
host: 192.0.2.10
port: 3306 # optional, default 3306
user: root
password: "change-me" # or use passwordEnv, below
database: appdb # optional default schema
description: dev database # optional; shown in the prompt
allowWrite: false # optional, default false = read-only
Where the profile's cordis.patch.yml lives:
| Platform | Path |
|---|---|
| Windows | C:\Users\\.dsh\profiles\desktop\cordis.patch.yml |
| macOS / Linux | ~/.dsh/profiles/desktop/cordis.patch.yml |
Press Reload on the settings page, or restart the app, to apply a hand edit. A change made through the settings page needs neither.