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_infogating —MCPConfiggainsservice_username(the Django user MCP tool calls run as) andpublic_info(controls whetherGET /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 assemblingMCPConfigin code instead of hand-writing the Pydantic model. See MCP Configuration. mcp_installandmcp_doctorcommands documented —mcp_installwires an MCP client config (key resolution precedence, reachability probing) with no default target (you must choose one explicitly);mcp_doctorchecks for the four failure modes that otherwise fail invisibly. See MCP Commands.list_urlsMCP tool gets pagination —contains,limit, andoffsetparams plus atruncatedresponse 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_keyoverride system for the template body. Newsend_welcome_emailmanagement 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_keyoverride system is body-only and cannot touch the subject. See OTP. - Email content management —
EmailContent(admin-editable copy with aresolve()fallback chain andrender_copyplaceholder substitution),EmailLog(attempt-vs-delivery semantics,is_abandoned), and theemail_permanently_bouncedsignal are now documented, along withload_email_content --from-fixture(natural-keyupdate_or_create, distinct fromloaddata). See Content Management. - Plain-text email rendering fix — the plain-text fallback now runs
unescapeafterstrip_tags, fixing leaked HTML entities (&,', …) in plain-text emails, including hand-written.txttemplates. 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_editablecommand — new command (sibling tocheck_settings) that reports whether the installeddjango-cfgis the editable local checkout or the PyPI package, with a--strictflag and mismatch diagnostics. See Core Commands.
Updated Packages
| Package | Version | Changes |
|---|---|---|
django-cfg (PyPI) | 2.2.157 | MCP service accounts, MCPConfigBuilder, list_urls pagination, welcome email, OTP subject hardening, email content management + plain-text fix, monitor fingerprinting, check_editable |
@djangocfg/api | 2.1.536 | Aligned with backend auth/accounts changes |
@djangocfg/analytics | 2.1.536 | Aligned with backend changes |
@djangocfg/nextjs | 2.1.536 | Aligned with backend changes |
Upgrade
pip install -U django-cfg
python manage.py migrate # accounts/mailer migrationspnpm update @djangocfg/api @djangocfg/analytics @djangocfg/nextjsBreaking 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