get_realm_events_config
Retrieve events configuration for a Keycloak realm to monitor authentication and authorization activities.
Instructions
Get realm events configuration.
Args:
realm: Target realm (uses default if not specified)
Returns:
Events configuration object
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| realm | No |
Implementation Reference
- src/tools/realm_tools.py:156-167 (handler)The core handler function for the 'get_realm_events_config' MCP tool. Decorated with @mcp.tool() for automatic registration. Retrieves the events configuration by making a GET request to the Keycloak API endpoint '/events/config' using the KeycloakClient instance.@mcp.tool() async def get_realm_events_config(realm: Optional[str] = None) -> Dict[str, Any]: """ Get realm events configuration. Args: realm: Target realm (uses default if not specified) Returns: Events configuration object """ return await client._make_request("GET", "/events/config", realm=realm)