Local YDB MCP

v0.19.1
io.github.astandrik/local-ydb-mcp Checked 6 hours ago Published 19 days ago

Operate local-ydb deployments through local or SSH-backed MCP tools.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

local_ydb_inventory

Read-only Docker inventory for a local-ydb target profile. Success returns ok=true, Docker CLI/daemon state, containers, volumes, and inspect data for configured containers that actually exist; Docker CLI, daemon, or inventory failures return ok=false with a reason and omit inventory arrays so failure cannot be mistaken for an empty host. SSH target or probe failures use docker-inventory-failed with conservative Docker availability flags.

ParameterTypeDescription
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.

local_ydb_database_status

Read-only YDB admin database status for the configured tenant path. Returns the command, stdout, stderr, and ok flag; use this for tenant state before bootstrap/restart troubleshooting, and use local_ydb_tenant_check for scheme reachability.

ParameterTypeDescription
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.

local_ydb_healthcheck

Read-only YDB monitoring healthcheck for the configured tenant or root database. Uses the official YDB CLI SelfCheck path, returns selfCheckResult, issue counts, issue types, capped raw output, and whether the database is healthy; a requested noCache/noMerge option rejected with the exact recognized two-line legacy parser signature is reported through optionResolution and warnings, while compatibilityFallback says whether a retry actually started. Use after local_ydb_status_report for database-level diagnostics.

ParameterTypeDescription
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
databasePathstringYDB database path to check. Defaults to the configured tenant path; only the configured tenant path or root database path are accepted.
maxIssuesintegerMaximum number of issue_log entries returned in the issues field. Counts still cover the full response. Defaults to 100.
maxOutputBytesintegerMaximum UTF-8 bytes returned per raw stdout/stderr stream. Defaults to 65536.
noCachebooleanRequest cache-bypass semantics for this healthcheck. Newer YDB CLIs receive --no-cache. A rejection matching the exact recognized two-line legacy parser signature is recorded in optionResolution and w…
noMergebooleanRequest unmerged healthcheck issue entries. Newer YDB CLIs receive --no-merge. A rejection matching the exact recognized two-line legacy parser signature is recorded in optionResolution and warnings;…
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.
timeoutMsintegerServer-side YDB healthcheck timeout in milliseconds. Defaults to 120000.

local_ydb_container_logs

Read recent Docker logs from the configured static or primary dynamic local-ydb container. Use when bootstrap, restart, or readiness checks fail; target selects the container role and lines controls the tail length.

ParameterTypeDescription
target *stringContainer role to read logs from: static node or primary dynamic tenant node.
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
linesintegerNumber of recent log lines to read. Defaults to 200.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.

local_ydb_status_report

Read-only aggregate report for quick diagnosis. Runs local_ydb_inventory, local_ydb_auth_check, local_ydb_tenant_check, local_ydb_nodes_check, and local_ydb_healthcheck, returning each result; every component is isolated so an unexpected failure produces a safe component-shaped fallback and does not stop the remaining checks.

ParameterTypeDescription
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.

local_ydb_tenant_check

Read-only check that uses the YDB CLI to verify the configured tenant path is reachable. Use after bootstrap or restore to confirm tenant metadata before node or GraphShard checks.

ParameterTypeDescription
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.

local_ydb_scheme

Read-only YDB scheme list or describe with capped stdout/stderr. It uses the root database for rootDatabase paths and the tenant database otherwise; list supports recursive/long/onePerLine flags, describe supports stats, and incompatible flag combinations are rejected.

ParameterTypeDescription
actionstringScheme operation to run. Defaults to list.
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
longbooleanFor action=list, pass -l for detailed object attributes.
maxOutputBytesintegerMaximum UTF-8 bytes returned per stdout/stderr stream. Defaults to 65536.
onePerLinebooleanFor action=list, pass -1 to print one object per line.
pathstringScheme path to inspect. Defaults to the configured tenant root.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.
recursivebooleanFor action=list, pass -R to recursively list subdirectories.
statsbooleanFor action=describe, pass --stats.

