123123213weqw opened a new pull request, #2311:
URL: https://github.com/apache/rocketmq-dashboard/pull/2311

   ## What is the purpose of the change
   
   The Apache runtime provider (`RocketMQClusterProvider.buildClusterVO`) never 
populates `ClusterVO.version`. As a result the `rmq.cluster.list` and 
`rmq.capabilities` MCP tools projected a null value into the output schema's 
required `"version"` string field, causing output-schema validation to throw 
and surface the whole tool call as HTTP 500.
   
   ## Brief changelog
   
   - `ClusterListToolHandler.safeProjection` and 
`CapabilitiesToolHandler.execute` now project null `id` / `type` / `version` 
members to blank strings, so the output always satisfies the declared JSON 
schema for cluster list and capabilities.
   - Added `ClusterListToolHandlerTest` (null-version -> blank string, 
populated version passthrough) and `CapabilitiesToolHandlerTest` (null-version 
-> blank string).
   
   ## How was this patch verified
   
   - `mvn -Dtest=ClusterListToolHandlerTest,CapabilitiesToolHandlerTest test` 
-> 3/3 passed
   - `git diff --check` clean
   


-- 
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]

Reply via email to