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。
请在仓库或注册中心条目中声明许可证。