Class StreamableHttpServerParameters
java.lang.Object
com.google.adk.tools.mcp.StreamableHttpServerParameters
Server parameters for Streamable HTTP client transport.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
-
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
-
url
-
headers
-
timeout
-
readTimeout
-
terminateOnClose
public boolean terminateOnClose() -
builder
-