mirror of
https://github.com/jmagar/unraid-mcp.git
synced 2026-03-23 12:39:24 -07:00
feat(elicitation): degrade gracefully when credentials are missing at startup
This commit is contained in:
@@ -80,11 +80,10 @@ def run_server() -> None:
|
||||
# Validate required configuration before anything else
|
||||
is_valid, missing = validate_required_config()
|
||||
if not is_valid:
|
||||
logger.critical(
|
||||
f"Missing required configuration: {', '.join(missing)}. "
|
||||
"Set these environment variables or add them to your .env file."
|
||||
logger.warning(
|
||||
f"Missing configuration: {', '.join(missing)}. "
|
||||
"Server will prompt for credentials on first tool call via elicitation."
|
||||
)
|
||||
sys.exit(1)
|
||||
|
||||
# Log configuration (delegated to shared function)
|
||||
from .config.logging import log_configuration_status
|
||||
|
||||
Reference in New Issue
Block a user