dsh-db-connections
Named database connections for DeepSeek Harness: configure MySQL in a settings page, then refer to them by name in chat (for example "query 128"). Read-only by default, with writes opt-in per connection. 适合需要在聊天中通过名称快速引用和查询 MySQL 数据库的用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:lb290/dsh-db-connectionsREADME
Read the full 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.