Class StreamableHttpServerParameters

java.lang.Object
com.google.adk.tools.mcp.StreamableHttpServerParameters

public class StreamableHttpServerParameters extends Object
Server parameters for Streamable HTTP client transport.
  • Constructor Details

    • StreamableHttpServerParameters

      public StreamableHttpServerParameters(String url, Map<String,String> headers, @Nullable Duration timeout, @Nullable Duration readTimeout, @Nullable Boolean terminateOnClose)
      Server parameters for Streamable HTTP client transport.
      Parameters:
      url - The base URL for the MCP Streamable HTTP server.
      headers - Optional headers to include in requests.
      timeout - Timeout for HTTP operations (default: 30 seconds).
      readTimeout - Timeout for reading data from the streamed http events(default: 5 minutes).
      terminateOnClose - Whether to terminate the session on close (default: true).
  • Method Details