fix: Use service config instead of global config in status endpoint

- Changed status check to use graphiti_service.config.database.provider
- Ensures status reports the actual running database, not potentially stale global
- Fixes issue where status always reported falkordb regardless of config
This commit is contained in:
Daniel Chalef 2025-10-30 21:44:29 -07:00
parent 224f167b3f
commit a8ae6e16d0

View file

@ -723,8 +723,8 @@ async def get_status() -> StatusResponse:
if result: if result:
_ = [record async for record in result] _ = [record async for record in result]
# Use the actual configured provider from the global config # Use the provider from the service's config, not the global
provider_name = config.database.provider provider_name = graphiti_service.config.database.provider
return StatusResponse( return StatusResponse(
status='ok', status='ok',
message=f'Graphiti MCP server is running and connected to {provider_name} database', message=f'Graphiti MCP server is running and connected to {provider_name} database',