类 McpSseServerInfo.Builder
java.lang.Object
com.github.codeboyzhou.mcp.declarative.server.McpServerInfo.Builder<McpSseServerInfo.Builder>
com.github.codeboyzhou.mcp.declarative.server.McpSseServerInfo.Builder
- 封闭类:
- McpSseServerInfo
public static class McpSseServerInfo.Builder
extends McpServerInfo.Builder<McpSseServerInfo.Builder>
The builder class for
McpSseServerInfo.-
字段概要
从类继承的字段 com.github.codeboyzhou.mcp.declarative.server.McpServerInfo.Builder
capabilities, changeNotification, instructions, name, requestTimeout, version -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Sets the base URL of the MCP server.build()Builds a newMcpSseServerInfoinstance with the specified builder.messageEndpoint(String messageEndpoint) Sets the endpoint of the MCP server to send messages.port(int port) Sets the port of the MCP HTTP server.protected McpSseServerInfo.Builderself()Returns the self reference of the builder, which is used to chain the method calls.sseEndpoint(String sseEndpoint) Sets the endpoint of the MCP server to receive SSE events.从类继承的方法 com.github.codeboyzhou.mcp.declarative.server.McpServerInfo.Builder
capabilities, changeNotification, instructions, name, requestTimeout, version
-
构造器详细资料
-
Builder
public Builder()
-
-
方法详细资料
-
self
Returns the self reference of the builder, which is used to chain the method calls.- 覆盖:
self在类中McpServerInfo.Builder<McpSseServerInfo.Builder>- 返回:
- the self reference of the builder
-
build
Builds a newMcpSseServerInfoinstance with the specified builder.- 覆盖:
build在类中McpServerInfo.Builder<McpSseServerInfo.Builder>- 返回:
- a new
McpSseServerInfoinstance
-
baseUrl
Sets the base URL of the MCP server.- 参数:
baseUrl- the base URL of the MCP server- 返回:
- the self reference of the builder
-
messageEndpoint
Sets the endpoint of the MCP server to send messages.- 参数:
messageEndpoint- the endpoint of the MCP server to send messages- 返回:
- the self reference of the builder
-
sseEndpoint
Sets the endpoint of the MCP server to receive SSE events.- 参数:
sseEndpoint- the endpoint of the MCP server to receive SSE events- 返回:
- the self reference of the builder
-
port
Sets the port of the MCP HTTP server.- 参数:
port- the port of the MCP HTTP server- 返回:
- the self reference of the builder
-