Skip to content

Commit 7cf6604

Browse files
authored
Merge pull request #63 from redis/fix/redis-uri-whitespace-handling
fix(cli): handle whitespace-only Redis_URL properly
2 parents 69d5a8d + 4733d84 commit 7cf6604

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ def cli(
5555
):
5656
"""Redis MCP Server - Model Context Protocol server for Redis."""
5757

58-
# Handle Redis URI if provided
59-
if url:
58+
# Handle Redis URI if provided (and not empty)
59+
if url and url.strip():
6060
try:
6161
uri_config = parse_redis_uri(url)
6262
set_redis_config_from_cli(uri_config)

0 commit comments

Comments
 (0)