"""Resource definitions for yt-fetch MCP server."""
from mcp.types import Resource
def create_resources() -> list[Resource]:
"""Create and return all available resources."""
return [
Resource(
uri="youtube://search/{query}",
name="YouTube Search Results",
description="Cached search results for YouTube videos with metadata",
mimeType="application/json",
),
Resource(
uri="youtube://video/{video_id}/metadata",
name="Video Metadata",
description="Full metadata for a specific YouTube video including stats and details",
mimeType="application/json",
),
Resource(
uri="youtube://channel/{channel_id}",
name="Channel Information",
description="Channel information including stats, description, and recent videos",
mimeType="application/json",
),
]