cfg_adopt
Accept out-of-band live changes by recording current live docs as new versions for one record or all records; preview with dry-run before writing.
Instructions
Accept an out-of-band live change: record the current live doc as a new version (record or all_records). Inspect it first with cfg_diff(a="=HEAD", b="=live"). To throw the change away instead, use cfg_restore(record, ref="=HEAD", discard_drift=true).
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_adopt"
}
}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 | Record address as collection:id, e.g. agent_configs:refund_resolution. | |
| dry_run | No | Preview: each drifted record's change from =HEAD to =live (state would_adopt). Writes nothing. | |
| message | No | Why you are accepting this change (stored in history). | adopt drift |
| all_records | No | Adopt drift for every tracked record instead of a single one. | |
| 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. | |
| allow_secret | No | Allow committing values that match secret-deny rules (logged). Off by default. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||