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, containing the server configuration and schema as defined by the MCP protocol specification.server(ServerDefinition server) The MCP server definition, containing the server configuration and schema as defined by the MCP protocol specification.default McpDescriptor.Buildertools(Consumer<ToolsDefinition.Builder> tools) The MCP tools definition, containing the tools available on the MCP server as defined by the MCP protocol specification.tools(ToolsDefinition tools) The MCP tools definition, containing the tools available on the MCP server as defined by the MCP protocol specification.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, containing the server configuration and schema as defined by the MCP protocol specification.
- Parameters:
server- The MCP server definition, containing the server configuration and schema as defined by the MCP protocol specification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
server
The MCP server definition, containing the server configuration and schema as defined by the MCP protocol specification.
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, containing the tools available on the MCP server as defined by the MCP protocol specification.
- Parameters:
tools- The MCP tools definition, containing the tools available on the MCP server as defined by the MCP protocol specification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tools
The MCP tools definition, containing the tools available on the MCP server as defined by the MCP protocol specification.
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:
-