Aias00 opened a new pull request, #4148: URL: https://github.com/apache/rocketmq-dashboard/pull/4148
## Summary - add optional `page`, `pageSize`, and `includeBody` inputs to `rmq.message.query` - use the existing paged MessageService path with defaults of page 1 and 20 items - return `items`, `total`, `page`, `size`, and `resultMayBeTruncated` - omit `body`, `bodyEncoding`, and `bodyTruncated` by default; include them only when requested - cap schema-driven page sizes at 100 ## Compatibility The output changes from a raw array to the same paged envelope already used by `rmq.topic.list` and `rmq.group.list`. The canonical input/output schema changes together with the handler, so schema-driven MCP and CLI callers receive the new contract consistently. Query filters, permission, risk level, and provider behavior are unchanged. ## TDD evidence Before implementation, the new tests failed because the handler returned an unpaged array with message bodies and the catalog did not advertise the new inputs. The minimal implementation made those contracts pass. ## Verification - `mvn -B -ntp -f server/pom.xml -Dtest=MessageQueryToolHandlerTest,ToolCatalogTest,MessageServiceTest,ToolGatewayServiceTest test` — 63 tests passed - `mvn -B -ntp -f server/pom.xml -DskipTests package` - Checkstyle — 0 violations - `git diff --check` Closes #4147 -- 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]
