jadx-mcp 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/bin/cli.js +42 -0
  2. package/jadx-mcp.jar +0 -0
  3. package/package.json +28 -0
package/bin/cli.js ADDED
@@ -0,0 +1,42 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { spawn } = require('child_process');
4
+ const path = require('path');
5
+ const fs = require('fs');
6
+
7
+ /**
8
+ * jadx-mcp CLI Wrapper
9
+ * This script launches the JAR file with the system's Java Runtime.
10
+ */
11
+
12
+ const jarName = 'jadx-mcp.jar';
13
+ const jarPath = path.join(__dirname, '..', jarName);
14
+
15
+ // 1. Basic check for JAR existence
16
+ if (!fs.existsSync(jarPath)) {
17
+ console.error(`Error: ${jarName} not found at ${jarPath}`);
18
+ console.error('Please run "./gradlew prepareNpm" in the project root first.');
19
+ process.exit(1);
20
+ }
21
+
22
+ // 2. Execute Java
23
+ const args = ['-jar', jarPath, ...process.argv.slice(2)];
24
+
25
+ // Use 'java' from PATH
26
+ const child = spawn('java', args, {
27
+ stdio: 'inherit',
28
+ windowsHide: true
29
+ });
30
+
31
+ child.on('error', (err) => {
32
+ if (err.code === 'ENOENT') {
33
+ console.error('Error: "java" command not found. Please install Java (JRE 17+) and add it to your PATH.');
34
+ } else {
35
+ console.error('Failed to start jadx-mcp:', err.message);
36
+ }
37
+ process.exit(1);
38
+ });
39
+
40
+ child.on('exit', (code) => {
41
+ process.exit(code || 0);
42
+ });
package/jadx-mcp.jar ADDED
Binary file
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "jadx-mcp",
3
+ "version": "1.1.0",
4
+ "description": "Jadx MCP server - Analyze Android apps with AI agents using Model Context Protocol",
5
+ "main": "bin/cli.js",
6
+ "bin": {
7
+ "jadx-mcp": "bin/cli.js"
8
+ },
9
+ "keywords": [
10
+ "jadx",
11
+ "mcp",
12
+ "android",
13
+ "reverse-engineering",
14
+ "decompiler",
15
+ "ai",
16
+ "claude"
17
+ ],
18
+ "author": "skylot",
19
+ "license": "Apache-2.0",
20
+ "engines": {
21
+ "node": ">=14"
22
+ },
23
+ "files": [
24
+ "bin/",
25
+ "jadx-mcp.jar",
26
+ "README.md"
27
+ ]
28
+ }