Repository navigation
Architecture and Security
arrteann edited this page Nov 14, 2026
·
1 revision
Unlike multi-process Python/Node bridges or heavy fat-JAR plugins, jadx-mcp runs in-process inside JADX using:
- A pure Java 11
ServerSocketHTTP/1.1 engine (no Jetty, Netty, Javalin, orjdk.httpserver, which is absent in official JADX bundled JREs on Windows and macOS). - JADX's own bundled
GsonandSLF4Jdependencies (compileOnlyat build time, keeping the plugin JAR ~100 KB). - Streamable HTTP MCP transport (
POST /mcp,GET /mcpSSE stream / health,DELETE /mcpsession termination).
Decompiler optimizations (such as method inlining or dead-code elimination) can hide call edges in Java source output. To preserve accuracy, get_callees, get_xrefs, search_strings, find_sink_call_sites, and find_jni_methods inspect JADX's raw bytecode instructions (ICodeReader) and class/method metadata directly—often without triggering full class decompilation.
-
Loopback-only binding: The server binds exclusively to
127.0.0.1(InetAddress.getLoopbackAddress()). -
DNS rebinding protection: Incoming
HostandOriginheaders are validated so onlylocalhost,127.0.0.1, or[::1]origins/hosts are accepted. -
Optional Bearer token: When
jadx-mcp.tokenis configured, requests must supplyAuthorization: Bearer <token>, verified using constant-time comparison (MessageDigest.isEqual). -
XXE-safe manifest parsing:
get_attack_surfaceconfiguresDocumentBuilderFactorywith external DTDs and entity expansion disabled. -
Non-invalidating options: All plugin options use
OptionFlag.NOT_CHANGING_CODE, so toggling ports or tokens never invalidates JADX's decompilation cache.
In jadx-gui, Plugins → JADX MCP Server Status displays:
- Server state, bound
127.0.0.1:<port>endpoint, and auth status. - Counts of registered tools, prompts, and resources.
- A bounded Recent Tool Activity feed (last 10 tool calls with timestamp, status, and duration).