public class McpServerEndpointProvider extends Object implements org.noear.solon.core.bean.LifecycleBean
| Modifier and Type | Class and Description |
|---|---|
static class |
McpServerEndpointProvider.Builder |
| Constructor and Description |
|---|
McpServerEndpointProvider(McpServerProperties serverProperties) |
McpServerEndpointProvider(Properties properties) |
public McpServerEndpointProvider(Properties properties)
public McpServerEndpointProvider(McpServerProperties serverProperties)
@Nullable public McpSyncServer getServer()
public String getName()
public String getVersion()
public String getChannel()
public String getSseEndpoint()
public String getMessageEndpoint()
public void setLoggingLevel(McpSchema.LoggingLevel loggingLevel)
public void addResource(FunctionResource functionResource)
public void addResource(ResourceProvider resourceProvider)
public boolean hasResource(String resourceUri)
public void removeResource(String resourceUri)
public void removeResource(ResourceProvider resourceProvider)
public Collection<FunctionResource> getResources()
public void addPrompt(FunctionPrompt functionPrompt)
public void addPrompt(PromptProvider promptProvider)
public boolean hasPrompt(String promptName)
public void removePrompt(String promptName)
public void removePrompt(PromptProvider promptProvider)
public Collection<FunctionPrompt> getPrompts()
public void addTool(FunctionTool functionTool)
public void addTool(ToolProvider toolProvider)
public boolean hasTool(String toolName)
public void removeTool(String toolName)
public void removeTool(ToolProvider toolProvider)
public Collection<FunctionTool> getTools()
public void start()
start in interface org.noear.solon.core.bean.LifecycleBeanstart in interface org.noear.solon.core.Lifecyclepublic void postStart()
postStart in interface org.noear.solon.core.Lifecyclepublic boolean pause()
public boolean resume()
public void stop()
stop in interface org.noear.solon.core.Lifecyclepublic static McpServerEndpointProvider.Builder builder()
Copyright © 2025. All rights reserved.