Connect to an MCP server via Server-Sent Events (SSE).
aisdk::McpClient -> McpSseClient
endpointThe POST endpoint for sending messages (received from SSE init)
auth_headersAuthentication headers
new()Create a new MCP SSE Client
McpSseClient$new(url, headers = list())urlThe SSE endpoint URL
headersnamed list of headers (e.g. for auth)
A new McpSseClient object
clone()The objects of this class are cloneable with this method.
McpSseClient$clone(deep = FALSE)deepWhether to make a deep clone.
Manages connection to a remote MCP server via SSE transport.