# Class DefaultMcpTransportBuilder

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

All Implemented Interfaces:
  `McpTransportBuilder`

public class DefaultMcpTransportBuilder extends Object implements McpTransportBuilder
The default builder for creating MCP client transports. Supports StdioClientTransport based on `ServerParameters`, HttpClientSseClientTransport based on `SseServerParameters`, and HttpClientStreamableHttpTransport based on `StreamableHttpServerParameters`.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DefaultMcpTransportBuilder()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `io.modelcontextprotocol.spec.McpClientTransport`
  `build(Object connectionParams)`
  Builds an McpClientTransport based on the provided connection parameters.

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### DefaultMcpTransportBuilder

    public DefaultMcpTransportBuilder()

- ## Method Details

  - ### build

    public io.modelcontextprotocol.spec.McpClientTransport build(Object connectionParams)
    Description copied from interface: `McpTransportBuilder`
    Builds an McpClientTransport based on the provided connection parameters.
    Specified by:
      `build` in interface `McpTransportBuilder`
    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.