类 McpSseServerInfo
java.lang.Object
com.github.codeboyzhou.mcp.declarative.server.McpServerInfo
com.github.codeboyzhou.mcp.declarative.server.McpSseServerInfo
This class is used to define the information of the MCP server with HTTP SSE support.
- 作者:
- codeboyzhou
- 另请参阅:
-
嵌套类概要
嵌套类 -
方法概要
修饰符和类型方法说明baseUrl()Returns the base URL of the MCP server.static McpSseServerInfo.Builderbuilder()Returns a new builder instance to construct aMcpSseServerInfoinstance.Returns the endpoint of the MCP server to send messages.intport()Returns the port of the MCP HTTP server.Returns the endpoint of the MCP server to receive SSE events.从类继承的方法 com.github.codeboyzhou.mcp.declarative.server.McpServerInfo
capabilities, changeNotification, instructions, name, requestTimeout, version
-
方法详细资料
-
builder
Returns a new builder instance to construct aMcpSseServerInfoinstance.- 返回:
- a new builder instance
-
baseUrl
Returns the base URL of the MCP server.- 返回:
- the base URL of the MCP server
-
messageEndpoint
Returns the endpoint of the MCP server to send messages.- 返回:
- the endpoint of the MCP server to send messages
-
sseEndpoint
Returns the endpoint of the MCP server to receive SSE events.- 返回:
- the endpoint of the MCP server to receive SSE events
-
port
public int port()Returns the port of the MCP HTTP server.- 返回:
- the port of the MCP HTTP server
-