{% extends "base.html" %}

{% block title %}Settings - MCP Network Diagnostics{% endblock %}

{% block content %}
{% if api_key and api_key.role.value in ('operator', 'admin', 'superuser') %}
<div class="card">
    <div class="card-title">Operator workspace</div>
    <p style="color: #8b949e; margin-bottom: 16px;">Data and tools are scoped to this tenant.</p>
    <p><strong>Tenant:</strong> {{ api_key.tenant_id or api_key.key_id }}</p>
</div>
{% endif %}
<div class="card">
    <div class="card-title">API Keys</div>
    <p style="color: #8b949e; margin-bottom: 16px;">Manage API keys for MCP access</p>
    <p>{{ api_keys|length }} keys configured</p>
</div>

<div class="card">
    <div class="card-title">Notification Channels</div>
    <p style="color: #8b949e; margin-bottom: 16px;">Configure alert destinations</p>
    <p>{{ notification_channels|length }} channels configured</p>
</div>
{% endblock %}
