cfg_show
Retrieve config record document at chosen ref as Extended JSON with types preserved for editing and committing back without type changes. Use the returned oid as expected_live_oid for =live commits.
Instructions
A record's document at a ref, as Extended JSON ({"$date": ...}, {"$numberDecimal": ...},
{"$oid": ...}) so it can be edited and sent back to cfg_commit unchanged in type. oid is
that version's hash: pass it as cfg_commit's expected_live_oid when ref is =live.
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": {
"record": "<record>"
},
"name": "cfg_show"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Environment name from .cfg.toml (e.g. dev, prod). Selects the target database. | dev |
| ref | No | Which version: =HEAD (last recorded), =live (what the database has now), @<seq>, tag:<name>, or an oid prefix. | =HEAD |
| author | No | Author attribution hint. Ignored/rejected in authenticated/enforced identity modes where a verified identity is required. | |
| record | Yes | Record address as collection:id, e.g. agent_configs:refund_resolution. | |
| 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 | |||