update readme and block single user mode + oauth to avoid user confusion
This commit is contained in:
8
main.py
8
main.py
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user