local_ydb_generate_schema

Read-only structured YDB table DDL generator. It renders strict JSON specs for CREATE TABLE, ALTER TABLE, DROP TABLE, and secondary indexes, returns the generated script with official references and warnings, and can optionally validate through the YDB JS SDK without applying changes.

local_ydb_apply_schema

Validate or apply YDB table DDL through the official YDB JS SDK. It accepts raw YQL DDL for PRAGMA plus CREATE TABLE, ALTER TABLE, and DROP TABLE; action=apply validates first and executes only with confirm=true.

ParameterTypeDescription
script *stringYQL DDL script to validate or apply. Supports PRAGMA plus CREATE TABLE, ALTER TABLE, and DROP TABLE statements.
actionstringSchema operation to run. validate only checks the YQL DDL through the YDB SDK; apply validates first and executes only with confirm=true.
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
confirmbooleanMust be true to execute action=apply after SDK validation succeeds. Omit or false for validation plus plan-only output.
databasePathstringYDB database path for SDK validation/application. Defaults to the configured tenant root; root database paths use the static gRPC port.
maxOutputBytesintegerMaximum UTF-8 bytes returned per validation/execution issue stream. Defaults to 65536.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.
timeoutMsintegerSDK operation timeout in milliseconds. Defaults to 120000.

local_ydb_sql

Run managed YQL v1 against the configured local-ydb target through Query Service. query uses SnapshotRO, explain returns plan/AST, and execute always runs EXPLAIN first and sends one NoTx execution only with confirm=true.

ParameterTypeDescription
script *stringWell-formed-Unicode YQL v1 script; lone UTF-16 surrogates are rejected. Parameter DECLARE statements are generated from parameters and prepended before execution.
actionstringManaged YQL action. query uses SnapshotRO, explain returns plan/AST without execution, and execute always EXPLAIN-preflights before optional confirmed NoTx execution.
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
confirmbooleanConsidered only for action=execute. Must be true to send one NoTx execution after successful EXPLAIN; query remains SnapshotRO even when true.
databasePathstringConfigured tenant or root database path. Defaults to the selected profile tenant path; root paths use the static gRPC port.
maxOutputBytesintegerShared retained-output budget for issues, plan/AST, columns, and rows.
maxRowsintegerMaximum retained rows per result set. The first limit hit stops all further result capture: read-only execution is cancelled, while confirmed NoTx execution drains without capturing later output.
parametersobjectTyped YQL parameters keyed by bare name. The request is limited to 100 parameters, 1,000 descriptor nodes, 10,000 value nodes, and 1 MiB of serialized parameter data. Struct field names must be well-f…
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.
timeoutMsintegerSingle deadline in milliseconds shared by connection, session, preflight, execution, and cancellation.

local_ydb_permissions

Inspect or change YDB scheme permissions for a path. The default list action is read-only; grant, revoke, set, clear, chown, and inheritance changes return a plan unless confirm=true.

ParameterTypeDescription
actionstringPermissions operation to run. Defaults to list, which is read-only and does not require confirm.
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
confirmbooleanMust be true to execute mutating actions. Omit or false for plan-only output. Not required for action=list.
maxOutputBytesintegerFor action=list, maximum UTF-8 bytes returned per stdout/stderr stream. Defaults to 65536.
ownerstringNew owner for action=chown.
pathstringScheme path to manage. Defaults to the configured tenant root.
permissionsarrayPermission names for grant, revoke, and set actions. Each item is passed as its own -p argument.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.
subjectstringUser or group subject for grant, revoke, and set actions.

local_ydb_nodes_check

Read-only check of dynamic node registration through viewer/json nodelist. Use after starting, adding, or removing dynamic nodes; use local_ydb_tenant_check first when tenant reachability is unknown.

ParameterTypeDescription
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.

local_ydb_graphshard_check

