Repository navigation
v0.6.0
cfgit 0.6.0
Impact analysis is built in, the MCP server is much safer for agents, and every write outcome is now confirmed.
Upgrading from 0.5 with cfgit-impact installed: run pip uninstall -y cfgit-impact && pip install -U cfgit. For pipx, run pipx uninject cfgit cfgit-impact, then pipx upgrade cfgit. cfgit-impact 0.6.0 is now only a deprecation shim. Details are in docs/UPGRADING.md.
Impact is part of cfgit
cfg impact, thecfg rmreference check,code_refsscanning and--llmnarration (Claude, OpenAI, Gemini) all work on a plainpip install cfgit, with no extra dependencies. Providers use the standard library, and their code loads only when you ask for narration.- In a terminal,
cfg impactprints a readable report: risk, the records that reference this one,file:linecode hits, and any missingcode_refsroots. The web UI's impact panel lists the code references.
Built for agents (MCP)
A fresh agent drove the MCP server cold, and every place it was misled is fixed:
- Unknown arguments are rejected instead of silently dropped. Before, a
dry_runpassed to a tool that has none performed the real write. cfg_importdry_runnow works for a single record andall_records.showreturns Extended JSON, so show → edit → commit keeps every stored date, decimal and ObjectId type.cfg_commitchanges:- It refuses a document that would delete fields (
fields_removed) unlessallow_remove_fieldsis set. - It requires
expected_live_oidand amessage. - Commits fill in the id field, so a doc without its id no longer shows as drift.
- It refuses a document that would delete fields (
- Drift and restore:
restore --discard-driftthrows away an out-of-band change and keeps the discarded doc in history.- A single-record
restore --dry-runshows the field changes.
- Safety refusals:
promoterefuses a drifted source (source_drifted).tagrefuses to reuse an existing name unless--force.- A
rmdry run reportsblocked_by_referenceswhen something still points at the record.
+=/-=with a list value apply per element.- Refusals carry a machine-readable
state. - Commit and set dry runs include the records and code that reference the record.
- The server sends instructions on connect, and tool descriptions match behaviour.
- Impact before you write:
cfg_impact(doc_json=...)/cfg impact --from proposed.json. - The server is pinned to its startup
.cfg.toml, so one tool argument can't redirect writes to another database. - Remedies are ready to run:
next.actionsare MCP tool calls, and they name the right env (after a promote, the target). - Fixes from the review:
cfg_pr_mergerefusals now saydirtyinstead ofok.adopt --dry-run.cfg_setaccepts"k=v"strings.- Writes that store a date as plain text come back with a warning.
Write outcomes you can trust
committed always meant the database acknowledged the transaction. Now the one gap is closed too: when the acknowledgement is lost, cfgit reads its own history row back. It then reports committed, the original error (safe to retry), or commit_unknown with the seq to check. cfg tag now confirms it matched a row.
Install it in your agent
- Cursor: use the "Add to Cursor" button in the README.
- Claude Desktop: download
cfgit.mcpbbelow and open it. - Claude Code:
/plugin install cfgit --marketplace AusafMo/cfgitinstalls the MCP server and the cfgit skill. - Codex:
codex mcp add cfgit -- uvx --from 'cfgit[mcp,mongo,postgres]' cfg-mcp - Any stdio MCP client:
uvx --from 'cfgit[mcp,mongo,postgres]' cfg-mcp
Upgrade notes
Some MCP tool schemas changed, show output now uses Extended JSON, and the rm dry-run state changed. docs/UPGRADING.md lists every change.
In a terminal, results now read as text (agent_configs:planner: committed @2 …), not raw JSON; --json is unchanged.
The README is now a short front page, and the long-form guide is in docs/GUIDE.md.
PRs: #66, #67, #68, #74. Closes #69, #71, #73; partly addresses #70, #72.