Class McpReadOnlyToolReconciler
java.lang.Object
com.xebialabs.xlrelease.mcp.config.McpReadOnlyToolReconciler
Keeps the MCP server's advertised
tools/list in sync with the "read-only mode" feature setting,
cluster-wide and without a restart.-
Constructor Summary
ConstructorsConstructorDescriptionMcpReadOnlyToolReconciler(io.modelcontextprotocol.server.McpSyncServer server, List<io.modelcontextprotocol.server.McpServerFeatures.SyncToolSpecification> allSpecs) -
Method Summary
Modifier and TypeMethodDescriptionvoidonMcpFeatureCreate(com.xebialabs.xlrelease.domain.distributed.events.DistributedConfigurationCreatedEvent event) voidonMcpFeatureUpdate(com.xebialabs.xlrelease.domain.distributed.events.DistributedConfigurationUpdatedEvent event) voidstart()
-
Constructor Details
-
McpReadOnlyToolReconciler
public McpReadOnlyToolReconciler(io.modelcontextprotocol.server.McpSyncServer server, List<io.modelcontextprotocol.server.McpServerFeatures.SyncToolSpecification> allSpecs)
-
-
Method Details
-
start
@PostConstruct public void start() -
onMcpFeatureCreate
public void onMcpFeatureCreate(com.xebialabs.xlrelease.domain.distributed.events.DistributedConfigurationCreatedEvent event) -
onMcpFeatureUpdate
public void onMcpFeatureUpdate(com.xebialabs.xlrelease.domain.distributed.events.DistributedConfigurationUpdatedEvent event)
-