Read-only GraphShard check through viewer/json capabilities and tabletinfo for the configured tenant. Returns graphShardExists, tablet ids, and viewer status details; use after tenant bootstrap when GraphShard support or tablet visibility is the specific question.

ParameterTypeDescription
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.

local_ydb_auth_check

Read-only auth audit that checks anonymous viewer whoami status and configured YDB CLI tenant access, using root credentials when rootPasswordFile is configured. Use after auth hardening or password rotation to verify the expected posture.

ParameterTypeDescription
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.

local_ydb_storage_placement

Read-only storage inspection that returns ReadStoragePool output and BSC physical placement. Use before adding or reducing storage groups to confirm the exact pool shape.

ParameterTypeDescription
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.

local_ydb_add_storage_groups

Increase NumGroups for one tenant storage pool using the current ReadStoragePool definition. Without confirm=true this returns the DefineStoragePool plan, rollback, target pool, and target count; when the update succeeds it verifies NumGroups and tenant metadata.

ParameterTypeDescription
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
confirmbooleanMust be true to execute planned commands. Omit or false for plan-only output.
countintegerNumber of storage groups to add. Defaults to 1.
poolNamestringExplicit storage pool name. Defaults to <tenantPath>:<storagePoolKind>.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.

local_ydb_reduce_storage_groups

Reduce NumGroups for a tenant storage pool by dumping the tenant, rebuilding the profile stack with a smaller storagePoolCount, restoring the dump, and reapplying auth when needed. Before dump or destroy, it inspects every one-off dynamic node and preserves its exact gRPC, monitoring, and IC ports; an incomplete definition aborts the rebuild.

ParameterTypeDescription
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
confirmbooleanMust be true to execute planned commands. Omit or false for plan-only output.
countintegerNumber of storage groups to remove from the current tenant pool. Defaults to 1.
dumpNamestringOptional dump directory name under profile.dumpHostPath to preserve before rebuild.
poolNamestringExplicit storage pool name. Defaults to <tenantPath>:<storagePoolKind>.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.

local_ydb_storage_leftovers

Read-only search for candidate leftover local-ydb Docker volumes, dumps, and PDisk/data paths. It scans Docker volume names plus profile.storageSearchPaths and deletes nothing; use before local_ydb_cleanup_storage to decide exact paths or volumes to remove.

ParameterTypeDescription
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.

local_ydb_list_versions

List published GHCR or Docker Hub tags for a local-ydb container image, with numeric version tags sorted newest first. Use before local_ydb_upgrade_version; registry pagination and authentication are restricted to trusted origins, and pageSize and maxPages bound pagination.

ParameterTypeDescription
imagestringGHCR or Docker Hub container image name to inspect. Defaults to ghcr.io/ydb-platform/local-ydb.
maxPagesintegerMaximum number of registry pages to fetch before truncating the result. Defaults to 10.
pageSizeintegerRequested tags per registry page. Defaults to 100.

local_ydb_pull_image

Plan or start a background Docker pull for a local-ydb image on the selected target. Without confirm=true it returns inspect and pull commands only; with confirm=true it returns a jobId for local_ydb_pull_status unless the image is already present.

ParameterTypeDescription
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
confirmbooleanMust be true to start the background Docker pull. Omit or false for plan-only output.
imagestringContainer image to pull. Defaults to the selected profile image.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.

local_ydb_pull_status

Check the status of a background Docker image pull started by local_ydb_pull_image. For known jobs it returns a monotonic progressPercent based on completed known Docker layers rather than bytes: 0-99 while running, 100 after successful completion, and the last observed value after failure.

ParameterTypeDescription
jobId *stringBackground pull job id returned by local_ydb_pull_image.

local_ydb_destroy_stack

Remove tenant metadata, local-ydb containers, network, and storage for a profile, with optional host-path cleanup.

