MCPcopy Index your code
hub / github.com/google/adk-python / SseConnectionParams

Class SseConnectionParams

src/google/adk/tools/mcp_tool/mcp_session_manager.py:114–137  ·  view source on GitHub ↗

Parameters for the MCP SSE connection. See MCP SSE Client documentation for more details. https://github.com/modelcontextprotocol/python-sdk/blob/main/src/mcp/client/sse.py Attributes: url: URL for the MCP SSE server. headers: Headers for the MCP SSE connection. timeout: Ti

Source from the content-addressed store, hash-verified

112
113
114class SseConnectionParams(BaseModel):
115 """Parameters for the MCP SSE connection.
116
117 See MCP SSE Client documentation for more details.
118 https://github.com/modelcontextprotocol/python-sdk/blob/main/src/mcp/client/sse.py
119
120 Attributes:
121 url: URL for the MCP SSE server.
122 headers: Headers for the MCP SSE connection.
123 timeout: Timeout in seconds for establishing the connection to the MCP SSE
124 server.
125 sse_read_timeout: Timeout in seconds for reading data from the MCP SSE
126 server.
127 httpx_client_factory: Factory function to create a custom HTTPX client. If
128 not provided, a default factory will be used.
129 """
130
131 model_config = ConfigDict(arbitrary_types_allowed=True)
132
133 url: str
134 headers: dict[str, Any] | None = None
135 timeout: float = 5.0
136 sse_read_timeout: float = 60 * 5.0
137 httpx_client_factory: CheckableMcpHttpClientFactory = create_mcp_http_client
138
139
140@runtime_checkable

Calls

no outgoing calls