Configuration data structures for establishing SSE and HTTP client connections to Model Context Protocol servers. Use this when building MCP-compatible integrations.
# Source: https://github.com/agno-agi/agno | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
from dataclasses import dataclass
from typing import Any, Dict, Optional
@dataclass
class SSEClientParams:
"""Parameters for SSE client connection."""
url: str
headers: Optional[Dict[str, Any]] = None
timeout: Optional[float] = 5
sse_read_timeout: Optional[float] = 60 * 5
@dataclass
class StreamableHTTPClientParams:
"""Parameters for Streamable HTTP client connection.
``timeout`` and ``sse_read_timeout`` are expressed in seconds. The MCP SDK
v2 ``streamable_http_client`` no longer accepts these as keyword arguments;
agno maps them onto an ``httpx2.Tim
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key