cfg_bulk_commit
Commit multiple full documents as one batch with a shared message, and use dry-run previews to check deltas before writing.
Instructions
Commit multiple full documents as one batch intent.
`items` may be either:
[{"record":"collection:id","doc":{...}}, ...]
{"collection:id": {...}, ...}, or a JSON string in either shape.
Set dry_run=true to preview every record's delta (would_commit / noop / changed_outside_cfgit)
without writing; recommended before a collection-scale replace.
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": {
"items": "<items>",
"message": "<message>"
},
"name": "cfg_bulk_commit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Environment name from .cfg.toml (e.g. dev, prod). Selects the target database. | dev |
| items | Yes | Records to commit as one batch: a list of {record, doc}, a {collection:id: doc} map, or a JSON string of either. Each doc is a FULL document. | |
| author | No | Author attribution hint. Ignored/rejected in authenticated/enforced identity modes where a verified identity is required. | |
| branch | No | Commit to this branch instead of main. | |
| dry_run | No | Preview the change and return the would-be result without writing anything. | |
| message | Yes | Why you are making this change (stored in history). | |
| 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, e.g. an ISO string (logged). Off by default; send dates as {"$date": ...} instead. | |
| allow_remove_fields | No | Allow docs to delete top-level fields live has. Off by default: any partial doc refuses the whole batch with state fields_removed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||