Repository navigation
Models and the server can now describe themselves to MCP clients, and custom field types from packages like django-markitup and django-polymorphic work end to end.
Added
mcp_descriptiondescribes a model's business role. Set it on aModelAdminand the text is prepended to every tool description for that model and returned asdescriptionbydescribe_<model>, themodels://schema resource andfind_models, so clients know what a model is for and the rules around it, not just its fields.MCP_INSTRUCTIONSsets the server instructions. Its value is returned asinstructionsin theinitializeresult, which MCP clients pass to the model as guidance for using the server. The field is omitted when the setting is unset or empty. (#134, thanks @iddqd1)
Fixed
get_*andlist_*serialize custom field values (such as django-markitup'sMarkup) through the field'svalue_to_string()instead of failing JSON serialization, and a partialupdate_*no longer overwrites an omitted custom-valued field with itsstr().describe_*names a wrappedon_delete(django-polymorphic'sPolymorphicGuard), andget_*withinclude_inlinesfinds inline rows whose foreign key points at a multi-table parent model. (#132, thanks @Iv)
Full changelog: https://7tg.github.io/django-admin-mcp/changelog/