类 McpServerBasicInfo
java.lang.Object
com.alibaba.nacos.api.ai.model.mcp.McpServerBasicInfo
- 直接已知子类:
McpServerDetailInfo
AI Mcp server spec in nacos.
- 作者:
- xiweng.yy
-
字段概要
字段修饰符和类型字段说明private List<McpCapability> Auto discovery capabilities by Nacos.private Map<String, AiCredential> private Stringprivate booleanShould be set when `type` isAiConstants.Mcp.MCP_PROTOCOL_STDIO.private Stringprivate Stringprivate McpServerRemoteServiceConfigShould be set when `type` is notAiConstants.Mcp.MCP_PROTOCOL_STDIO.private String -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明getName()booleanvoidsetCapabilities(List<McpCapability> capabilities) voidsetCredentials(Map<String, AiCredential> credentials) voidsetDescription(String description) voidsetEnabled(boolean enabled) voidsetLocalServerConfig(Map<String, Object> localServerConfig) voidvoidsetProtocol(String protocol) voidsetRemoteServerConfig(McpServerRemoteServiceConfig remoteServerConfig) voidsetVersion(String version)
-
字段详细资料
-
name
-
protocol
-
description
-
version
-
remoteServerConfig
Should be set when `type` is notAiConstants.Mcp.MCP_PROTOCOL_STDIO. -
localServerConfig
Should be set when `type` isAiConstants.Mcp.MCP_PROTOCOL_STDIO. -
credentials
-
enabled
private boolean enabled -
capabilities
Auto discovery capabilities by Nacos. No need to set when create or update Mcp server.
-
-
构造器详细资料
-
McpServerBasicInfo
public McpServerBasicInfo()
-
-
方法详细资料
-
getName
-
setName
-
getProtocol
-
setProtocol
-
getDescription
-
setDescription
-
getVersion
-
setVersion
-
getRemoteServerConfig
-
setRemoteServerConfig
-
getLocalServerConfig
-
setLocalServerConfig
-
getCredentials
-
setCredentials
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getCapabilities
-
setCapabilities
-