{% extends "admin/_layout.html" %} {% from "_macros.html" import icon %} {% set section = "mcp" %} {% block title %}{{ t("New server") if is_new else server.name }} - {{ brand.name }}{% endblock %} {% block heading %}{{ t("New MCP server") if is_new else server.name }}{% endblock %} {% block admin_content %} {% if error %}
{{ icon("warning", "icon--sm") }} {{ error }}
{% endif %} {% if server.last_error %}
{{ icon("warning", "icon--sm") }} {{ t("Last contacted unsuccessfully: %(error)s", error=server.last_error) }}
{% endif %}

{{ t("The server") }}

{{ tm("Prefixed onto every tool name this server offers, so that two servers both exposing search do not collide.") }}

{{ t("The streamable-HTTP endpoint itself, the one that accepts a POST. A server that answers with a redirect to somewhere else will be refused.") }}

{{ tm("One Name: value per line.") }}

{{ t("Credential") }}

{% if server.secret_encrypted %} {{ tm("Currently %(masked)s. Leave the dots alone to keep it, or clear the field to remove it.", masked=masked) }} {% else %} {{ t("Encrypted at rest and never shown again.") }} {% endif %}

{% if tools %}

{{ t("Tools it offers") }}

{{ t("Discovered at the last refresh. Untick one to withhold it — a tool this server adds later is offered by default.") }}

{% for tool in tools %} {% endfor %}
{% elif not is_new %}

{{ t("Tools it offers") }}

{{ tm("Nothing discovered yet. Save, then press %(button)s on the list.", button=t("Test & refresh")) }}

{% endif %}

{{ t("Guidance") }}

{{ t("Added to the system message whenever any tool from this server is offered. One piece of guidance for the server, not one per tool — the tools carry their own descriptions.") }} {% if prompt_overridden %}
{{ tm("Someone has overridden this wording under Prompts — that is what the model sees, not this.") }} {% endif %}

{{ t("Availability") }}

{{ t("Tick the second only for a server on your own network. It is what stops this being aimed at %(brand)s itself, a router, or a metadata endpoint.", brand=brand.name) }}

{{ t("Groups with access") }} {% if groups %}
{% for group in groups %} {% endfor %}

{{ t("Ignored while the server is available to everyone.") }}

{% else %}

{{ tm("No groups yet — create one to restrict access.") }}

{% endif %}
{{ t("Back to all servers") }} {% if not is_new %} {% endif %}
{% endblock %}