update readme and block single user mode + oauth to avoid user confusion

This commit is contained in:
Taylor Wilsdon
2026-01-27 19:32:45 -05:00
parent 2463778deb
commit 53109b9a50
2 changed files with 17 additions and 0 deletions

View File

@@ -285,6 +285,14 @@ def main():
# Set global single-user mode flag
if args.single_user:
# Check for incompatible OAuth 2.1 mode
if os.getenv("MCP_ENABLE_OAUTH21", "false").lower() == "true":
safe_print("❌ Single-user mode is incompatible with OAuth 2.1 mode")
safe_print(" Single-user mode is for legacy clients that pass user emails")
safe_print(" OAuth 2.1 mode is for multi-user scenarios with bearer tokens")
safe_print(" Please choose one mode: either --single-user OR MCP_ENABLE_OAUTH21=true")
sys.exit(1)
if is_stateless_mode():
safe_print("❌ Single-user mode is incompatible with stateless mode")
safe_print(" Stateless mode requires OAuth 2.1 which is multi-user")