{% extends "dashboard/base.html" %} {% block title %}{{ t.connect }} - MCP Hub{% endblock %} {% block page_title %}{{ t.connect }}{% endblock %} {% block content %}

{{ t.api_keys }}

{% if new_key %}

{{ t.your_api_key }}

{{ new_key }}

{{ t.key_shown_once }}

{% endif %} {% if api_keys %}
{% for key in api_keys %} {% endfor %}
{{ t.api_key_name }} Prefix {% if lang == 'fa' %}دسترسی{% else %}Access{% endif %} Uses {{ t.actions }}
{{ key.name }} mhu_{{ key.key_prefix }}... {% if lang == 'fa' %}دسترسی کامل{% else %}Full Access{% endif %} {{ key.use_count }}
{% else %}

{{ t.no_api_keys }}

{% endif %}

{{ t.config_snippets }}

{% if sites %}
Select a site and client to generate configuration...
{% else %}

{{ t.no_sites }}. {{ t.add_site }}

{% endif %}

{% if lang == 'fa' %}اتصال به Claude.ai{% else %}Connect to Claude.ai{% endif %}

  1. {% if lang == 'fa' %} در صفحه OAuth Clients یک کلاینت جدید بسازید {% else %} Create an OAuth Client on the OAuth Clients page {% endif %}
  2. {% if lang == 'fa' %} در Claude.ai → Settings → Connectors → Add → Custom {% else %} Go to Claude.ai → Settings → Connectors → Add → Custom {% endif %}
  3. {% if lang == 'fa' %} آدرس MCP Endpoint خود را وارد کنید: {% else %} Enter your MCP Endpoint URL: {% endif %} {% if sites %} {{ public_url }}/u/{{ session.user_id }}/{{ sites[0].alias }}/mcp {% else %} {{ public_url }}/u/{{ session.user_id }}/YOUR-ALIAS/mcp {% endif %}
  4. {% if lang == 'fa' %}Client ID و Client Secret را از OAuth Clients وارد کنید{% else %}Enter Client ID and Client Secret from your OAuth Client{% endif %}
  5. {% if lang == 'fa' %}با GitHub یا Google وارد شوید{% else %}Log in with GitHub or Google when prompted{% endif %}
{% if lang == 'fa' %}مدیریت OAuth Clients{% else %}Manage OAuth Clients{% endif %}
{% endblock %} {% block scripts %} {% endblock %}