appium-mcp 1.34.1 → 1.34.2
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.
- package/CHANGELOG.md +6 -0
- package/package.json +5 -2
- package/scripts/zip-assets.mjs +55 -0
- package/server.json +2 -2
- package/src/resources/submodules.zip +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [1.34.2](https://github.com/appium/appium-mcp/compare/v1.34.1...v1.34.2) (2026-03-23)
|
|
2
|
+
|
|
3
|
+
### Miscellaneous Chores
|
|
4
|
+
|
|
5
|
+
* add zip/unzip asserts to distribute them in small size ([#227](https://github.com/appium/appium-mcp/issues/227)) ([126f2dd](https://github.com/appium/appium-mcp/commit/126f2dd7ede8696853eb887d7310d6aa22ea8e68))
|
|
6
|
+
|
|
1
7
|
## [1.34.1](https://github.com/appium/appium-mcp/compare/v1.34.0...v1.34.1) (2026-03-23)
|
|
2
8
|
|
|
3
9
|
### Miscellaneous Chores
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "appium-mcp",
|
|
3
3
|
"mcpName": "io.github.appium/appium-mcp",
|
|
4
|
-
"version": "1.34.
|
|
4
|
+
"version": "1.34.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -36,7 +36,10 @@
|
|
|
36
36
|
"index-docs": "node dist/scripts/simple-index-documentation.js",
|
|
37
37
|
"query-docs": "node dist/scripts/simple-query-documentation.js",
|
|
38
38
|
"sync-version": "node scripts/sync-version.mjs",
|
|
39
|
-
"version": "npm run sync-version"
|
|
39
|
+
"version": "npm run sync-version",
|
|
40
|
+
"zip-assets": "node scripts/zip-assets.mjs zip",
|
|
41
|
+
"unzip-assets": "node scripts/zip-assets.mjs unzip",
|
|
42
|
+
"postinstall": "node scripts/zip-assets.mjs unzip"
|
|
40
43
|
},
|
|
41
44
|
"author": "",
|
|
42
45
|
"license": "Apache-2.0",
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import {fileURLToPath} from 'node:url';
|
|
3
|
+
import fs from 'node:fs/promises';
|
|
4
|
+
|
|
5
|
+
import {zip as appiumZip} from '@appium/support';
|
|
6
|
+
|
|
7
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
8
|
+
const __dirname = path.dirname(__filename);
|
|
9
|
+
|
|
10
|
+
// Adjust these paths for your use case
|
|
11
|
+
const ZIP_SOURCE_DIR = path.join(__dirname, '..', 'src', 'resources', 'submodules');
|
|
12
|
+
const ZIP_OUTPUT_PATH = path.join(__dirname, '..', 'src', 'resources', 'submodules.zip');
|
|
13
|
+
const UNZIP_TARGET_DIR = path.join(__dirname, '..', 'src', 'resources', 'submodules');
|
|
14
|
+
|
|
15
|
+
export async function zipAssets() {
|
|
16
|
+
const zipBase64 = await appiumZip.toInMemoryZip(ZIP_SOURCE_DIR);
|
|
17
|
+
const zipBuffer = Buffer.from(zipBase64, 'base64');
|
|
18
|
+
await fs.writeFile(ZIP_OUTPUT_PATH, zipBuffer);
|
|
19
|
+
console.log(`Zipped ${ZIP_SOURCE_DIR} -> ${ZIP_OUTPUT_PATH}`);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const fileExists = async (filePath) => {
|
|
23
|
+
try {
|
|
24
|
+
await fs.access(filePath);
|
|
25
|
+
return true;
|
|
26
|
+
} catch {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export async function unzipAssets() {
|
|
32
|
+
if (!(await fileExists(ZIP_OUTPUT_PATH))) {
|
|
33
|
+
console.log(`Target directory ${ZIP_OUTPUT_PATH} does not exist. Skipping unzip.`);
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
await appiumZip.extractAllTo(ZIP_OUTPUT_PATH, UNZIP_TARGET_DIR);
|
|
37
|
+
console.log(`Unzipped ${ZIP_OUTPUT_PATH} -> ${UNZIP_TARGET_DIR}`);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
41
|
+
const cmd = process.argv[2];
|
|
42
|
+
if (cmd === 'zip') {
|
|
43
|
+
zipAssets().catch((e) => {
|
|
44
|
+
console.error(e);
|
|
45
|
+
process.exitCode = 1;
|
|
46
|
+
});
|
|
47
|
+
} else if (cmd === 'unzip') {
|
|
48
|
+
unzipAssets().catch((e) => {
|
|
49
|
+
console.error(e);
|
|
50
|
+
process.exitCode = 1;
|
|
51
|
+
});
|
|
52
|
+
} else {
|
|
53
|
+
console.log('Usage: node zip-assets.mjs [zip|unzip]');
|
|
54
|
+
}
|
|
55
|
+
}
|
package/server.json
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"name": "io.github.appium/appium-mcp",
|
|
4
4
|
"title": "MCP Appium - Mobile Development and Automation Server",
|
|
5
5
|
"description": "MCP server for Appium mobile automation on iOS and Android devices with test creation tools.",
|
|
6
|
-
"version": "1.34.
|
|
6
|
+
"version": "1.34.2",
|
|
7
7
|
"packages": [
|
|
8
8
|
{
|
|
9
9
|
"registryType": "npm",
|
|
10
10
|
"identifier": "appium-mcp",
|
|
11
|
-
"version": "1.34.
|
|
11
|
+
"version": "1.34.2",
|
|
12
12
|
"transport": {
|
|
13
13
|
"type": "stdio"
|
|
14
14
|
}
|
|
Binary file
|