{% extends "admin/base_site.html" %} {% comment %} Connect page for MCP clients. Reached two ways: - right after a key is minted (response_add renders it with `raw_key` set), and - from the "Connect a client" button on the key list, where the admin pastes a key they already hold. The token never leaves the browser: snippets are assembled client-side in JS. {% endcomment %} {% block title %}Connect an MCP client | {{ site_title|default:"Django site admin" }}{% endblock %} {% block breadcrumbs %} {% endblock %} {% block extrastyle %}{{ block.super }} {% endblock %} {% block content %}
{% if raw_key %}
Key “{{ key_name }}” created. Copy it now, it won’t be shown again. Only a hash is stored. If you lose this key, revoke it and mint a new one.
{% endif %}

1. MCP key

Paste a key you already have. It stays in this browser and is only used to fill in the snippets below.

2. Pick your client

Run this in your terminal:

Then run claude mcp list to check it’s registered.

{{ mcp_url|json_script:"mcp-url" }} {% endblock %}