dsh-tool-sql
Read-only SQL query tools for DeepSeek Harness: PostgreSQL and MySQL
AI 分析
为 DSH 提供安全的数据库只读查询能力。适合需要让 Agent 辅助检索 PostgreSQL 或 MySQL 数据、分析表结构的场景,默认仅允许 SELECT 等只读语句。
インストール
検証済み bundle がないか、互換性チェックに失敗しています。先にリポジトリの説明を読んでください。 README 全文を読む ↗
ドキュメント
README 全文を読む ↗Configuration
Load the plugin in a dsh composition config (cordis.yml):
- name: 'dsh-tool-sql'
config:
type: 'postgres' # or 'mysql'
host: 'localhost'
port: 5432 # optional (postgres 5432, mysql 3306)
user: 'dbuser'
password: 'dbpass'
database: 'appdb'
maxRows: 100 # optional, max rows per query (default 100)
timeoutMs: 15000 # optional, query timeout in ms (default 15000)
ssl: false # optional, enable TLS
Full example: examples/cordis.yml.
Security: the plugin enforces read-only by default. Only
SELECT/EXPLAIN/SHOW/DESCRIBE/WITH/PRAGMA/VALUESstatements are allowed; write keywords (INSERT/UPDATE/DELETE/DDL...) are rejected. Credentials are read from plugin config only and are never printed or logged.