schemabrain init
The activation wizard. Pulls the seven stages of getting from “I have a Postgres URL” to “Claude Desktop sees the schemabrain MCP server” into one command. Each stage auto-skips when its work is already done, so re-runs are safe and cheap.
- Source check — validates the URL is reachable and the session is read-only on Postgres.
- Index schema — DDL introspection into the SQLite store.
- Curate entities — LLM-suggested domain entities (or dbt manifest if found).
- Curate metrics — LLM-suggested aggregations (or dbt metrics if found).
- Curate joins — FK +
pg_stat_statementsmining; deterministic, no LLM. - Wire host — writes the
schemabrainblock into the chosen MCP host’s config. - Next step — prints what to ask the agent first.
Source
Stages
Turn individual wizard stages on or off:Host
Cost
Behaviour
Examples
First-time setup for Claude Desktop
CI smoke (non-interactive, deterministic)
dbt-driven curation
Apple Silicon + Python 3.12+
Related
Setup walkthrough
Narrative for first-time users.
schemabrain index
The underlying indexer the wizard calls.
schemabrain doctor
Health-check what
init wired up.schemabrain apply
Re-apply the YAMLs
--emit-yaml-dir produced.