Skip to Content

Release v2.2.157

Released: September 3, 2026

A rollup of the user-facing changes shipped across 2.2.120 → 2.2.157.

Highlights

  • MCP service accounts + public_info gating — MCPConfig gains service_username (the Django user MCP tool calls run as) and public_info (controls whether GET /cfg/mcp/info/ is reachable without authentication). See MCP Configuration.
  • Declarative MCP config via MCPConfigBuilder — a fluent builder (.expose(), .allow_command(), .enable_introspection(), .tool(), .set_access_key(), .add_target(), .set_llm_model(), .set_rate_limit(), .disable(), .build()) for assembling MCPConfig in code instead of hand-writing the Pydantic model. See MCP Configuration.
  • mcp_install and mcp_doctor commands documented — mcp_install wires an MCP client config (key resolution precedence, reachability probing) with no default target (you must choose one explicitly); mcp_doctor checks for the four failure modes that otherwise fail invisibly. See MCP Commands.
  • list_urls MCP tool gets pagination — contains, limit, and offset params plus a truncated response flag, so large route tables no longer silently overflow the response. See MCP Tools.
  • Welcome email — a new one-send-guaranteed (atomic UPDATE claim) welcome email fires on account creation, with locale resolution and a per-locale copy_key override system for the template body. New send_welcome_email management command for manual sends/previews. See Welcome Email and Testing & Monitoring Commands.
  • OTP subject-line hardening — the OTP code is no longer put in the email subject line (reverted in 2.2.137 after a prior change); the copy_key override system is body-only and cannot touch the subject. See OTP.
  • Email content management — EmailContent (admin-editable copy with a resolve() fallback chain and render_copy placeholder substitution), EmailLog (attempt-vs-delivery semantics, is_abandoned), and the email_permanently_bounced signal are now documented, along with load_email_content --from-fixture (natural-key update_or_create, distinct from loaddata). See Content Management.
  • Plain-text email rendering fix — the plain-text fallback now runs unescape after strip_tags, fixing leaked HTML entities (&, ', …) in plain-text emails, including hand-written .txt templates. See django-email.
  • Alert-batching fingerprint — django-monitor computes a 16-hex SHA-256 fingerprint per alert source to join related events; it’s omitted when blank, and browser/frontend-ingested events may lack one. See django-monitor.
  • check_editable command — new command (sibling to check_settings) that reports whether the installed django-cfg is the editable local checkout or the PyPI package, with a --strict flag and mismatch diagnostics. See Core Commands.

Updated Packages

PackageVersionChanges
django-cfg (PyPI)2.2.157MCP service accounts, MCPConfigBuilder, list_urls pagination, welcome email, OTP subject hardening, email content management + plain-text fix, monitor fingerprinting, check_editable
@djangocfg/api2.1.536Aligned with backend auth/accounts changes
@djangocfg/analytics2.1.536Aligned with backend changes
@djangocfg/nextjs2.1.536Aligned with backend changes

Upgrade

pip install -U django-cfg python manage.py migrate # accounts/mailer migrations
pnpm update @djangocfg/api @djangocfg/analytics @djangocfg/nextjs

Breaking Changes

None. MCP service accounts, public_info, the welcome email, and check_editable are additive; the OTP subject and plain-text rendering changes restore previously-documented behavior rather than introducing new API surface.

If you rely on the OTP code appearing in the email subject line, that behavior was removed — the code is body-only from 2.2.137 onward.

Full Changelog

See the GitHub release  for the complete list of changes.

Last updated on