ParameterTypeDescription
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
confirmbooleanMust be true to execute planned commands. Omit or false for plan-only output.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.
removeAuthArtifactsbooleanDelete explicit authConfigPath, dynamicNodeAuthTokenFile, and rootPasswordFile when configured. Defaults to false.
removeBindMountPathbooleanDelete profile.bindMountPath when the profile uses a bind mount. Defaults to false.
removeDumpHostPathbooleanDelete profile.dumpHostPath. Defaults to false because it may be shared.

local_ydb_bootstrap_root_database

Bootstrap a plain local YDB database at /local with only a static node. Use for generic local database requests that do not need a CMS tenant, GraphShard, or dynamic nodes; an existing running or stopped static container is reused only when its image, network, data mount, complete port bindings, required environment, restart policy, and disabled healthcheck match the profile. Without confirm=true this returns the plan without executing it.

ParameterTypeDescription
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
confirmbooleanMust be true to execute planned commands. Omit or false for plan-only output.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.

local_ydb_bootstrap

Bootstrap a tenant topology: static node with GraphShard flags and loopback bindings for static plus every configured dynamic gRPC port, configured CMS tenant, and all dynamic nodes declared by profile.dynamicNodeCount. Before returning or executing a plan, configured container names must be distinct from the static container and all shared-network ports must be valid and unique. Nodes start in index order; before the next node starts, readiness requires the exact Docker container to be running, not restarting, stable by container ID and RestartCount across two checks, and registered by its IC…

ParameterTypeDescription
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
confirmbooleanMust be true to execute planned commands. Omit or false for plan-only output.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.

local_ydb_check_prerequisites

Check target-host prerequisites for the Docker CLI and daemon, curl, ruby, and the configured rootPasswordFile when present. An unreachable SSH target returns unavailable=[target] without claiming tools are missing or proposing installation. Without confirm=true it returns the current snapshot and any apt-get plan; confirm=true may install only supported curl/ruby packages, then returns a refreshed post-install snapshot, and never starts or installs Docker.

ParameterTypeDescription
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
confirmbooleanMust be true to execute planned commands. Omit or false for plan-only output.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.

local_ydb_create_tenant

Create the configured CMS tenant when the static node is already running. Use before local_ydb_start_dynamic_node for tenant topologies; without confirm=true this returns the planned status/create command and creates nothing.

ParameterTypeDescription
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
confirmbooleanMust be true to execute planned commands. Omit or false for plan-only output.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.

local_ydb_start_dynamic_node

Start the configured primary dynamic tenant node for an existing CMS tenant. Before returning or executing a plan, it rejects a primary name that aliases the static container and ports that collide in the shared network namespace, including static IC port 19001. After checking that the image is present, it runs the full check-only static compatibility preflight, including the current image ID, immediately before the dynamic container start; a mismatch fails closed and requires destroy followed by bootstrap. The dynamic container is created but not started until its resolved image ID matches th…

ParameterTypeDescription
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
confirmbooleanMust be true to execute planned commands. Omit or false for plan-only output.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.

local_ydb_add_dynamic_nodes

Add one-off dynamic tenant nodes beyond the declarative profile.dynamicNodeCount topology, one at a time. By default the first suffix is dynamicNodeCount + 1; an explicit startIndex must be greater than dynamicNodeCount, and port overrides remain available. Every planned name must be distinct from the static container and all configured plus one-off ports must be valid and unique in the shared network namespace. After each image-presence check, it repeats the full check-only static compatibility preflight, including the current image ID, immediately before each node start; a mismatch stops tha…

ParameterTypeDescription
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
confirmbooleanMust be true to execute planned commands. Omit or false for plan-only output.
countintegerNumber of additional dynamic nodes to add. Defaults to 1.
grpcPortStartintegergRPC port for the first added node. Defaults to profile.dynamicGrpc + startIndex - 1.
icPortStartintegerInterconnect port for the first added node. Defaults to profile.dynamicIc + startIndex - 1.
monitoringPortStartintegerMonitoring port for the first added node. Defaults to profile.dynamicMonitoring + startIndex - 1.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.
startIndexintegerSuffix for the first added container. It must be greater than profile.dynamicNodeCount. Defaults to profile.dynamicNodeCount + 1, producing <dynamicContainer>-<dynamicNodeCount + 1>.

