cfg_export
Exports live configuration records as a portable, re-importable snapshot for one record or all collections, enabling later restoration.
Instructions
Read-only snapshot of live documents into a portable, re-importable artifact. Pass a record for one, or omit it to export every configured collection. Each item is stamped with its cfgit head seq/oid. Feed the result back to cfg_import(from_export=...) to restore.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cfg_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Environment name from .cfg.toml (e.g. dev, prod). Selects the target database. | dev |
| author | No | Author attribution hint. Ignored/rejected in authenticated/enforced identity modes where a verified identity is required. | |
| record | No | Optional collection:id to export one record; omit to export every configured collection. | |
| config_file | No | Omit: the server uses the .cfg.toml it started with. A different path is refused unless the server runs with CFGIT_MCP_ALLOW_CONFIG_OVERRIDE=1. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||