viewer_deploy
Deploys a read-only catalogue viewer on a Docker host over SSH, provisioning MariaDB, credentials, and nightly dumps, then wiring MCP config after health checks.
Instructions
Deploys the catalogue viewer on a docker host over ssh: a read-only web page, its own MariaDB (database archive_catalog, users catalog read/write for this MCP and catalog_ro SELECT-only for the page, data dir on the host) and a nightly dump service. Generates random passwords and the viewer login into /secrets (mode 600), copies web/, runs docker compose up -d --build, waits for health, runs catalog_init against the new database and points the MCP config (catalogMysqlContainer, catalogDbCnf) at it when the docker host is the P5 host. Without confirm: only the plan. With confirm:true the result contains the generated viewer password ONCE.
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": {
"network": "<network>",
"catalogIp": "<catalogIp>",
"dbIp": "<dbIp>"
},
"name": "viewer_deploy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tz | No | Time zone of the containers (default UTC) | |
| dir | No | Install dir on the host (default /opt/catalog-viewer) | |
| dbIp | Yes | Free IPv4 on that network for the database (port 3306) | |
| host | No | Docker host (ssh target); default viewerHost or the P5 host | |
| confirm | No | Must be true to actually run; without it only the plan/commands are returned | |
| dataDir | No | Database data dir on the host (default <dir>/data/db) | |
| network | Yes | Existing external docker network name | |
| p5Index | No | P5 config/index/backup dir on the host (default derived from the config) | |
| subpath | No | Reverse-proxy sub-path, e.g. viewer (only adds an Apache example to the result) | |
| packRoot | No | Pack root on the host (default config packRoot) | |
| catalogIp | Yes | Free IPv4 on that network for the web page | |
| p5BaseUrl | No | Link target for 'P5 web UI' on the page | |
| viewerUser | No | Viewer login name (default viewer) |