appium-mcp 1.95.0 → 1.95.1
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
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [1.95.1](https://github.com/appium/appium-mcp/compare/v1.95.0...v1.95.1) (2026-09-26)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **session:** use remotePath and payload for mobile file commands ([#547](https://github.com/appium/appium-mcp/issues/547)) ([eef6fea](https://github.com/appium/appium-mcp/commit/eef6fea767df0909f462afd1ed0e8fb64b11b5ac))
|
|
6
|
+
|
|
1
7
|
## [1.95.0](https://github.com/appium/appium-mcp/compare/v1.94.3...v1.95.0) (2026-09-25)
|
|
2
8
|
|
|
3
9
|
### Features
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-transfer.d.ts","sourceRoot":"","sources":["../../../src/tools/session/file-transfer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,OAAO,EAAC,MAAM,SAAS,CAAC;AAgCpD,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"file-transfer.d.ts","sourceRoot":"","sources":["../../../src/tools/session/file-transfer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,OAAO,EAAC,MAAM,SAAS,CAAC;AAgCpD,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CA0D1D"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { execute } from '../../command.js';
|
|
3
|
-
import { getPlatformName
|
|
3
|
+
import { getPlatformName } from '../../session-store.js';
|
|
4
4
|
import { resolveDriver, textResult, errorResult, toolErrorMessage } from '../tool-response.js';
|
|
5
5
|
/**
|
|
6
6
|
* Normalize the return value of mobile: pullFile (driver may return a string
|
|
@@ -44,46 +44,23 @@ export default function fileTransfer(server) {
|
|
|
44
44
|
}
|
|
45
45
|
const { driver } = resolved;
|
|
46
46
|
try {
|
|
47
|
-
const platform = getPlatformName(driver);
|
|
48
47
|
if (args.action === 'push') {
|
|
49
48
|
if (!args.payloadBase64) {
|
|
50
49
|
return errorResult('payloadBase64 is required when action is push');
|
|
51
50
|
}
|
|
52
|
-
|
|
53
|
-
await execute(driver, 'mobile: pushFile', {
|
|
54
|
-
path: args.remotePath,
|
|
55
|
-
data: args.payloadBase64,
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
else if (platform === PLATFORM.ios) {
|
|
59
|
-
await execute(driver, 'mobile: pushFile', {
|
|
60
|
-
remotePath: args.remotePath,
|
|
61
|
-
payload: args.payloadBase64,
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
return errorResult(`Unsupported platform: ${platform}. Only Android and iOS are supported.`);
|
|
66
|
-
}
|
|
67
|
-
return textResult(`Successfully pushed file to device path: ${args.remotePath}`);
|
|
68
|
-
}
|
|
69
|
-
let raw;
|
|
70
|
-
if (platform === PLATFORM.android) {
|
|
71
|
-
raw = await execute(driver, 'mobile: pullFile', {
|
|
72
|
-
path: args.remotePath,
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
else if (platform === PLATFORM.ios) {
|
|
76
|
-
raw = await execute(driver, 'mobile: pullFile', {
|
|
51
|
+
await execute(driver, 'mobile: pushFile', {
|
|
77
52
|
remotePath: args.remotePath,
|
|
53
|
+
payload: args.payloadBase64,
|
|
78
54
|
});
|
|
55
|
+
return textResult(`Successfully pushed file to device path: ${args.remotePath}`);
|
|
79
56
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
57
|
+
const raw = await execute(driver, 'mobile: pullFile', {
|
|
58
|
+
remotePath: args.remotePath,
|
|
59
|
+
});
|
|
83
60
|
const base64 = normalizePullResult(raw);
|
|
84
61
|
return textResult(JSON.stringify({
|
|
85
62
|
remotePath: args.remotePath,
|
|
86
|
-
platform,
|
|
63
|
+
platform: getPlatformName(driver),
|
|
87
64
|
contentBase64: base64,
|
|
88
65
|
}));
|
|
89
66
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-transfer.js","sourceRoot":"","sources":["../../../src/tools/session/file-transfer.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAC,OAAO,EAAC,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"file-transfer.js","sourceRoot":"","sources":["../../../src/tools/session/file-transfer.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAC,OAAO,EAAC,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAC,eAAe,EAAC,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAC,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AAE7F;;;GAGG;AACH,SAAS,mBAAmB,CAAC,MAAe;IAC1C,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;QAC/B,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,IACE,MAAM;QACN,OAAO,MAAM,KAAK,QAAQ;QAC1B,OAAO,IAAI,MAAM;QACjB,OAAQ,MAA2B,CAAC,KAAK,KAAK,QAAQ,EACtD,CAAC;QACD,OAAQ,MAA0B,CAAC,KAAK,CAAC;IAC3C,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC;AAC9B,CAAC;AAED,MAAM,qBAAqB,GACzB,kCAAkC;IAClC,2GAA2G;IAC3G,uFAAuF;IACvF,yEAAyE,CAAC;AAE5E,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,MAAe;IAClD,MAAM,M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a;qBAC5B,CAAC,CAAC;oBAEH,OAAO,UAAU,CAAC,4CAA4C,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;gBACnF,CAAC;gBAED,MAAM,GAAG,GAAG,MAAM,OAAO,CAAC,MAAM,EAAE,kBAAkB,EAAE;oBACpD,UAAU,EAAE,IAAI,CAAC,UAAU;iBAC5B,CAAC,CAAC;gBAEH,MAAM,MAAM,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAAC;gBACxC,OAAO,UAAU,CACf,IAAI,CAAC,SAAS,CAAC;oBACb,UAAU,EAAE,IAAI,CAAC,UAAU;oBAC3B,QAAQ,EAAE,eAAe,CAAC,MAAM,CAAC;oBACjC,aAAa,EAAE,MAAM;iBACtB,CAAC,CACH,CAAC;YACJ,CAAC;YAAC,OAAO,GAAY,EAAE,CAAC;gBACtB,OAAO,WAAW,CAAC,sBAAsB,IAAI,CAAC,MAAM,UAAU,gBAAgB,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YACzF,CAAC;QACH,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "appium-mcp",
|
|
3
|
-
"version": "1.95.
|
|
3
|
+
"version": "1.95.1",
|
|
4
4
|
"description": "Intelligent MCP server providing AI assistants with powerful tools and resources for Appium mobile automation",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/appium/appium-mcp/issues"
|
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.95.
|
|
6
|
+
"version": "1.95.1",
|
|
7
7
|
"packages": [
|
|
8
8
|
{
|
|
9
9
|
"registryType": "npm",
|
|
10
10
|
"identifier": "appium-mcp",
|
|
11
|
-
"version": "1.95.
|
|
11
|
+
"version": "1.95.1",
|
|
12
12
|
"transport": {
|
|
13
13
|
"type": "stdio"
|
|
14
14
|
}
|
|
@@ -2,7 +2,7 @@ import type {ContentResult, FastMCP} from 'fastmcp';
|
|
|
2
2
|
import {z} from 'zod';
|
|
3
3
|
|
|
4
4
|
import {execute} from '../../command.js';
|
|
5
|
-
import {getPlatformName
|
|
5
|
+
import {getPlatformName} from '../../session-store.js';
|
|
6
6
|
import {resolveDriver, textResult, errorResult, toolErrorMessage} from '../tool-response.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -58,48 +58,28 @@ export default function fileTransfer(server: FastMCP): void {
|
|
|
58
58
|
const {driver} = resolved;
|
|
59
59
|
|
|
60
60
|
try {
|
|
61
|
-
const platform = getPlatformName(driver);
|
|
62
|
-
|
|
63
61
|
if (args.action === 'push') {
|
|
64
62
|
if (!args.payloadBase64) {
|
|
65
63
|
return errorResult('payloadBase64 is required when action is push');
|
|
66
64
|
}
|
|
67
65
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
});
|
|
73
|
-
} else if (platform === PLATFORM.ios) {
|
|
74
|
-
await execute(driver, 'mobile: pushFile', {
|
|
75
|
-
remotePath: args.remotePath,
|
|
76
|
-
payload: args.payloadBase64,
|
|
77
|
-
});
|
|
78
|
-
} else {
|
|
79
|
-
return errorResult(`Unsupported platform: ${platform}. Only Android and iOS are supported.`);
|
|
80
|
-
}
|
|
66
|
+
await execute(driver, 'mobile: pushFile', {
|
|
67
|
+
remotePath: args.remotePath,
|
|
68
|
+
payload: args.payloadBase64,
|
|
69
|
+
});
|
|
81
70
|
|
|
82
71
|
return textResult(`Successfully pushed file to device path: ${args.remotePath}`);
|
|
83
72
|
}
|
|
84
73
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
path: args.remotePath,
|
|
89
|
-
});
|
|
90
|
-
} else if (platform === PLATFORM.ios) {
|
|
91
|
-
raw = await execute(driver, 'mobile: pullFile', {
|
|
92
|
-
remotePath: args.remotePath,
|
|
93
|
-
});
|
|
94
|
-
} else {
|
|
95
|
-
return errorResult(`Unsupported platform: ${platform}. Only Android and iOS are supported.`);
|
|
96
|
-
}
|
|
74
|
+
const raw = await execute(driver, 'mobile: pullFile', {
|
|
75
|
+
remotePath: args.remotePath,
|
|
76
|
+
});
|
|
97
77
|
|
|
98
78
|
const base64 = normalizePullResult(raw);
|
|
99
79
|
return textResult(
|
|
100
80
|
JSON.stringify({
|
|
101
81
|
remotePath: args.remotePath,
|
|
102
|
-
platform,
|
|
82
|
+
platform: getPlatformName(driver),
|
|
103
83
|
contentBase64: base64,
|
|
104
84
|
}),
|
|
105
85
|
);
|