Skip to main content
Glama
jamesbrink

MCP Server for Coroot

list_api_keys

Retrieve all API keys with metadata for a specific project in Coroot's observability platform, excluding secret values for security.

Instructions

List all API keys for a project.

Returns all API keys with their metadata (but not the secret values).

Args: project_id: Project ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYes

Implementation Reference

  • MCP tool handler registration for 'list_api_keys'. This is the entrypoint function decorated with @mcp.tool() that handles the tool execution by calling the implementation.
    @mcp.tool()
    async def list_api_keys(project_id: str) -> dict[str, Any]:
        """List all API keys for a project.
    
        Returns all API keys with their metadata (but not the secret values).
    
        Args:
            project_id: Project ID
        """
        return await list_api_keys_impl(project_id)  # type: ignore[no-any-return]
  • Server-side wrapper implementation that calls CorootClient.list_api_keys and formats the response with success indicator.
    async def list_api_keys_impl(project_id: str) -> dict[str, Any]:
        """List API keys."""
        keys = await get_client().list_api_keys(project_id)
        return {
            "success": True,
            "api_keys": keys,
        }
  • Core handler logic in CorootClient that performs the HTTP GET request to the Coroot API endpoint /api/project/{project_id}/api_keys to fetch the list of API keys.
    async def list_api_keys(self, project_id: str) -> dict[str, Any]:
        """List API keys for a project.
    
        Args:
            project_id: Project ID.
    
        Returns:
            List of API keys.
        """
        response = await self._request("GET", f"/api/project/{project_id}/api_keys")
        data: dict[str, Any] = response.json()
        return data

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jamesbrink/mcp-coroot'

If you have feedback or need assistance with the MCP directory API, please join our Discord server