X-LightYear opened a new pull request, #7303: URL: https://github.com/apache/rocketmq-dashboard/pull/7303
## Summary - constrain `rmq.cluster.list` status input to the statuses implemented by the handler - keep the server YAML catalog and generated rmqctl catalog consistent - add deterministic runtime schema coverage for unsupported status values ## Root cause The handler filters against the `ClusterStatus` enum, but the MCP input schema declared `status` as an arbitrary non-empty string. Unsupported values were therefore accepted and silently returned no matching clusters. ## Fix Add the supported enum values `healthy`, `warning`, `error`, and `offline` to the tool catalog and regenerate the rmqctl catalog. ## Testing - `ToolCatalogTest#clusterListRejectsUnknownStatusThroughTheRuntimeSchemaTest` - `ToolCatalogTest`, `ClusterListToolHandlerTest`, `ToolOutputSchemaContractTest`: 13 passed - `go test ./internal/catalog/...`: passed - checkstyle: 0 violations - `git diff --check`: passed Fixes #7302 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
