get_sso_config
Retrieve Single Sign-On configuration and available roles for the Coroot observability platform to enable secure authentication setup.
Instructions
Get SSO configuration.
Retrieves Single Sign-On (SSO) configuration and available roles.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp_coroot/server.py:1788-1795 (handler)Core implementation of the get_sso_config tool logic: retrieves the CorootClient instance and calls its get_sso_config method to fetch the SSO configuration from the API.async def get_sso_config_impl() -> dict[str, Any]: """Get SSO configuration.""" client = get_client() config = await client.get_sso_config() return { "success": True, "config": config, }
- src/mcp_coroot/server.py:1798-1804 (registration)Registration of the 'get_sso_config' MCP tool using the @mcp.tool() decorator. This function serves as the entry point for the tool and delegates to the implementation.@mcp.tool() async def get_sso_config() -> dict[str, Any]: """Get SSO configuration. Retrieves Single Sign-On (SSO) configuration and available roles. """ return await get_sso_config_impl() # type: ignore[no-any-return]
- src/mcp_coroot/client.py:1438-1446 (helper)CorootClient helper method that executes the HTTP GET request to the Coroot API endpoint /api/sso to retrieve the SSO configuration data.async def get_sso_config(self) -> dict[str, Any]: """Get SSO configuration. Returns: SSO configuration and available roles. """ response = await self._request("GET", "/api/sso") data: dict[str, Any] = response.json() return data