{# The top of the MCP Server tab's Overview, under the on/off switch: the access tokens at a glance, or the "Get started" steps until the server is on and has a token. Included by llm-settings_mcp.html, and rendered on its own by the token routes after every ajax change, so it never goes stale (mcp-tokens.js swaps it in). Requires template context: mcp_enabled, mcp_tokens (see mcp_tokens_context()). #} {% if mcp_enabled and mcp_tokens %} {# The access tokens at a glance, each one opens the Access tokens sub-tab #}
{{ _('Access tokens') }} {% for token in mcp_tokens %} {% endfor %}
{% else %} {# Until it's set up: what to do, in order, each step done or with its button #}

{{ _('Get started') }}

  1. {{ _('Switch on the MCP server') }} {% if not mcp_enabled %}{{ _('Tick the box above, then Save.') }}{% endif %}
  2. {{ _('Add an access token') }} {{ _('Every assistant needs one to connect.') }} {% if not mcp_tokens %} {# Opens the Access tokens sub-tab and the add overlay in one click #} {% endif %}
  3. {{ _('Connect an assistant') }} {{ _('Copy the command or config for your assistant.') }}
{% endif %}