StreamableHttp
Streamable HTTP settings supported by both JVM and Android MCP clients.
HTTPS is allowed by default. An http endpoint requires allowInsecureHttp to be explicitly enabled on every platform. Android 9 / API 28 and newer normally block cleartext traffic as well, so the application must configure networkSecurityConfig or usesCleartextTraffic itself. A library cannot override that operating-system policy.
Constructors
Types
Fluent builder for StreamableHttp, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor. Timeouts are set in milliseconds from Java because Duration is a value class hidden from Java.
Properties
Functions
Returns connectTimeout in whole milliseconds. Java cannot read connectTimeout.
Returns requestTimeout in whole milliseconds. Java cannot read requestTimeout.
Returns a Builder initialized with this instance's properties, primarily for Java callers. Prefer it over copy from Java: copy takes every property positionally, so its signature changes whenever a property is added.