{% extends "admin/base.html" %} {% block title %}Settings - Auth MCP Admin{% endblock %} {% block content %}

Settings

Configure system settings and policies

Settings saved successfully!

API Access Token

Use this token to authenticate API requests and GitHub Copilot CLI MCP connections.

Expires in: {{ token_expires_in }}

Paste this in "HTTP Headers" field when adding HTTP MCP server

JWT Token Settings

Recommended: 1440 (24 hours), 10080 (7 days), 43200 (30 days)

Recommended: 7, 30, or 90 days

When enabled, new logins invalidate previous access tokens (one active token per user).

If Codex runs on multiple machines, disable this to avoid logouts (tokens are stored locally per machine).

Note: For Claude Desktop MCP, longer access token lifetimes (24h - 7d) are recommended since token auto-refresh is not yet supported by MCP clients.

Password Policy

System Settings

Enable /auth/register endpoint for public user registration

Require authentication for all MCP endpoints

Enable /oauth/register for MCP clients like Codex to self-register OAuth clients

Codex / OAuth MCP clients: Two settings are needed for Codex to connect via OAuth:
  • Allow DCR must be enabled so Codex can self-register as an OAuth client (codex mcp login).
  • Enforce Single Session (JWT section above) should be disabled if Codex runs on multiple machines, otherwise logging in from one machine invalidates tokens on the others.

Rate Limits

Per-user request limits to protect backend servers from abuse.

MCP Rate Limit: limits per-user requests to backend MCP servers. Default: 100 requests per 60 seconds. Changes apply immediately.
{% endblock %} {% block extra_scripts %} {% endblock %}