Skip to content

Releases

cfgit 0.6.6

Choose a tag to compare

@AusafMo AusafMo released this 29 Nov 09:15
bafe835

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 (and cfg_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_status now 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.

PRs: #93, #94.

cfgit 0.6.5

Choose a tag to compare

@AusafMo AusafMo released this 29 Nov 08:45
1c5a029

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.

  • cfgit command: an alias of cfg, so the package name works as a command.
  • cfg mcp: runs the MCP server over stdio, like cfg-mcp. It honours --config-file, and prints the install hint when the [mcp] extra is missing. Registry clients launch uvx --with=cfgit[mcp,mongo,postgres] cfgit==0.6.5 mcp, with CFG_CONFIG set to your .cfg.toml.

Nothing to change when upgrading. Existing cfg-mcp setups keep working.

PRs: #91, #92.

cfgit 0.6.4

Choose a tag to compare

@AusafMo AusafMo released this 29 Nov 08:31
b510150

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.

PRs: #89, #90.

cfgit 0.6.3

Choose a tag to compare

@AusafMo AusafMo released this 29 Nov 07:31
a79ebae

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

Choose a tag to compare

@AusafMo AusafMo released this 28 Nov 23:33
304797e

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 demo

cfg 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:

  1. a tracked change;
  2. someone edits a record straight in the database;
  3. cfgit refuses the next write and explains the fix;
  4. diff, then adopt;
  5. restore --discard-drift throws away an unreviewed flag flip;
  6. log, then restore @1.

It takes about 6 seconds.

  • No Docker needed: Postgres comes embedded via the new demo extra. Where that build is missing (Linux ARM, Python 3.13+), it uses a postgres:16-alpine Docker container instead.
  • Isolated: it runs in a temp directory, never touches your own .cfg.toml or CFG_* settings, and cleans up when it ends, including on Ctrl-C.
  • Options:
    • --step waits for Enter between steps; --fast drops the pauses.
    • --keep leaves 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 --stop shuts 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

Choose a tag to compare

@AusafMo AusafMo released this 28 Nov 23:06
11de600

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, then codex 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) and cfg branch delete --dry-run, plus the matching dry_run options over MCP. cfg pr merge exits non-zero when it refuses.
  • Write-concern warning: cfg doctor --status, init and whoami warn 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 --llm no 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

Choose a tag to compare

@AusafMo AusafMo released this 28 Nov 22:19

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, the cfg rm reference check, code_refs scanning and --llm narration (Claude, OpenAI, Gemini) all work on a plain pip 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 impact prints a readable report: risk, the records that reference this one, file:line code hits, and any missing code_refs roots. 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_run passed to a tool that has none performed the real write.
  • cfg_import dry_run now works for a single record and all_records.
  • show returns Extended JSON, so show → edit → commit keeps every stored date, decimal and ObjectId type.
  • cfg_commit changes:
    • It refuses a document that would delete fields (fields_removed) unless allow_remove_fields is set.
    • It requires expected_live_oid and a message.
    • Commits fill in the id field, so a doc without its id no longer shows as drift.
  • Drift and restore:
    • restore --discard-drift throws away an out-of-band change and keeps the discarded doc in history.
    • A single-record restore --dry-run shows the field changes.
  • Safety refusals:
    • promote refuses a drifted source (source_drifted).
    • tag refuses to reuse an existing name unless --force.
    • A rm dry run reports blocked_by_references when 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.actions are MCP tool calls, and they name the right env (after a promote, the target).
  • Fixes from the review:
    • cfg_pr_merge refusals now say dirty instead of ok.
    • adopt --dry-run.
    • cfg_set accepts "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.mcpb below and open it.
  • Claude Code: /plugin install cfgit --marketplace AusafMo/cfgit installs 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

Choose a tag to compare

@AusafMo AusafMo released this 28 Nov 20:08

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_env in 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

Choose a tag to compare

@AusafMo AusafMo released this 28 Nov 18:39

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 and promote_ignore paths stay env-local (#47).
  • List edits in cfg set: orgs+=x / orgs-=x, race-safe (#49).
  • Per-collection validation: validate = { schema = ... } (JSON Schema, needs cfgit[validate]) or { python = "mod:fn" }. Runs on every write path; --no-validate is audited (#46).
  • History read contract: cfg log entries carry field-level changes; new --since; last_changed_at in status; Python API cfg.history() / cfg.heads() (docs/HISTORY_CONTRACT.md) (#48).
  • Notifications on writes ([env.<name>.notify], webhook / Slack, field paths only by default), and code references in cfg impact via code_refs; cfg rm refuses while code still reads the id (#50).

Fixed

  • Datetimes, decimals, ObjectIds, binary and UUIDs keep their type through bulk commit, cfg edit and export → import. A write that would silently turn one into a string is refused (--allow-type-change to 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 edit and cfg promote refuse with stale_base instead of overwriting a write that landed in between. MCP cfg_commit accepts expected_live_oid for 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 pins cfgit<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)) gets TypeChangeBlocked. Send Extended JSON ({"$date": ...}), or use --allow-type-change if 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 export now writes version: 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, edit and promote refuse instead of overwriting a write that landed in between. Rerun the same command. A refused cfg edit keeps your edit in a temp file.
  • Ignored fields are never written. If something relied on a commit setting an ignored field (e.g. updated_at on Postgres), that no longer happens.
  • Timestamps on Mongo in log / status / cfg.history now 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 honour ApplyItem.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

Choose a tag to compare

@AusafMo AusafMo released this 02 Aug 12:02

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.