Skip to content

HTTPClientConfig

🛈 DocStrings

Configuration for HTTP-based MCP client.

Source code in src/mcp_server_llmling/http_client.py
@dataclass
class HTTPClientConfig:
    """Configuration for HTTP-based MCP client."""

    server_url: str
    protocol_version: str = LATEST_PROTOCOL_VERSION
    """MCP revision we expect; the SDK's `ClientSession` offers its `LATEST_PROTOCOL_VERSION`."""
    client_name: str = "mcp-client"
    client_version: str = "1.0"
    timeout: float = 30.0
    headers: dict[str, str] | None = None

protocol_version class-attribute instance-attribute

protocol_version: str = LATEST_PROTOCOL_VERSION

MCP revision we expect; the SDK's ClientSession offers its LATEST_PROTOCOL_VERSION.

:fa-brands-github: Show source on GitHub