cfg_promote
Copy a config record version or every tagged record from one environment to another through the target's commit path, preserving target-specific fields and recording provenance; preview with dry_run.
Instructions
Copy a record's version (or every record with a tag) from one env to another through the target's normal commit/add path. promote_ignore, ignored and secret fields keep the target's values; the target history records where the version came from. Preview with dry_run first.
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_env": "<from_env>",
"to_env": "<to_env>",
"message": "<message>"
},
"name": "cfg_promote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Source version: =live (default; refused with source_drifted if the source was changed outside cfgit), =HEAD, @<seq>, tag:<name>, or an oid prefix. | =live |
| tag | No | Promote every record carrying this tag in the source env (preflighted batch). | |
| 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. Omit when promoting a tag. | |
| to_env | Yes | Target environment to write to, e.g. prod. Its identity, permissions and validation apply. | |
| dry_run | No | Return the field-level diff against the target and the impact, without writing. | |
| message | Yes | Why you are promoting (stored in the target's history). | |
| from_env | Yes | Source environment to copy from, e.g. dev. | |
| 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. | |
| no_validate | No | Skip the collection validator for an emergency write (recorded in history). Off by default. | |
| allow_secret | No | Allow committing values that match secret-deny rules (logged). Off by default. | |
| allow_type_change | No | Allow replacing a live datetime/decimal/ObjectId with a different type (logged). Off by default. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||