{% extends "base.html" %} {% block title %}{{ p.v.server.name }}{% endblock %} {% block content %} {% set s = p.v.server %}

{{ s.name|visible(true) }} {{ "frozen: changed, not re-approved" if s.status == "changed_not_reapproved" else s.status }}

{% if decided %}

{{ "Approved" if decided == APPROVED else "Rejected" }} as {{ approver|visible(true) }}: version {{ p.newest_hash[:12] }}. {% if decided == APPROVED %}Apps may use this version now.{% else %}It stays blocked until a version is approved.{% endif %}

{% endif %} {% if error %}{% endif %}
{% if p.v.approved %}
Approved
{{ p.v.approved.listing_hash[:12] }} {% if p.approval %}by {{ p.approval.decided_by|visible(true) }}, {{ p.approval.decided_at|when }}{% endif %} {% if p.v.approved.reported_version %}· says version {{ p.v.approved.reported_version|visible(true) }}{% endif %}
{% endif %} {% if not p.v.approved or p.v.shown.id != p.v.approved.id %}
Shown
{{ p.v.shown.listing_hash[:12] }}, seen {{ p.v.shown.collected_at|when }} {% if p.v.shown.reported_version %}· says version {{ p.v.shown.reported_version|visible(true) }}{% endif %}
{% endif %} {% if p.v.since_approval|length > 1 %}
Seen since approval
{% for snap in p.v.since_approval %}{{ snap.listing_hash[:12] }}{% if not loop.last %}, {% endif %}{% endfor %}
{% endif %}
{% if not p.is_newest %}

This is not the newest version. Approve and reject always apply to the newest one: review it.

{% endif %} {% if not p.diff %} {% if p.v.approved and p.v.shown.id != p.v.approved.id %}

The version shown is identical to the approved one, but the server served other versions in between (listed above). Open one to see what it served.

{% else %}

No unreviewed changes.

{% endif %} {% if p.first_flags %}

The approved version itself raises red flags

It was pinned with nothing to compare against, so check it was safe.

{% with flags = p.first_flags %}{% include "_flags.html" %}{% endwith %}
{% endif %} {% else %} {% if p.explanation %}{% set e = p.explanation %}

Alert priority {{ e.priority }}

{% for id in e.owasp %}OWASP {{ id }} {{ p.owasp_names[id] }}{% if not loop.last %} · {% endif %}{% else %}No OWASP MCP Top 10 risk{% endfor %}

{{ e.summary|visible }}

{% if e.status == "template" %}Fixed template, no AI summary{% if e.note %}: {{ e.note|visible(true) }}{% endif %}. {% else %}Summary by {{ e.written_by|visible(true) }}{% if e.status == "reused" %} (saved){% endif %}. It may repeat the server's own words.{% endif %}

{% endif %} {% if p.diff.flags %}

Red flags

{% with flags = p.diff.flags %}{% include "_flags.html" %}{% endwith %}
{% endif %}

Changes

{% for t in p.tools %}

{{ t.change.name|visible(true) }}

{% with rows = t.rows %}{% include "_side_by_side.html" %}{% endwith %}
{% endfor %} {% if p.instructions %}

Server instructions

{% with rows = p.instructions %}{% include "_side_by_side.html" %}{% endwith %}
{% endif %} {% if p.reviews %}

AI review

{% for r in p.reviews %}

{{ r.item.subject|visible(true) }} {% if r.verdict %} {{ r.verdict.label|visible(true) }} confidence {{ r.verdict.confidence|visible(true) }} · {{ r.priority }} · {{ r.provider|visible(true) }}/{{ r.model|visible(true) }} {% else %} not reviewed {% endif %}

{% if r.verdict and r.verdict.quote %}
{{ r.verdict.quote|visible }}
{% endif %} {% if r.verdict %}

{{ r.verdict.reason|visible }}

{% endif %} {% if r.disagrees %}

The reviewer said cosmetic, but the rules found a high red flag: kept at high priority.

{% endif %}
{% endfor %}

The AI review only helps you decide. It never approves anything.

{% endif %} {% endif %} {% if p.is_newest %}{% set d = p.current %}

Decide

{% if d and not changing %} {# Already decided: show the decision, not a button for the opposite one. Changing it takes the "change" link first, so it's never one stray click away. #}

Version {{ p.v.shown.listing_hash[:12] }} was {{ "approved" if d.decision == APPROVED else "rejected" }} by {{ d.decided_by|visible(true) }}, {{ d.decided_at|when }}.

{% if d.note %}

Note: {{ d.note|visible }}

{% endif %}
{% if d.decision == APPROVED %}Approved{% else %}Rejected{% endif %} change
{% else %}

This decision applies to version {{ p.v.shown.listing_hash[:12] }} exactly. If the server changes again before you click, it's refused and you're shown the new version.

{% if not d or d.decision != APPROVED %}{% endif %} {% if not d or d.decision == APPROVED %}{% endif %} {% if d %}cancel{% endif %}
{% endif %}
{% endif %} {% endblock %}