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:
_ = [record async for record in result]
# Use the actual configured provider from the global config
provider_name = config.database.provider
# Use the provider from the service's config, not the global
provider_name = graphiti_service.config.database.provider
return StatusResponse(
status='ok',
message=f'Graphiti MCP server is running and connected to {provider_name} database',