Uses of Class
dev.langchain4j.mcp.client.transport.http.StreamableHttpMcpTransport.Builder
Packages that use StreamableHttpMcpTransport.Builder
-
Uses of StreamableHttpMcpTransport.Builder in dev.langchain4j.mcp.client.transport.http
Methods in dev.langchain4j.mcp.client.transport.http that return StreamableHttpMcpTransport.BuilderModifier and TypeMethodDescriptionStreamableHttpMcpTransport.builder()StreamableHttpMcpTransport.Builder.customHeaders(McpHeadersSupplier customHeadersSupplier) A supplier for dynamic request headers of the MCP server.StreamableHttpMcpTransport.Builder.customHeaders(Supplier<Map<String, String>> customHeadersSupplier) A supplier for dynamic request headers of the MCP server.StreamableHttpMcpTransport.Builder.customHeaders(Map<String, String> customHeaders) The request headers of the MCP server.An optionalExecutorthat will be used for executing requests and handling responses.StreamableHttpMcpTransport.Builder.followRedirects(boolean followRedirects) Enables or disables following HTTP redirects (3xx status codes).StreamableHttpMcpTransport.Builder.httpClient(HttpClient httpClient) Supplies a caller-owned HTTP client, which may be shared by several transports.StreamableHttpMcpTransport.Builder.httpClientBuilder(HttpClientBuilder httpClientBuilder) Supplies the HTTP backend used for all requests, including the subsidiary SSE channel.StreamableHttpMcpTransport.Builder.logger(org.slf4j.Logger logger) Sets a customLoggerto be used for traffic logging (both requests and responses).StreamableHttpMcpTransport.Builder.logRequests(boolean logRequests) Whether to log all requests that are sent over this transport.StreamableHttpMcpTransport.Builder.logResponses(boolean logResponses) Whether to log all responses received over this transport.StreamableHttpMcpTransport.Builder.maxMessageSize(Integer maxMessageSize) The maximum size, in bytes, of a single message received from the server: the data of one event on an SSE stream, or the whole body of any other response, such as a JSON response.StreamableHttpMcpTransport.Builder.setHttpVersion1_1()Forces the transport to use HTTP/1.1 instead of the default HTTP/2.StreamableHttpMcpTransport.Builder.sslContext(SSLContext sslContext) Supplies a customSSLContextused when establishing HTTPS connections to the MCP server, allowing private CAs or certificates.StreamableHttpMcpTransport.Builder.subsidiaryChannel(boolean subsidiaryChannelEnabled) Enables or disables the subsidiary SSE channel.The connection timeout (applied on the http client level).The URL of the MCP server.Constructors in dev.langchain4j.mcp.client.transport.http with parameters of type StreamableHttpMcpTransport.BuilderModifierConstructorDescription