From a8ae6e16d0dcaf3a4b8f4e298ebe45707699b938 Mon Sep 17 00:00:00 2001 From: Daniel Chalef <131175+danielchalef@users.noreply.github.com> Date: Thu, 30 Oct 2025 21:44:29 -0700 Subject: [PATCH] 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 --- mcp_server/src/graphiti_mcp_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mcp_server/src/graphiti_mcp_server.py b/mcp_server/src/graphiti_mcp_server.py index baa41baf..4c442e0e 100644 --- a/mcp_server/src/graphiti_mcp_server.py +++ b/mcp_server/src/graphiti_mcp_server.py @@ -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',