类 McpStreamableServerInfo
java.lang.Object
com.github.codeboyzhou.mcp.declarative.server.McpServerInfo
com.github.codeboyzhou.mcp.declarative.server.McpStreamableServerInfo
This class is used to define the information of the MCP server with streamable http support.
- 作者:
- codeboyzhou
- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型类说明static classThe builder class forMcpStreamableServerInfo. -
方法概要
修饰符和类型方法说明builder()Returns a new builder instance to construct aMcpStreamableServerInfoinstance.io.modelcontextprotocol.server.McpTransportContextExtractor<jakarta.servlet.http.HttpServletRequest>Returns the extractor to extract the transport context from the HTTP request.booleanReturns whether to disallow http delete requests.Returns the interval to send keep-alive messages.Returns the endpoint of the MCP server to send messages.intport()Returns the port of the MCP HTTP server.从类继承的方法 com.github.codeboyzhou.mcp.declarative.server.McpServerInfo
capabilities, changeNotification, instructions, name, requestTimeout, version
-
方法详细资料
-
builder
Returns a new builder instance to construct aMcpStreamableServerInfoinstance.- 返回:
- a new builder instance
-
port
public int port()Returns the port of the MCP HTTP server.- 返回:
- the port of the MCP HTTP server
-
mcpEndpoint
Returns the endpoint of the MCP server to send messages.- 返回:
- the endpoint of the MCP server to send messages
-
disallowDelete
public boolean disallowDelete()Returns whether to disallow http delete requests.- 返回:
- whether to disallow http delete requests
-
contextExtractor
public io.modelcontextprotocol.server.McpTransportContextExtractor<jakarta.servlet.http.HttpServletRequest> contextExtractor()Returns the extractor to extract the transport context from the HTTP request.- 返回:
- the extractor to extract the transport context from the HTTP request
-
keepAliveInterval
Returns the interval to send keep-alive messages.- 返回:
- the interval to send keep-alive messages
-