Description
gemini-cli currently requires the environment variable REDIS_URL to be explicitly defined (e.g. redis://127.0.0.1:6379).
When this variable is not set, the CLI does not fall back to a default Redis instance and instead terminates with an error.
Expected Behavior
If REDIS_URL is unset, gemini-cli should default to connecting to redis://localhost:6379
Actual Behavior
When REDIS_URL is not provided, the CLI throws the following error and doesn't start the MCP server:
[DEBUG] [MCP STDERR (redis)]: Error parsing Redis URI: Unsupported scheme:
Error during discovery for server ‘redis’: MCP error -32000: Connection closed
Steps to Reproduce
- Ensure no
REDIS_URL environment variable is set:
- Run
gemini-cli
- Observe the connection error.