list_connections
List database connections with the layer each comes from: project (.dbmole.json, found by walking up from the project dir) or global (user store). Also shows invalid entries and broken files. Secrets are omitted.
無需輸入參數。

io.github.ed-smartass由 GitHub 帳號 ed-smartass 發布v0.2.0更新於 Oct 26, 2026
PostgreSQL and MySQL with connections managed at runtime by the agent, SSH tunnels, readonly.
本機 MCP 伺服器,讓助理管理 PostgreSQL 與 MySQL 連線並執行 SQL,支援選用的 SSH 通道與唯讀旗標。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
參照 儲存庫 中的啟動說明。
該儲存庫沒有 README。
List database connections with the layer each comes from: project (.dbmole.json, found by walking up from the project dir) or global (user store). Also shows invalid entries and broken files. Secrets are omitted.
無需輸入參數。
Add a named postgres/mysql connection. scope "global" (default) saves it to the user store; "project" saves it to .dbmole.json in the project root. Supports an optional ssh tunnel and a readonly flag. Optional ssl: true or { rejectUnauthorized, ca } (ca = PEM or file path).
sshsslhost必填name必填porttype必填user必填scopedatabasepasswordreadonlyqueryTimeoutMsPatch a connection by name in the layer it lives in (project or global). Set a field to null to remove it (e.g. "ssh": null); an ssh object is merged field by field, e.g. { "ssh": { "hostKey": "SHA256:..." } }. queryTimeoutMs sets the per-statement timeout (null restores the 60 s default). ssl is replaced as a whole, not merged like ssh.
name必填patch必填Remove a connection by name from the layer it lives in (invalid entries too) and drop its cached pools/tunnel.
name必填Verify a connection works end to end (including ssh tunnel if configured). Reports server version and connect+query latency.
name必填Execute a single SQL statement on a named connection. SELECT returns columns/rows; DML returns rowCount (and lastInsertId for mysql). Use positional params: $1.. for postgres, ? for mysql.
sql必填paramsdatabaserowLimitconnection必填List databases on a connection with size in bytes. Hides postgres template databases and mysql system schemas.
connection必填List tables and views (type: table | view) with approximate row counts. For postgres, optionally filter by schema; for mysql, schema is the database.
schemadatabaseconnection必填Describe a table or view: columns (type, nullable, default), primary key, indexes and foreign keys.
table必填schemadatabaseconnection必填已滿足適用檢查項的 65%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
請宣告包含 README 的 GitHub 儲存庫,或在 OAuth 受保護資源後設資料中提供 resource_documentation。
請在儲存庫或註冊中心條目中宣告授權條款。