local_ydb_remove_dynamic_nodes

Remove dynamic tenant suffix nodes one at a time and verify nodelist disappearance when the node IC port can be resolved. Without containers, nodeIds, or startIndex, only one-off suffixes above profile.dynamicNodeCount are eligible and the highest suffix is removed first. Explicit selectors or startIndex may remove a configured suffix and create drift that bootstrap or restart restores. Rollback guidance uses bootstrap/restart for configured nodes and add_dynamic_nodes with matching suffixes and ports for one-off nodes. The primary dynamicContainer is always protected.

ParameterTypeDescription
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
confirmbooleanMust be true to execute planned commands. Omit or false for plan-only output.
containersarrayExplicit suffix dynamic-node container names to remove. Configured suffixes can be selected and become runtime drift; the profile's primary dynamicContainer remains protected.
countintegerNumber of dynamic nodes to remove when containers and nodeIds are omitted. Defaults to 1.
nodeIdsarrayExplicit YDB dynamic-node IDs to remove. IDs may resolve to configured or one-off suffix containers; the profile's primary dynamicContainer is not removable through this option.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.
startIndexintegerMinimum suffix to consider removable. Without explicit containers or nodeIds, defaults to profile.dynamicNodeCount + 1 so configured suffixes are excluded. Explicit selectors default to 2. An explicit…

local_ydb_restart_stack

Reconcile and restart the selected profile after inventory and a full check-only static compatibility preflight. Before stopping any container, require the existing static container to match the profile image, network, data mount, environment, restart policy, healthcheck, and exact loopback bindings for static gRPC, monitoring, and every configured dynamic gRPC port; configured binding changes require destroy followed by bootstrap. Then report missing configured and unexpected one-off dynamic containers, stop running dynamic containers before static, unconditionally recreate every configured n…

ParameterTypeDescription
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
confirmbooleanMust be true to execute planned commands. Omit or false for plan-only output.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.

local_ydb_upgrade_version

Upgrade a file-backed, volume-backed local-ydb profile to a target image tag. Use only for version upgrades on profiles without bindMountPath; before dump or destroy it inspects every one-off dynamic node and preserves its exact gRPC, monitoring, and IC ports, aborting on an incomplete definition. It then preflights source and target images, dumps, rebuilds, restores, reapplies auth when configured, recreates extra nodes, and performs final image verification. A verified mismatch leaves the profile unchanged; if final inventory is unavailable after successful rebuild phases, the response keeps…

ParameterTypeDescription
version *stringTarget image tag returned by local_ydb_list_versions.
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
confirmbooleanMust be true to execute the version upgrade plan. Omit or false for plan-only output.
dumpNamestringOptional dump directory name under profile.dumpHostPath for the upgrade backup.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.

local_ydb_list_dumps

Read-only list of available tenant dumps under profile.dumpHostPath. Use before restore to choose a dumpName; it only reports top-level dump directories that contain the existing tenant dump folder.

ParameterTypeDescription
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.

local_ydb_dump_tenant

Dump the configured tenant or a tenant-relative path using a local-ydb helper container on the static container network. It creates profile.dumpHostPath/dumpName, excludes .sys objects, writes the dump under dumpName/tenant, and without confirm=true returns the mkdir/helper-container plan only.

ParameterTypeDescription
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
confirmbooleanMust be true to dump the tenant. Omit or false for plan-only output.
dumpNamestringOptional dump directory name under profile.dumpHostPath.
pathstringRelative YDB object or directory path to dump inside the configured tenant. Defaults to . for tenant-wide dump semantics.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.

local_ydb_restore_tenant

