Gate MCP endpoint behind MCP_ENABLED flag

This commit is contained in:
Mike Cao committed 2026-09-09 15:24:51 -07:00
commit 2b7eb29a0e
5 files changed
+46 -2

No files matched your search

+3
View File
@@ -54,6 +54,9 @@ Optional: set `TWO_FACTOR_ENCRYPTION_KEY` to a 64-character hex string to enable
authentication. Generate one with `openssl rand -hex 32`. Two-factor authentication is unavailable
and cannot be required until this key is set.
MCP is disabled by default. Set `MCP_ENABLED=1` to enable the `/mcp` endpoint, then
authenticate with an API key generated under Settings → API keys.
The connection URL format:
```bash