Class McpServerInfo
java.lang.Object
com.github.thought2code.mcp.annotated.server.McpServerInfo
- Direct Known Subclasses:
McpSseServerInfo,McpStreamableServerInfo
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>>The builder class forMcpServerInfo. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMcpServerInfo(McpServerInfo.Builder<?> builder) Creates a new instance ofMcpServerInfowith the specified builder. -
Method Summary
Modifier and TypeMethodDescriptionstatic McpServerInfo.Builder<?>builder()Returns a new instance ofBuilderto create aMcpServerInfoinstance.Returns the capabilities of the MCP server.Returns the change notification of the MCP server.Returns the instructions of the MCP server.name()Returns the name of the MCP server.Returns the request timeout of the MCP server.version()Returns the version of the MCP server.
-
Constructor Details
-
McpServerInfo
Creates a new instance ofMcpServerInfowith the specified builder.- Parameters:
builder- the builder to use
-
-
Method Details
-
builder
Returns a new instance ofBuilderto create aMcpServerInfoinstance.- Returns:
- a new instance of
Builder
-
name
Returns the name of the MCP server.- Returns:
- the name of the MCP server
-
version
Returns the version of the MCP server.- Returns:
- the version of the MCP server
-
instructions
Returns the instructions of the MCP server.- Returns:
- the instructions of the MCP server
-
requestTimeout
Returns the request timeout of the MCP server.- Returns:
- the request timeout of the MCP server
-
capabilities
Returns the capabilities of the MCP server.- Returns:
- the capabilities of the MCP server
-
changeNotification
Returns the change notification of the MCP server.- Returns:
- the change notification of the MCP server
-