Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions mcp_server/src/config/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ class FalkorDBProviderConfig(BaseModel):
"""FalkorDB provider configuration."""

uri: str = 'redis://localhost:6379'
username: str | None = None
password: str | None = None
database: str = 'default_db'

Expand Down
1 change: 1 addition & 0 deletions mcp_server/src/graphiti_mcp_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ async def initialize(self) -> None:
falkor_driver = FalkorDriver(
host=db_config['host'],
port=db_config['port'],
username=db_config.get('username'),
password=db_config['password'],
database=db_config['database'],
)
Expand Down
2 changes: 2 additions & 0 deletions mcp_server/src/services/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ def create_config(config: DatabaseConfig) -> dict:
from urllib.parse import urlparse

uri = os.environ.get('FALKORDB_URI', falkor_config.uri)
username = os.environ.get('FALKORDB_USERNAME', falkor_config.username)
password = os.environ.get('FALKORDB_PASSWORD', falkor_config.password)

# Parse the URI to extract host and port
Expand All @@ -429,6 +430,7 @@ def create_config(config: DatabaseConfig) -> dict:
'driver': 'falkordb',
'host': host,
'port': port,
'username': username,
'password': password,
'database': falkor_config.database,
}
Expand Down