Class McpServerConfiguration.Builder
java.lang.Object
com.github.thought2code.mcp.annotated.configuration.McpServerConfiguration.Builder
- Enclosing class:
- McpServerConfiguration
Builder class for
McpServerConfiguration.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a new instance ofMcpServerConfiguration.capabilities(McpServerCapabilities capabilities) Sets the server capabilities.changeNotification(McpServerChangeNotification changeNotification) Sets the change notification configuration.Sets the enabled status.instructions(String instructions) Sets the server instructions.mode(ServerMode mode) Sets the server mode.Sets the server name.Sets the profile.requestTimeout(Long requestTimeout) Sets the request timeout.sse(McpServerSSE sse) Sets the SSE configuration.streamable(McpServerStreamable streamable) Sets the streamable configuration.type(ServerType type) Sets the server type.Sets the server version.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
profile
Sets the profile.- Parameters:
profile- The profile.- Returns:
- This builder instance.
-
enabled
Sets the enabled status.- Parameters:
enabled- The enabled status.- Returns:
- This builder instance.
-
mode
Sets the server mode.- Parameters:
mode- The server mode.- Returns:
- This builder instance.
-
name
Sets the server name.- Parameters:
name- The server name.- Returns:
- This builder instance.
-
version
Sets the server version.- Parameters:
version- The server version.- Returns:
- This builder instance.
-
type
Sets the server type.- Parameters:
type- The server type.- Returns:
- This builder instance.
-
instructions
Sets the server instructions.- Parameters:
instructions- The server instructions.- Returns:
- This builder instance.
-
requestTimeout
Sets the request timeout.- Parameters:
requestTimeout- The request timeout.- Returns:
- This builder instance.
-
capabilities
Sets the server capabilities.- Parameters:
capabilities- The server capabilities.- Returns:
- This builder instance.
-
changeNotification
public McpServerConfiguration.Builder changeNotification(McpServerChangeNotification changeNotification) Sets the change notification configuration.- Parameters:
changeNotification- The change notification configuration.- Returns:
- This builder instance.
-
sse
Sets the SSE configuration.- Parameters:
sse- The SSE configuration.- Returns:
- This builder instance.
-
streamable
Sets the streamable configuration.- Parameters:
streamable- The streamable configuration.- Returns:
- This builder instance.
-
build
Builds a new instance ofMcpServerConfiguration.- Returns:
- A new instance of
McpServerConfiguration.
-