Skip to content

v0.6.0

Choose a tag to compare

@AusafMo AusafMo released this 28 Nov 22:19
· 120 commits to 7cf71bb28081170f5911d5aa6bcc7474668e2f4f since this release

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.