How to capture generic metadata file of keycloak server

How to get generic metadata XML of keycloak server. The actual issue is we are trying to configure IDP in McAfee epo for single sign on feature. We have chosen keycloak as identity provider. After doing changes in keycloak the same entity Id is been added to McAfee epo IDP settings. There is an option to import the metadata file of keycloak server, we imported it and the URLs are automatically updated. After doing the changes observed during login either we get invalid request or we were unable to navigate back to McAfee at all.