Restore the configured tenant or destination path from a dump under profile.dumpHostPath, with optional post-restore scheme describe and bounded count-query verification. Use after bootstrap or rebuild when the target tenant is ready; without confirm=true this returns the restore plan and does not write data.

ParameterTypeDescription
dumpName *stringDump directory name under profile.dumpHostPath.
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
confirmbooleanMust be true to restore the tenant from the selected dump. Omit or false for plan-only output.
countQueriesarrayOptional bounded whole-table SELECT COUNT(*) or COUNT(1) queries to verify restored data after the restore command.
describePathsarrayOptional tenant-relative paths to verify with scheme describe after the restore command.
pathstringDestination directory path for YDB tools restore -p, relative to the configured tenant. Defaults to . for tenant root.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.

local_ydb_prepare_auth_config

Generate a hardened YDB config from the current static-node config. Use before local_ydb_write_dynamic_auth_config and local_ydb_apply_auth_hardening; without confirm=true this returns the planned write only.

ParameterTypeDescription
configHostPathstringHost path for the generated hardened config. Defaults to profile.authConfigPath when present.
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
confirmbooleanMust be true to write the hardened config file. Omit or false for plan-only output.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.
sidstringSID to place into viewer, monitoring, administration, and register_dynamic_node_allowed_sids. Defaults to profile.dynamicNodeAuthSid or root@builtin.

local_ydb_write_dynamic_auth_config

Write the text-proto dynamic-node auth token file needed for mandatory-auth startup. Use after choosing the SID for auth hardening; without confirm=true this returns the planned file write only.

ParameterTypeDescription
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
confirmbooleanMust be true to write the dynamic-node auth token file. Omit or false for plan-only output.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.
sidstringSID to store in both StaffApiUserToken and NodeRegistrationToken.
tokenHostPathstringHost path for the generated text-proto auth token file. Defaults to profile.dynamicNodeAuthTokenFile when present.

local_ydb_apply_auth_hardening

Apply a reviewed hardened YDB config file only after a full check-only static profile and configured-binding compatibility preflight succeeds before any config or container mutation; immutable mismatches require destroy followed by bootstrap. It then restarts the static node and recreates and verifies every configured dynamic node in index order even when no dynamic-node token file is configured. Exact-container running stability and IC registration must both pass before metadata verification, and rollback uses restart or bootstrap reconciliation after restoring the static config. Use only aft…

ParameterTypeDescription
configHostPathstringReviewed config.yaml path on the selected target host. Defaults to profile.authConfigPath when present.
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
confirmbooleanMust be true to apply the auth hardening config and restart local-ydb. Omit or false for plan-only output.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.

local_ydb_set_root_password

Rotate the runtime root password with ALTER USER and sync the host auth config and root password file to match. YDB may reject passwords that violate auth_config.password_complexity; this tool requires a non-empty password value.

ParameterTypeDescription
password *stringNew non-empty root password without carriage returns or newlines to apply to the runtime root user and then persist into the host auth config and root password file. YDB defaults to no password comple…
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
confirmbooleanMust be true to rotate and persist the root password. Omit or false for plan-only output.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.

local_ydb_cleanup_storage

Delete only the explicitly supplied local-ydb host paths or Docker volumes. Use after inspecting local_ydb_storage_leftovers; without confirm=true this returns the cleanup plan and removes nothing.

ParameterTypeDescription
configPathstringAbsolute path to an explicit local-ydb config file. Missing, unreadable, oversized, or invalid explicit files fail closed instead of using defaults.
confirmbooleanMust be true to remove the explicitly supplied storage paths or Docker volumes. Omit or false for plan-only output.
pathsarrayExplicit host filesystem paths to remove. Nothing is deleted unless each path is supplied here and confirm=true.
profilestringNamed profile from local-ydb.config.json. Defaults to config.defaultProfile.
volumesarrayExplicit Docker volume names to remove. Nothing is deleted unless each volume is supplied here and confirm=true.