# File: src/mcp/types.py
# Purpose: Supply typed representations for common MCP payload fragments.
# Context: Used by lightweight MCP servers and tests to shape JSON responses.

"""Typed wrappers for MCP content and payload fragments.

Purpose:
    Offer small dataclasses that mirror MCP schema elements without depending
    on the full production models.
Context:
    Imported by lightweight servers and fixtures when constructing JSON-RPC
    responses for tests.
Side Effects:
    None.
"""

from __future__ import annotations

from dataclasses import dataclass


@dataclass(slots=True)
class TextContent:
    """Represent a text content block returned from an MCP tool.

    Purpose:
        Provide a structured helper for JSON-RPC content serialization.

    Args:
        type: Content type string, typically ``\"text\"``.
        text: Text payload delivered to the MCP client.

    Returns:
        None.
    Side Effects:
        None.
    """

    type: str
    text: str
