{% extends overview_base %} {% load static %} {% block tab_content %} {% if not is_iframe %}{% endif %} {# No key is in this page. Commands show a mask; "Show" and "Copy" POST (CSRF) for the real one: #} {# django_overview/views.py. The token below is the CSRF token, not an MCP key. #}

Connect your assistant

Register this server in Claude Code, Codex or any MCP client with your own credential. The key never appears in this page until you press Show; Copy puts the full command on the clipboard.

{% if not mcp_enabled %}
MCP is not enabled in this project.
{% endif %} {% for p in profiles %}

{{ p.name }}

{% if p.tool_count is not None %}{{ p.tool_count }} tool{{ p.tool_count|pluralize }}{% endif %} {% if p.oauth %}OAuth{% endif %}
{{ p.path }}
Address
{{ p.url }}
Name
{{ p.alias }}
Tools
{{ p.tools }}{% if p.rate_limit %} ยท {{ p.rate_limit }}{% endif %}
Credential
{{ p.credential.label }} {% if p.credential.revealable %} {{ p.credential.masked }} {% endif %} {% if p.credential.creatable %} {% endif %}
{% if p.credential.hint %}

{{ p.credential.hint }}

{% endif %}
{% if p.error %}
{{ p.error }}
{% endif %} {% if p.commands %} {% with secret=p.credential.revealable %}

Paste into a terminal. Registers the server for your user in every project{% if p.credential.kind == 'oauth' %}; then run /mcp in Claude Code to sign in{% endif %}.

{{ p.commands.claude }}
{% endwith %} {% endif %}
{% endfor %}
(function () { var root = document.querySelector('.cfg-ov'); if (!root) return; var csrf = root.dataset.csrf; var toast = root.querySelector('.cfg-ov-toast'), toastTimer; function say(text) { toast.textContent = text; toast.hidden = false; clearTimeout(toastTimer); toastTimer = setTimeout(function () { toast.hidden = true; }, 1800); } function copy(text) { if (navigator.clipboard && window.isSecureContext) { return navigator.clipboard.writeText(text).then(function () { say('Copied'); }, function () { fallback(text); }); } fallback(text); return Promise.resolve(); } function fallback(text) { var area = document.createElement('textarea'); area.value = text; area.setAttribute('readonly', ''); area.style.position = 'fixed'; area.style.opacity = '0'; document.body.appendChild(area); area.select(); try { document.execCommand('copy'); say('Copied'); } catch (e) { say('Copy failed'); } area.remove(); } function post(url) { return fetch(url, { method: 'POST', credentials: 'same-origin', cache: 'no-store', headers: { 'X-CSRFToken': csrf, 'X-Requested-With': 'XMLHttpRequest' } }) .then(function (r) { return r.json().then(function (body) { if (!r.ok) throw new Error(body.detail || ('HTTP ' + r.status)); return body; }); }); } root.querySelectorAll('[data-mcp-profile]').forEach(function (card) { var payload = null, shown = false; var errorBox = card.querySelector('[data-error]'); var keyField = card.querySelector('[data-key-field]'); var masked = {}; card.querySelectorAll('pre[data-cmd]').forEach(function (pre) { masked[pre.dataset.cmd] = pre.textContent; }); var maskedKey = keyField ? keyField.textContent : ''; function fail(err) { errorBox.textContent = err.message; errorBox.hidden = false; } function load() { if (payload) return Promise.resolve(payload); return post(card.dataset.revealUrl).then(function (body) { payload = body; errorBox.hidden = true; return body; }); } function render() { card.querySelectorAll('pre[data-cmd]').forEach(function (pre) { pre.textContent = shown && payload ? payload.commands[pre.dataset.cmd] : masked[pre.dataset.cmd]; }); if (keyField) keyField.textContent = shown && payload ? payload.key : maskedKey; var toggle = card.querySelector('[data-action="toggle"]'); if (toggle) { toggle.setAttribute('aria-pressed', shown ? 'true' : 'false'); toggle.querySelector('[data-toggle-label]').textContent = shown ? 'Hide' : 'Show'; toggle.querySelector('.material-symbols-outlined').textContent = shown ? 'visibility_off' : 'visibility'; } } card.addEventListener('click', function (event) { var button = event.target.closest('button'); if (!button || !card.contains(button)) return; if (button.dataset.client) { card.querySelectorAll('[data-client]').forEach(function (b) { b.setAttribute('aria-selected', b === button ? 'true' : 'false'); }); card.querySelectorAll('[data-panel]').forEach(function (panel) { panel.hidden = panel.dataset.panel !== button.dataset.client; }); return; } if (button.dataset.copyText) { copy(button.dataset.copyText); return; } var action = button.dataset.action; if (action === 'toggle') { if (shown) { shown = false; payload = null; render(); return; } // hiding forgets the key load().then(function () { shown = true; render(); }, fail); return; } if (action === 'copy-key') { load().then(function (p) { return copy(p.key); }, fail); return; } if (action === 'create') { button.disabled = true; post(card.dataset.createUrl).then(function () { window.location.reload(); }, function (err) { button.disabled = false; fail(err); }); return; } if (button.dataset.copy) { var pre = card.querySelector('pre[data-cmd="' + button.dataset.copy + '"]'); if (!pre.hasAttribute('data-secret')) { copy(pre.textContent); return; } load().then(function (p) { return copy(p.commands[button.dataset.copy]); }, fail); } }); }); })(); {% endblock %}