Class McpToolset.Builder
java.lang.Object
com.google.adk.tools.mcp.McpToolset.Builder
- Enclosing class:
McpToolset
Builder for McpToolset.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()callToolResultMapper(@Nullable CallToolResultMapper callToolResultMapper) Sets how tools convert MCP call results into their responses.connectionParams(SseServerParameters connectionParams) connectionParams(StreamableHttpServerParameters connectionParams) connectionParams(io.modelcontextprotocol.client.transport.ServerParameters connectionParams) mcpSessionManager(McpSessionManager mcpSessionManager) objectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) toolFilter(@Nullable ToolPredicate toolPredicate) toolFilter(List<String> toolNames)
-
Method Details
-
connectionParams
@CanIgnoreReturnValue public McpToolset.Builder connectionParams(io.modelcontextprotocol.client.transport.ServerParameters connectionParams) -
connectionParams
@CanIgnoreReturnValue public McpToolset.Builder connectionParams(SseServerParameters connectionParams) -
connectionParams
@CanIgnoreReturnValue public McpToolset.Builder connectionParams(StreamableHttpServerParameters connectionParams) -
mcpSessionManager
@CanIgnoreReturnValue public McpToolset.Builder mcpSessionManager(McpSessionManager mcpSessionManager) -
objectMapper
@CanIgnoreReturnValue public McpToolset.Builder objectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
toolFilter
-
toolFilter
-
callToolResultMapper
@CanIgnoreReturnValue public McpToolset.Builder callToolResultMapper(@Nullable CallToolResultMapper callToolResultMapper) Sets how tools convert MCP call results into their responses. By default they return only the text content, or an error. -
build
-