类 McpServerInfo
java.lang.Object
com.github.codeboyzhou.mcp.declarative.server.McpServerInfo
- 直接已知子类:
McpSseServerInfo,McpStreamableServerInfo
This class is used to define the common configuration for the MCP server.
- 作者:
- codeboyzhou
-
嵌套类概要
嵌套类修饰符和类型类说明static classMcpServerInfo.Builder<T extends McpServerInfo.Builder<T>>The builder class forMcpServerInfo. -
构造器概要
构造器限定符构造器说明protectedMcpServerInfo(McpServerInfo.Builder<?> builder) Creates a new instance ofMcpServerInfowith the specified builder. -
方法概要
修饰符和类型方法说明static 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.
-
构造器详细资料
-
McpServerInfo
Creates a new instance ofMcpServerInfowith the specified builder.- 参数:
builder- the builder to use
-
-
方法详细资料
-
builder
Returns a new instance ofBuilderto create aMcpServerInfoinstance.- 返回:
- a new instance of
Builder
-
name
Returns the name of the MCP server.- 返回:
- the name of the MCP server
-
version
Returns the version of the MCP server.- 返回:
- the version of the MCP server
-
instructions
Returns the instructions of the MCP server.- 返回:
- the instructions of the MCP server
-
requestTimeout
Returns the request timeout of the MCP server.- 返回:
- the request timeout of the MCP server
-
capabilities
Returns the capabilities of the MCP server.- 返回:
- the capabilities of the MCP server
-
changeNotification
Returns the change notification of the MCP server.- 返回:
- the change notification of the MCP server
-