We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/wwiens/trakt_mcpserver'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
"""Popular shows functionality."""
from config.api import DEFAULT_LIMIT
from config.endpoints import TRAKT_ENDPOINTS
from models.types import ShowResponse
from utils.api.errors import handle_api_errors
from ..base import BaseClient
class PopularShowsClient(BaseClient):
"""Client for popular shows operations."""
@handle_api_errors
async def get_popular_shows(self, limit: int = DEFAULT_LIMIT) -> list[ShowResponse]:
"""Get popular shows from Trakt.
Args:
limit: Maximum number of shows to return
Returns:
List of popular shows data
"""
return await self._make_typed_list_request(
TRAKT_ENDPOINTS["shows_popular"],
response_type=ShowResponse,
params={"limit": limit},
)