Skip to main content
Glama
checkin.py999 B
"""Checkin models for the Trakt MCP server.""" from typing import Any from pydantic import BaseModel, Field class TraktCheckin(BaseModel): """Represents a Trakt checkin response.""" id: int = Field(description="The checkin ID") watched_at: str = Field(description="When the item was watched") sharing: dict[str, bool] = Field( description="Social sharing settings", default_factory=dict ) show: dict[str, Any] | None = Field( default=None, description="Show information if checking in to a show" ) episode: dict[str, Any] | None = Field( default=None, description="Episode information if checking in to an episode" ) movie: dict[str, Any] | None = Field( default=None, description="Movie information if checking in to a movie" ) @classmethod def from_api_response(cls, api_data: dict[str, Any]) -> "TraktCheckin": """Create a TraktCheckin instance from raw API data.""" return cls(**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