{# The MCP None / Read / Write grid, shared by the access token overlay (settings/llm/templates/llm-settings_mcp.html) and the OAuth consent screen (blueprint/mcp/oauth/templates/mcp-oauth-consent.html). #} {# The None / Read / Write grid, one row per perm_ field of forms.MCPTokenForm #} {% macro permissions_grid(form) -%} {% set rows = [ (form.perm_monitors, _('Read: list, changes, diffs and snapshots. Write: add, change, recheck, tag and delete.')), (form.perm_tags, _('Read: list. Write: create, rename and delete.')), (form.perm_notifications, _('Read: list them (secrets hidden) and look up services. Write: add, remove and mute.')), (form.perm_system, _('Health, the check queue and what is being checked right now.')), ] %} {% for field, description in rows %} {% for option in field %} {% endfor %} {% if field.choices|length < 3 %}{% endif %} {% endfor %}
{{ _('None') }} {{ _('Read') }} {{ _('Write') }}
{{ field.label.text }}{{ description }}
{%- endmacro %}