Interface MCPServerConfiguration.Builder

  • Method Details

    • tools

      List of MCP tools can be used with the association.

      Parameters:
      tools - List of MCP tools can be used with the association.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tools

      List of MCP tools can be used with the association.

      Parameters:
      tools - List of MCP tools can be used with the association.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toolDetails

      List of MCP tools with their access categorization. When provided, the tool names must match those in the tools member.

      Parameters:
      toolDetails - List of MCP tools with their access categorization. When provided, the tool names must match those in the tools member.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toolDetails

      MCPServerConfiguration.Builder toolDetails(MCPToolDetail... toolDetails)

      List of MCP tools with their access categorization. When provided, the tool names must match those in the tools member.

      Parameters:
      toolDetails - List of MCP tools with their access categorization. When provided, the tool names must match those in the tools member.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toolDetails

      List of MCP tools with their access categorization. When provided, the tool names must match those in the tools member.

      This is a convenience method that creates an instance of the MCPToolDetail.Builder avoiding the need to create one manually via MCPToolDetail.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to toolDetails(List<MCPToolDetail>).

      Parameters:
      toolDetails - a consumer that will call methods on MCPToolDetail.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: