类:DefaultMcpTransportBuilder
java.lang.Object
com.google.adk.tools.mcp.DefaultMcpTransportBuilder
- All Implemented Interfaces:
McpTransportBuilder
用于创建 MCP 客户端传输层的默认构建器。该构建器基于 StdioClientTransport 进行开发。
ServerParameters基于 HttpClientSseClientTransport 的实现 SseServerParameters基于 `HttpClientStreamableHttpTransport` 的实现 StreamableHttpServerParameters.-
构造函数概述
Constructors -
方法概述
-
构造函数详细信息
-
DefaultMcpTransportBuilder
public DefaultMcpTransportBuilder()
-
-
方法详细信息(Method Details)
-
build
描述内容复制自接口文档:McpTransportBuilder根据提供的连接参数,创建一个 McpClientTransport 对象。- Specified by:
buildin 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.
-