"""URL routes for the per-user MCP token self-service dashboard.

Mounted at ``/profile/mcp-tokens/…``.  Humans use this surface to mint
opaque :class:`mcp_server.models.MCPToken` rows for third-party MCP
clients (Claude Desktop, Cline, etc.).

Other MCP-server surfaces live elsewhere:

* ``/mcp_server/api/…`` (DRF control plane consumed by Daedalus) is
  mounted at project root — see ``mnemosyne.urls`` and
  ``mcp_server.api.urls`` — and keeps its own ``mcp-server-api``
  namespace.
* The MCP bearer-auth surface itself (tool calls via
  ``Authorization: Bearer …``) is mounted by ``mnemosyne.asgi`` at
  ``/mcp/`` and is not routed here.
"""

from django.urls import path

from . import views

app_name = "mcp_server"

urlpatterns = [
    # Self-service token dashboard (human-facing).
    path("profile/mcp-tokens/", views.mcp_token_list, name="mcp-token-list"),
    path("profile/mcp-tokens/add/", views.mcp_token_create, name="mcp-token-create"),
    path("profile/mcp-tokens/<int:pk>/", views.mcp_token_detail, name="mcp-token-detail"),
    path("profile/mcp-tokens/<int:pk>/edit/", views.mcp_token_edit, name="mcp-token-edit"),
    path("profile/mcp-tokens/<int:pk>/revoke/", views.mcp_token_revoke, name="mcp-token-revoke"),
    path("profile/mcp-tokens/<int:pk>/delete/", views.mcp_token_delete, name="mcp-token-delete"),
]
