# Local database deployment automation with local-ydb-toolkit

local database deployment automation for YDB is different from generic schema migration tooling: the agent often needs to create or repair the local database process before it can run schema work.

## Workflow

1. Run `local_ydb_check_prerequisites` to verify Docker and host helpers.
2. Run `local_ydb_status_report` and `local_ydb_healthcheck` to capture state.
3. Bootstrap either a root /local database or a tenant topology depending on the task.
4. Generate and validate schema DDL before applying it.
5. Execute mutating steps only after the user approves `confirm: true`.

## Agent guardrails

- Do not invent profile names, hosts, tenant paths, password files, or backup locations.
- Keep private paths and credentials inside the user's local MCP process or CI runner.
- Prefer read-only diagnostics before any bootstrap, auth, storage, or upgrade step.
