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:
parent
224f167b3f
commit
a8ae6e16d0
1 changed files with 2 additions and 2 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue