Skip to main content
Glama
show.py935 B
"""Show models for the Trakt MCP server.""" from typing import Any from pydantic import BaseModel, Field class TraktShow(BaseModel): """Represents a Trakt show.""" title: str year: int | None = None ids: dict[str, str | int | None] = Field( description="Various IDs for the show (trakt, slug, tvdb, imdb, tmdb)" ) overview: str | None = None class TraktTrendingShow(BaseModel): """Represents a trending show from Trakt API.""" watchers: int = Field(description="Number of people watching this show") show: TraktShow class TraktPopularShow(BaseModel): """Represents a popular show from Trakt API.""" show: TraktShow = Field(description="The show information") @classmethod def from_api_response(cls, api_data: dict[str, Any]) -> "TraktPopularShow": """Create a TraktPopularShow instance from raw API data.""" return cls(show=TraktShow(**api_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/wwiens/trakt_mcpserver'

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