Repository navigation
Releases
cfgit 0.6.6
cfgit 0.6.6
The MCP tools are easier for agents and clients to read correctly. No tool was renamed or removed.
- Behaviour hints: every tool carries a title and MCP annotations, so a client can tell reads from writes before calling.
- 16 tools are read-only.
- 9 can overwrite or delete data: import from an export, commit, bulk commit, set, promote, rm, restore, branch delete and PR merge.
- Only impact narration and the update check reach outside your databases.
- Clearer descriptions: each tool says what it changes and whether it touches the live database. The write tools say when to use each one rather than the others, and every parameter has a format and an example.
- List tags:
cfg tag(andcfg_tag) with no name lists the existing tags and how many record versions carry each. With a name it works as before. - Find records:
cfg_statusnow says it lists every record with its state.
Upgrading: the [mcp] extra now needs mcp>=1.10. pip install -U 'cfgit[mcp]' and uvx handle it. pipx upgrade cfgit doesn't upgrade an injected mcp, so also run pipx inject cfgit 'mcp>=1.10,<2'. An older mcp still starts the server, just without the hints. See UPGRADING.md.
cfgit 0.6.5
cfgit 0.6.5
cfgit is now listed on the official MCP Registry as io.github.AusafMo/cfgit, so MCP clients that install from the registry can add it by name. It's also on Glama.
cfgitcommand: an alias ofcfg, so the package name works as a command.cfg mcp: runs the MCP server over stdio, likecfg-mcp. It honours--config-file, and prints the install hint when the[mcp]extra is missing. Registry clients launchuvx --with=cfgit[mcp,mongo,postgres] cfgit==0.6.5 mcp, withCFG_CONFIGset to your.cfg.toml.
Nothing to change when upgrading. Existing cfg-mcp setups keep working.
cfgit 0.6.4
Package metadata only: PyPI's Homepage link now goes to ausafmo.com/cfgit and the Documentation link to ausafmo.com/cfgit-docs.html. No code changes; nothing to do when upgrading.
cfgit 0.6.3
cfgit 0.6.3
cfg ui is redesigned. The API is unchanged, there's still no build step, and it works offline.
- It opens on an inbox: a card for each record changed outside cfgit, with Discard, Adopt and Review. You can review them one by one and step with j/k.
- Record view:
- "drift N of M" navigation.
- Actions that match the record's state.
- An "Edit on " entry point for drafts.
- No surprise LLM calls: narration only runs from its own labelled button. The old "Analyze impact" button called the LLM without saying so.
- Dialogs:
- Adopt, discard and restore preview their impact locally before you confirm.
- Merge always asks first and lists the records it will write.
- Esc and Enter work.
- Pull requests and branches: Pull requests are a list with a detail panel. Branches are one table.
- Look: light and dark themes that match the product page. Auto-refresh no longer redraws a screen that hasn't changed.
Nothing to change when upgrading. Try it with cfg demo --keep, then cfg ui with the config path it prints.
PR: #86.
v0.6.2
cfgit 0.6.2
Try cfgit in one command, with no database, Docker or config to set up first:
uvx --python 3.12 --from 'cfgit[demo]' cfg democfg demo starts a throwaway Postgres, seeds a few sample config records (two agent configs and a feature flag) and plays the core story with real commands:
- a tracked change;
- someone edits a record straight in the database;
- cfgit refuses the next write and explains the fix;
diff, thenadopt;restore --discard-driftthrows away an unreviewed flag flip;log, thenrestore @1.
It takes about 6 seconds.
- No Docker needed: Postgres comes embedded via the new
demoextra. Where that build is missing (Linux ARM, Python 3.13+), it uses apostgres:16-alpineDocker container instead. - Isolated: it runs in a temp directory, never touches your own
.cfg.tomlorCFG_*settings, and cleans up when it ends, including on Ctrl-C. - Options:
--stepwaits for Enter between steps;--fastdrops the pauses.--keepleaves the database running and prints the MCP server config, so you can hand it to an agent and watch the same refusal happen there.cfg demo --stopshuts it down.
The --python 3.12 pin is there because the embedded Postgres package ships builds up to Python 3.12. uv downloads that Python for you.
PR: #83.
v0.6.1
cfgit 0.6.1
Previews for the last branch operations, clearer terminal output, and Codex installs cfgit as a plugin.
Install it in your agent
Buttons for every client: https://ausafmo.com/cfgit#install
- Claude Code:
claude plugin install cfgit --marketplace AusafMo/cfgit. In VS Code, there's also a one-click install link on that page. - Codex:
codex plugin marketplace add AusafMo/cfgit, thencodex plugin add cfgit@cfgit. This installs the MCP server and the cfgit skill. - Cursor and Claude Desktop: buttons in the README. The Desktop bundle,
cfgit.mcpb, is attached below. - Plugin installs now copy only the plugin (its manifest and the skill), not the whole repository.
New
- Previews for every remaining branch operation:
cfg pr merge --dry-run,cfg --branch <b> commit --dry-run(single and bulk) andcfg branch delete --dry-run, plus the matchingdry_runoptions over MCP.cfg pr mergeexits non-zero when it refuses. - Write-concern warning:
cfg doctor --status,initandwhoamiwarn when MongoDB acknowledges writes from the primary alone (w:1). A failover could then roll back a write cfgit already reported as committed.
Changed
cfg impact --llmno longer defaults to OpenAI. Set[connections].ai_provider(claude, openai or gemini) or pass--provider. Without one, narration is refused with a message saying so, because it sends record data to that provider.- Readable terminal output: hint text wraps at 80 columns on word boundaries, commands never wrap, and user-facing text has no em dashes.
- Missing-driver errors say how to fix it with pip or uvx.
- PyPI: classifiers and keywords, so cfgit shows up in PyPI's browse filters. The suite now also runs on Python 3.12, 3.13 and 3.14.
Upgrade notes: docs/UPGRADING.md. PRs: #76, #77, #78, #79, #80. Closes #70 and #72.
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.
v0.5.1
cfgit 0.5.1
Improved
-
Slack notifications are now Block Kit cards. Each card shows:
- a header saying what happened ("planner promoted to prod", "3 records updated in prod");
- the author and commit message;
- fields for the record and seq, the changed field paths, and, for a promote,
dev → prod; - a footer with the time in each reader's timezone.
Bulk operations list up to 10 records. User text is escaped, so
<!channel>in a message won't ping anyone. Field values are never sent to Slack. -
Promote events include
from_envin the generic webhook payload too.
No behaviour changes beyond the Slack message format. Upgrade both packages together: pip install -U 'cfgit==0.5.1' 'cfgit-impact==0.5.1'. Upgrading from 0.4.x? See docs/UPGRADING.md.
v0.5.0
cfgit 0.5.0
New
cfg add/cfg rm: create records and delete them with a tombstone kept in history;cfg restore <record> @<seq>brings a deleted record back (#45).cfg promote --from dev --to prod: move a record, or every record with a tag, between envs through the target's own rules. Provenance is recorded andpromote_ignorepaths stay env-local (#47).- List edits in
cfg set:orgs+=x/orgs-=x, race-safe (#49). - Per-collection validation:
validate = { schema = ... }(JSON Schema, needscfgit[validate]) or{ python = "mod:fn" }. Runs on every write path;--no-validateis audited (#46). - History read contract:
cfg logentries carry field-levelchanges; new--since;last_changed_atin status; Python APIcfg.history()/cfg.heads()(docs/HISTORY_CONTRACT.md) (#48). - Notifications on writes (
[env.<name>.notify], webhook / Slack, field paths only by default), and code references incfg impactviacode_refs;cfg rmrefuses while code still reads the id (#50).
Fixed
- Datetimes, decimals, ObjectIds, binary and UUIDs keep their type through bulk commit,
cfg editand export → import. A write that would silently turn one into a string is refused (--allow-type-changeto override) (#51). - Secret scan: credential-looking names no longer block numeric, boolean, null or datetime values; strings and binary are still checked (#51).
- Ignored fields are never changed by a write. Previously a full-document commit, bulk, import, restore, promote or merge could overwrite or delete fields matched by
ignore_patterns/ignore_paths(Mongo), or any ignored field (Postgres), with nothing in the preview (#53). - Concurrent writes:
cfg set,cfg editandcfg promoterefuse withstale_baseinstead of overwriting a write that landed in between. MCPcfg_commitacceptsexpected_live_oidfor the same protection.
Upgrading from 0.4.x
No data migration: 0.5.0 reads everything 0.4.x wrote, and no command or flag was removed. These behaviour changes can surprise a script. Full guide: docs/UPGRADING.md.
- Upgrade both packages together:
pip install -U 'cfgit==0.5.0' 'cfgit-impact==0.5.0'. The 0.4.7 plugin pinscfgit<0.5. - Type changes are refused. A payload that would turn a live datetime, decimal, ObjectId, binary or UUID into a string (e.g. built with
json.dumps(..., default=str)) getsTypeChangeBlocked. Send Extended JSON ({"$date": ...}), or use--allow-type-changeif it's intended. - Old export files. 0.4.x exports (
version: 1, dates as strings) are refused by the same rule when imported over real datetimes. Re-export with 0.5, convert the dates, or use--allow-type-change. - New export files.
cfg exportnow writesversion: 2(Extended JSON). Don't import these with cfgit 0.4.x; it would store the{"$date": ...}wrappers literally. - Concurrent edits return
stale_base(exit 2).set,editandpromoterefuse instead of overwriting a write that landed in between. Rerun the same command. A refusedcfg editkeeps your edit in a temp file. - Ignored fields are never written. If something relied on a commit setting an ignored field (e.g.
updated_aton Postgres), that no longer happens. - Timestamps on Mongo in
log/status/cfg.historynow carry+00:00; previously they had no offset. - JSON output gains fields (
changes,last_changed_at, new states and summary counters). Existing fields are unchanged. - Rare: don't downgrade to 0.4.x after using
cfg rm(it doesn't understand tombstones). Custom storage adapters must honourApplyItem.delete_live.
Verification
- 279 tests, including live Mongo (replica set) and Postgres runs.
- A concurrent-writer race suite: 0 failures in 20 rounds at 16 writers.
- Two independent review passes, with all findings fixed.
v0.4.7
UI: auto-show impact on drift, LLM narration on demand.
Opening a drift record now auto-renders the deterministic System impact panel (risk, changed paths, affected records) computed locally — no LLM call. Narration is opt-in via a 'Narrate with LLM' button that sends the record's diff to the configured provider (the copy says so plainly), and the analyze/narrate buttons now show a spinner during the call.
Changes: #40 · Release bump: #41
Publishes cfgit and cfgit-impact 0.4.7 to PyPI.