Skip to content

v5.0.0 The Xrefs Update

Latest

Choose a tag to compare

@zinja-coder zinja-coder released this 05 Dec 00:26
· 1 commit to jadx-ai since this release
4a36539

New MCP Tools:

  • xrefs-to-class - Find all references to a class
    Returns method-level references: { class, method }
    Returns class-level references: { class, method: "" }
    Supports pagination via offset and limit parameters

  • /xrefs-to-method - Find all references to a method
    Includes override-related methods for polymorphic support
    Matches JADX GUI's "Find Usage" behavior
    Supports pagination

  • /xrefs-to-field - Find all references to a field
    Returns methods that access the field
    Method field is always non-empty (field access always occurs within a method)
    Supports pagination

Bug Fix:

  • There was a bug in get_main_application_classes_code(), implmentation was missing on plugin side and on the jadx_mcp_server.py side, the json key name was mismatch, the plugin is sending the data in 'classes' but jadx_mcp_server.py was looking for some other key.

What's Changed

  • add xref feature implements by @ljt270864457 in #59
  • feat: added pagination support in get_all_resource_file_names() mcp tool by @zinja-coder in #61
  • optimize: separated pagination utils class from main jadx ai mcp file… by @zinja-coder in #62
  • Code Improvements
    • Separated PaginationUtils class to progress towards modular design.
    • **BELOW CONTRIBUTIONS ARE MADE BY @ljt270864457 **
    • Refactoring: Extracted common helper methods to reduce code duplication:
    • validateRequiredParam() - Parameter validation
    • findClassByName() - Class lookup
    • findMethodsByName() - Method lookup (supports constructors)
    • findFieldByName() - Field lookup
    • collectMethodNodeReferences() - Reference collection with deduplication
    • sendXrefsResponse() - Paginated response handling

Checksum SHA256:

  • jadx-ai-mcp-5.0.0.jar: a071a47587dc0810ecfe013f505eb893f1807e2a54573637dfbaabd1fb957f23
  • jadx-mcp-server-v5.0.0.zip: 5e7d4a4773c125d754f6d9e5a4c457116b29ac54c0ea97fc8187a187cacf4e85

Full Changelog: v4.2.0...v5.0.0