client_list
Retrieve a list of all active clients connected to the Redis server for real-time monitoring and management of connections.
Instructions
Get a list of connected clients to the Redis server.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/server_management.py:35-43 (handler)The main handler function for the 'client_list' tool. It is decorated with @mcp.tool() for registration and retrieves the list of connected Redis clients using RedisConnectionManager, returning the list or an error message on failure.@mcp.tool() async def client_list() -> list: """Get a list of connected clients to the Redis server.""" try: r = RedisConnectionManager.get_connection() clients = r.client_list() return clients except RedisError as e: return f"Error retrieving client list: {str(e)}"