Class DefaultMcpTransportBuilder
java.lang.Object
com.google.adk.tools.mcp.DefaultMcpTransportBuilder
- All Implemented Interfaces:
McpTransportBuilder
The default builder for creating MCP client transports. Supports StdioClientTransport based on
ServerParameters
and the standard HttpClientSseClientTransport based on SseServerParameters
.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DefaultMcpTransportBuilder
public DefaultMcpTransportBuilder()
-
-
Method Details
-
build
Description copied from interface:McpTransportBuilder
Builds an McpClientTransport based on the provided connection parameters.- Specified by:
build
in interfaceMcpTransportBuilder
- Parameters:
connectionParams
- The parameters required to configure the transport. The type of this object determines the type of transport built.- Returns:
- An instance of McpClientTransport.
-