Skip to content

Commit c7df829

Browse files
committed
fix: handle literal string when env var is unset
1 parent cad1abc commit c7df829

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ def cli(
5656
"""Redis MCP Server - Model Context Protocol server for Redis."""
5757

5858
# Handle Redis URI if provided (and not empty)
59-
if url and url.strip():
59+
# Note: gemini-cli passes the raw "${REDIS_URL}" string when the env var is not set
60+
61+
if url and url.strip() and url.strip() != "${REDIS_URL}":
6062
try:
6163
uri_config = parse_redis_uri(url)
6264
set_redis_config_from_cli(uri_config)

0 commit comments

Comments
 (0)