catalog_migrate
Copies the backup catalogue from an existing MySQL/MariaDB source into the viewer's catalog-db, refusing non-empty targets unless forced and returning only a plan until confirmed.
Instructions
Copies the catalogue database archive_catalog from an existing MySQL/MariaDB (host[:port], read-only on the source) into the viewer's catalog-db: mariadb-dump --single-transaction | mariadb inside the catalog-db container, then compares row counts of sets, tars, entries before/after. Refuses when the target already holds rows unless force:true. Without confirm: only the plan. The password file is read on the machine running the MCP.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"from": "<from>",
"user": "<user>",
"passwordFile": "<passwordFile>"
},
"name": "catalog_migrate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | Source host[:port] | |
| user | Yes | ||
| force | No | ||
| confirm | No | Must be true to actually run; without it only the plan/commands are returned | |
| sourceTls | No | verify (default); skip-verify = encrypted but certificate not checked (MySQL 8 self-signed cert); off = no TLS | |
| passwordFile | Yes | File with the source user's password (on this machine) |