Class McpServerInfo
java.lang.Object
com.github.thought2code.mcp.annotated.server.McpServerInfo
- Direct Known Subclasses:
McpSseServerInfo,McpStreamableServerInfo
Deprecated, for removal: This API element is subject to removal in a future version.
This class is used to define the common configuration for the MCP server.
- Author:
- codeboyzhou
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classMcpServerInfo.Builder<T extends McpServerInfo.Builder<T>>Deprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMcpServerInfo(McpServerInfo.Builder<?> builder) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new instance ofMcpServerInfowith the specified builder. -
Method Summary
Modifier and TypeMethodDescriptionstatic McpServerInfo.Builder<?>builder()Deprecated, for removal: This API element is subject to removal in a future version.Returns a new instance ofBuilderto create aMcpServerInfoinstance.Deprecated, for removal: This API element is subject to removal in a future version.Returns the capabilities of the MCP server.Deprecated, for removal: This API element is subject to removal in a future version.Returns the change notification of the MCP server.Deprecated, for removal: This API element is subject to removal in a future version.Returns the instructions of the MCP server.name()Deprecated, for removal: This API element is subject to removal in a future version.Returns the name of the MCP server.Deprecated, for removal: This API element is subject to removal in a future version.Returns the request timeout of the MCP server.version()Deprecated, for removal: This API element is subject to removal in a future version.Returns the version of the MCP server.
-
Constructor Details
-
McpServerInfo
Deprecated, for removal: This API element is subject to removal in a future version.Creates a new instance ofMcpServerInfowith the specified builder.- Parameters:
builder- the builder to use
-
-
Method Details
-
builder
Deprecated, for removal: This API element is subject to removal in a future version.Returns a new instance ofBuilderto create aMcpServerInfoinstance.- Returns:
- a new instance of
Builder
-
name
Deprecated, for removal: This API element is subject to removal in a future version.Returns the name of the MCP server.- Returns:
- the name of the MCP server
-
version
Deprecated, for removal: This API element is subject to removal in a future version.Returns the version of the MCP server.- Returns:
- the version of the MCP server
-
instructions
Deprecated, for removal: This API element is subject to removal in a future version.Returns the instructions of the MCP server.- Returns:
- the instructions of the MCP server
-
requestTimeout
Deprecated, for removal: This API element is subject to removal in a future version.Returns the request timeout of the MCP server.- Returns:
- the request timeout of the MCP server
-
capabilities
Deprecated, for removal: This API element is subject to removal in a future version.Returns the capabilities of the MCP server.- Returns:
- the capabilities of the MCP server
-
changeNotification
Deprecated, for removal: This API element is subject to removal in a future version.Returns the change notification of the MCP server.- Returns:
- the change notification of the MCP server
-