Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By nuttarujv0.1.0MITIn 1 marketplace
Data-layer safety + truth verifier for AI agents — MCP server with 5 rolepod_db_* tools + 5 shipped skills (db-introspect, db-query, db-explain, db-migrate-verify, db-write). Works standalone OR with the `rolepod` parent plugin: when the marker file `<git-root>/.rolepod/parent-active` is present (written by the parent's SessionStart hook), evidence routes to `<git-root>/.rolepod/evidence/` with a `manifest.json` per Extension Protocol v1, so the parent's check-work skill can aggregate DB state as a first-class evidence type. Not a generic SQL client — the value is safe mutation (preview→confirm→commit/rollback), schema-drift detection, and DB state as PASS/FAIL evidence.
Claude loads one when your task matches it, or you run it by name.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
Data-layer safety + truth verifier for AI coding agents. An MCP server that gives a coding agent eyes + safe hands on a live database: prove a migration applied, assert DB state as verify-evidence, read query plans, detect schema drift (code vs DB), and mutate data behind a transaction-confirm guard.
It is not a generic SQL client. Running ad-hoc SELECTs belongs to psql or an off-the-shelf Postgres MCP. dblab's value is the things nothing else does safely: guarded mutation, schema-drift detection, and DB state as PASS/FAIL evidence.
dblab is the data-layer limb of the rolepod ecosystem, alongside rolepod-uiproof (web/mobile UI) and rolepod-wplab (WordPress). v1 is Postgres-only.
| Skill | Tool | Phase | What it does |
|---|---|---|---|
/db-introspect | rolepod_db_introspect | Plan / Debug | Schema, columns, types, indexes, FK graph, row-count estimates → normalized snapshot. Read-only. |
/db-query | rolepod_db_query | Verify | Run a read-only query (inside BEGIN TRANSACTION READ ONLY) and return a structured PASS/FAIL assertion — not raw rows. |
/db-explain | rolepod_db_explain | Perf / Review | EXPLAIN [ANALYZE] → parsed plan flagging sequential scans and probable missing indexes. |
/db-migrate-verify | rolepod_db_migrate_verify | Ship / Review | Diff SQLAlchemy models vs live schema → drift report (missing/extra column, nullability, type mismatch). |
/db-write | rolepod_db_write | Build | Guarded mutation: preview → confirm → commit/rollback. The only tool that writes. |
db-write never writes without an explicit confirm. It holds a transaction open across tool calls:
BEGIN, run the statement inside the transaction, return affected-row count + an optional before/after sample + a txn_id. Nothing is committed.COMMIT (needs the txn_id).ROLLBACK. An abandoned transaction auto-rolls-back after the idle timeout (default 5 min, ROLEPOD_DBLAB_TXN_IDLE_MS).Holding a transaction open across turns is why dblab is an MCP plugin and not a prompt-only skill — a skill cannot enforce the confirm gate.
dblab works in any MCP-capable CLI with just a connection string — no rolepod core required.
# Health check (Node, pg, python3 + SQLAlchemy for drift)
npx -y @rolepod/dblab doctor
# Smoke-test a connection
npx -y @rolepod/dblab test-connection "postgresql://user:pass@localhost:5432/mydb"
Register the MCP server (the repo ships per-CLI manifests):
.mcp.json → npx -y @rolepod/dblab.codex-plugin/plugin.json.cursor-plugin/plugin.jsongemini-extension.jsonpg is a hard dependency (every skill except drift needs it). python3 + SQLAlchemy are needed only for /db-migrate-verify; the other four skills work without them.
/db-migrate-verify)The dblab server is TypeScript and can't import Python objects in-process, so it shells out to a tiny Python sidecar (reflect_models.py) that reflects your SQLAlchemy Base.metadata → JSON; the TS server owns the diff. This is the direct analog of how rolepod-uiproof shells out to Appium for the mobile runtime it can't reach natively.
// /db-migrate-verify
{ "conn": "postgresql://…/db", "models_entrypoint": "app.models:Base", "project_dir": "/path/to/project" }
Fallback modes: native (reflect the models) → snapshot (snapshot_path to a pre-generated JSON) → unverifiable (clear reason, never a false PASS).
dblab deliberately does not duplicate the rest of the ecosystem:
| Capability | Owner |
|---|---|
| Safe mutation (txn preview → confirm), schema drift, DB state as PASS/FAIL | dblab ✅ |
WordPress DB via WP semantics (options, transients, wpdb) | rolepod-wplab |
| Browser / native-mobile UI runtime | rolepod-uiproof |
| Schema design decisions | the architect agent (dblab verifies, never designs) |
| DB provisioning / scaling / backup | a cloud MCP (Railway / Vercel) |
Routing seam: target is a WordPress site → wplab; any other database (SaaS backend Postgres, analytics DB) → dblab.
When the parent rolepod plugin is present (detected via the marker file <git-root>/.rolepod/parent-active), dblab routes evidence to <git-root>/.rolepod/evidence/ with a manifest.json per Extension Protocol v1. The composition is additive — dblab never blocks or caps anything; rolepod skills opt in:
npx claudepluginhub nuttaruj/rolepod-dblab --plugin rolepod-dblabBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground