You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "terrymanu (via GitHub)" <gi...@apache.org> on 2026/07/19 12:44:43 UTC

[PR] Fix MCP E2E metadata search response pagination [shardingsphere]

terrymanu opened a new pull request, #39185:
URL: https://github.com/apache/shardingsphere/pull/39185

   Preserve complete metadata search pages in model-facing responses while retaining compact non-search responses and canonical pagination actions.


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix MCP E2E metadata search response pagination [shardingsphere]

Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu merged PR #39185:
URL: https://github.com/apache/shardingsphere/pull/39185


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix MCP E2E metadata search response pagination [shardingsphere]

Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu commented on PR #39185:
URL: https://github.com/apache/shardingsphere/pull/39185#issuecomment-5015785168

   ### Summary
   
   **Review Result: Mergeable**
   
   The change correctly preserves complete metadata search pages for model-facing responses while retaining compact list-response behavior. The result is code-scope only; CI was not reviewed by request.
   
   ### Evidence
   
   - `LLMMCPModelFacingToolResponseFormatter.java:112-131` applies the expanded-item behavior only to `response_mode=search`.
   - The production search handler limits each page to 100 items (`SearchMetadataToolHandler.java:61-66`), so the formatter does not introduce unbounded results.
   - Pagination metadata and canonical `next_actions` remain preserved by the existing formatter flow.
   - Added tests cover list truncation, complete search pages, and paginated search pages.
   
   ### Review Details
   
   - Review Focus: Code Correctness Review. CI not reviewed by request.
   - Reviewed Scope: PR head `8eda5c373f4cfa43b59acef60837340d2cb88c51`; base `e1235f2a8d858003ed72dc81d520f09e89a355c1`; merge-base matches base. Both changed files were reviewed, and the local file list matches GitHub’s PR file list.
   - Not Reviewed Scope: CI/check-run status and unrelated repository modules.
   - Verification:
     - `./mvnw -pl test/e2e/mcp -Dtest=LLMMCPModelFacingToolResponseFormatterTest test ...` — passed.
     - `./mvnw -pl test/e2e/mcp spotless:check checkstyle:check -Pcheck -T1C` — passed with 0 Checkstyle violations.
   - Release Note / User Docs: Not required; this is an internal E2E model-facing formatter and test correction.


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org