Interface McpDescriptor.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<McpDescriptor.Builder,,McpDescriptor> SdkBuilder<McpDescriptor.Builder,,McpDescriptor> SdkPojo
- Enclosing class:
McpDescriptor
@Mutable
@NotThreadSafe
public static interface McpDescriptor.Builder
extends SdkPojo, CopyableBuilder<McpDescriptor.Builder,McpDescriptor>
-
Method Summary
Modifier and TypeMethodDescriptiondefault McpDescriptor.Builderserver(Consumer<ServerDefinition.Builder> server) The MCP server definition that describes the server configuration.server(ServerDefinition server) The MCP server definition that describes the server configuration.default McpDescriptor.Buildertools(Consumer<ToolsDefinition.Builder> tools) The MCP tools definition that describes the available tools.tools(ToolsDefinition tools) The MCP tools definition that describes the available tools.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
server
The MCP server definition that describes the server configuration.
- Parameters:
server- The MCP server definition that describes the server configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
server
The MCP server definition that describes the server configuration.
This is a convenience method that creates an instance of theServerDefinition.Builderavoiding the need to create one manually viaServerDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toserver(ServerDefinition).- Parameters:
server- a consumer that will call methods onServerDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tools
The MCP tools definition that describes the available tools.
- Parameters:
tools- The MCP tools definition that describes the available tools.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tools
The MCP tools definition that describes the available tools.
This is a convenience method that creates an instance of theToolsDefinition.Builderavoiding the need to create one manually viaToolsDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totools(ToolsDefinition).- Parameters:
tools- a consumer that will call methods onToolsDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-