{% extends "dashboard/base.html" %} {% block title %}{% if lang == 'fa' %}کلیدهای API{% else %}API Keys{% endif %} - MCP Hub{% endblock %} {% block page_title %}{% if lang == 'fa' %}کلیدهای API{% else %}API Keys{% endif %}{% endblock %} {% block content %}
{% if lang == 'fa' %}مدیریت کلیدهای API (Admin){% else %}Manage project API keys (admin){% endif %}
| {% if lang == 'fa' %}شناسه{% else %}Key ID{% endif %} | {% if lang == 'fa' %}پروژه{% else %}Project{% endif %} | {% if lang == 'fa' %}دسترسی{% else %}Scope{% endif %} | {% if lang == 'fa' %}توضیحات{% else %}Description{% endif %} | {% if lang == 'fa' %}وضعیت{% else %}Status{% endif %} | {% if lang == 'fa' %}استفاده{% else %}Usage{% endif %} | {% if lang == 'fa' %}عملیات{% else %}Actions{% endif %} |
|---|---|---|---|---|---|---|
|
{{ key.key_id[:12] }}...
|
{% if key.project_id == '*' %} {% if lang == 'fa' %}همه پروژهها{% else %}All Projects{% endif %} {% else %}{{ key.project_id }}{% endif %} |
{% for scope in key.scope.split() %}
{{ scope }}
{% endfor %}
|
{{ key.description or '-' }} |
{% if key.revoked %} {% if lang == 'fa' %}لغو شده{% else %}Revoked{% endif %}
{% else %}{% if lang == 'fa' %}فعال{% else %}Active{% endif %} {% endif %}
|
{{ key.usage_count }} |
{% if not key.revoked %}
{% endif %}
|
|
{% if lang == 'fa' %}کلید API یافت نشد{% else %}No API keys found{% endif %} | ||||||
{% if lang == 'fa' %}نمایش {{ ((page_number-1)*per_page)+1 }} تا {{ [page_number*per_page, total_count]|min }} از {{ total_count }}{% else %}Showing {{ ((page_number-1)*per_page)+1 }}–{{ [page_number*per_page, total_count]|min }} of {{ total_count }}{% endif %}
{% if lang == 'fa' %}کلیدهای API شخصی برای دسترسی به MCP{% else %}Your personal API keys for MCP access{% endif %}
{% if lang == 'fa' %}فیلتر ابزارهای هر سایت در تنظیمات سایت انجام میشود.{% else %}Per-site tool filters are configured in Site Settings.{% endif %}
| {% if lang == 'fa' %}نام{% else %}Name{% endif %} | Prefix | {% if lang == 'fa' %}دسترسی{% else %}Scope{% endif %} | Uses | {{ t.actions }} |
|---|---|---|---|---|
| {{ key.name }} | mhu_{{ key.key_prefix }}... |
{% set scopes = (key.scopes or 'read write admin').split() %}
{% for s in scopes %}
{{ s }}
{% endfor %}
|
{{ key.use_count }} | |
|
{{ t.no_api_keys }} | ||||