public class PromptMcpServerManager extends Object implements McpServerManager<FunctionPrompt>
| Constructor and Description |
|---|
PromptMcpServerManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(McpSyncServer server,
McpServer.SyncSpecification mcpServerSpec,
FunctionPrompt functionPrompt)
添加
|
Collection<FunctionPrompt> |
all()
全部
|
boolean |
contains(String promptName)
是否包含
|
int |
count()
数量
|
void |
remove(McpSyncServer server,
String promptName)
移除
|
public int count()
McpServerManagercount in interface McpServerManager<FunctionPrompt>public Collection<FunctionPrompt> all()
McpServerManagerall in interface McpServerManager<FunctionPrompt>public boolean contains(String promptName)
McpServerManagercontains in interface McpServerManager<FunctionPrompt>public void remove(McpSyncServer server, String promptName)
McpServerManagerremove in interface McpServerManager<FunctionPrompt>public void add(McpSyncServer server, McpServer.SyncSpecification mcpServerSpec, FunctionPrompt functionPrompt)
McpServerManageradd in interface McpServerManager<FunctionPrompt>Copyright © 2025. All rights reserved.