digital-ai-testing-mcp 1.2.2 → 1.2.5

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 (51) hide show
  1. package/LICENSE +197 -197
  2. package/README.md +1009 -984
  3. package/dist/api/browser-inspection.js +48 -48
  4. package/dist/index.js +22 -20
  5. package/dist/index.js.map +1 -1
  6. package/dist/tools/application-tools.d.ts.map +1 -1
  7. package/dist/tools/application-tools.js +19 -13
  8. package/dist/tools/application-tools.js.map +1 -1
  9. package/dist/tools/boilerplate-tools.d.ts.map +1 -1
  10. package/dist/tools/boilerplate-tools.js +2 -1
  11. package/dist/tools/boilerplate-tools.js.map +1 -1
  12. package/dist/tools/debug-tools.d.ts.map +1 -1
  13. package/dist/tools/debug-tools.js +4 -1
  14. package/dist/tools/debug-tools.js.map +1 -1
  15. package/dist/tools/device-tools.js +5 -5
  16. package/dist/tools/device-tools.js.map +1 -1
  17. package/dist/tools/inspection-tools.d.ts.map +1 -1
  18. package/dist/tools/inspection-tools.js +4 -1
  19. package/dist/tools/inspection-tools.js.map +1 -1
  20. package/dist/tools/meta-tools.d.ts.map +1 -1
  21. package/dist/tools/meta-tools.js +7 -6
  22. package/dist/tools/meta-tools.js.map +1 -1
  23. package/dist/tools/provisioning-profile-tools.d.ts.map +1 -1
  24. package/dist/tools/provisioning-profile-tools.js +10 -11
  25. package/dist/tools/provisioning-profile-tools.js.map +1 -1
  26. package/dist/tools/reporting-tools.d.ts.map +1 -1
  27. package/dist/tools/reporting-tools.js +6 -9
  28. package/dist/tools/reporting-tools.js.map +1 -1
  29. package/dist/tools/repository-tools.d.ts.map +1 -1
  30. package/dist/tools/repository-tools.js +10 -11
  31. package/dist/tools/repository-tools.js.map +1 -1
  32. package/dist/tools/usage-report-tools.d.ts.map +1 -1
  33. package/dist/tools/usage-report-tools.js +12 -8
  34. package/dist/tools/usage-report-tools.js.map +1 -1
  35. package/dist/tools/workflow-tools.d.ts.map +1 -1
  36. package/dist/tools/workflow-tools.js +3 -2
  37. package/dist/tools/workflow-tools.js.map +1 -1
  38. package/dist/utils/deployment-mode.d.ts +20 -0
  39. package/dist/utils/deployment-mode.d.ts.map +1 -0
  40. package/dist/utils/deployment-mode.js +24 -0
  41. package/dist/utils/deployment-mode.js.map +1 -0
  42. package/dist/utils/locality.d.ts +15 -4
  43. package/dist/utils/locality.d.ts.map +1 -1
  44. package/dist/utils/locality.js +78 -16
  45. package/dist/utils/locality.js.map +1 -1
  46. package/package.json +73 -73
  47. package/resources/boilerplate/Android-Native/Java JUnit5/maven +42 -42
  48. package/resources/boilerplate/Android-Native/NodeJS (WebDriver)/AndroidNative.js +29 -29
  49. package/resources/boilerplate/Android-Native/java TestNG/maven +42 -42
  50. package/resources/boilerplate/iOS-Native/NodeJS (WebDriver)/iOSNative.js +29 -29
  51. package/resources/boilerplate/iOS-Native/java-TestNG/maven +42 -42
@@ -0,0 +1,20 @@
1
+ export type DeploymentMode = 'docker' | 'local' | 'http';
2
+ /**
3
+ * 'docker' (default) — server runs in a container or other remote/sandboxed
4
+ * host; its filesystem is NOT the caller's. This is the safe default for
5
+ * any unset or unrecognized value, so existing Docker/GHCR deployments see
6
+ * no behavior change.
7
+ * 'local' — server runs directly on the user's own machine (the npm
8
+ * package's install path). Its filesystem IS the caller's.
9
+ * 'http' — reserved for a future HTTP-transport distribution; not yet
10
+ * implemented. Falls back to the cautious 'docker' framing until it is.
11
+ *
12
+ * Reads process.env directly rather than caching — deployment mode doesn't
13
+ * change within a real process's lifetime, so there's no hot-path cost to
14
+ * worry about, and staying uncached keeps this trivially testable under both
15
+ * modes in the same test run.
16
+ */
17
+ export declare function getDeploymentMode(): DeploymentMode;
18
+ /** True only when the server's filesystem is verifiably the caller's own machine. */
19
+ export declare function isLocalFilesystem(): boolean;
20
+ //# sourceMappingURL=deployment-mode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployment-mode.d.ts","sourceRoot":"","sources":["../../src/utils/deployment-mode.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;AAEzD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,IAAI,cAAc,CAGlD;AAED,qFAAqF;AACrF,wBAAgB,iBAAiB,IAAI,OAAO,CAE3C"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * 'docker' (default) — server runs in a container or other remote/sandboxed
3
+ * host; its filesystem is NOT the caller's. This is the safe default for
4
+ * any unset or unrecognized value, so existing Docker/GHCR deployments see
5
+ * no behavior change.
6
+ * 'local' — server runs directly on the user's own machine (the npm
7
+ * package's install path). Its filesystem IS the caller's.
8
+ * 'http' — reserved for a future HTTP-transport distribution; not yet
9
+ * implemented. Falls back to the cautious 'docker' framing until it is.
10
+ *
11
+ * Reads process.env directly rather than caching — deployment mode doesn't
12
+ * change within a real process's lifetime, so there's no hot-path cost to
13
+ * worry about, and staying uncached keeps this trivially testable under both
14
+ * modes in the same test run.
15
+ */
16
+ export function getDeploymentMode() {
17
+ const raw = (process.env.MCP_DEPLOYMENT_MODE ?? '').trim().toLowerCase();
18
+ return raw === 'local' ? 'local' : raw === 'http' ? 'http' : 'docker';
19
+ }
20
+ /** True only when the server's filesystem is verifiably the caller's own machine. */
21
+ export function isLocalFilesystem() {
22
+ return getDeploymentMode() === 'local';
23
+ }
24
+ //# sourceMappingURL=deployment-mode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployment-mode.js","sourceRoot":"","sources":["../../src/utils/deployment-mode.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,iBAAiB;IAC/B,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IACzE,OAAO,GAAG,KAAK,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC;AACxE,CAAC;AAED,qFAAqF;AACrF,MAAM,UAAU,iBAAiB;IAC/B,OAAO,iBAAiB,EAAE,KAAK,OAAO,CAAC;AACzC,CAAC"}
@@ -1,9 +1,20 @@
1
1
  /** Append to the DESCRIPTION of any tool that writes a file to a local path. */
2
- export declare const SERVER_FS_DOWNLOAD_NOTICE: string;
2
+ export declare function serverFsDownloadNotice(): string;
3
3
  /** Append to the DESCRIPTION of any tool that reads a local file to upload. */
4
- export declare const SERVER_FS_UPLOAD_NOTICE: string;
4
+ export declare function serverFsUploadNotice(): string;
5
5
  /** Use as the DESCRIBE() text of a localPath param on a download tool. */
6
- export declare const SERVER_FS_OUTPUT_PARAM: string;
6
+ export declare function serverFsOutputParam(): string;
7
7
  /** Use as the DESCRIBE() text of a localPath param on an upload tool. */
8
- export declare const SERVER_FS_INPUT_PARAM: string;
8
+ export declare function serverFsInputParam(): string;
9
+ /**
10
+ * Trailing clause for a *_command generator tool's description, naming the
11
+ * direct-tool alternative it exists to work around. Under 'local', the
12
+ * generator is optional (the direct tool already works) rather than the only
13
+ * viable path.
14
+ */
15
+ export declare function commandGeneratorNotice(directToolName: string, verb: 'download' | 'upload'): string;
16
+ /** Use as the DESCRIBE() text of a localPlatform param on a *_command tool. */
17
+ export declare function localPlatformParamNotice(): string;
18
+ /** One-line remedy for "tools are missing / build looks stale" diagnostics. */
19
+ export declare function staleBuildRemedy(): string;
9
20
  //# sourceMappingURL=locality.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"locality.d.ts","sourceRoot":"","sources":["../../src/utils/locality.ts"],"names":[],"mappings":"AAOA,gFAAgF;AAChF,eAAO,MAAM,yBAAyB,QAG6C,CAAC;AAEpF,+EAA+E;AAC/E,eAAO,MAAM,uBAAuB,QAGgD,CAAC;AAErF,0EAA0E;AAC1E,eAAO,MAAM,sBAAsB,QAEwD,CAAC;AAE5F,yEAAyE;AACzE,eAAO,MAAM,qBAAqB,QAG0C,CAAC"}
1
+ {"version":3,"file":"locality.d.ts","sourceRoot":"","sources":["../../src/utils/locality.ts"],"names":[],"mappings":"AAcA,gFAAgF;AAChF,wBAAgB,sBAAsB,IAAI,MAAM,CAS/C;AAED,+EAA+E;AAC/E,wBAAgB,oBAAoB,IAAI,MAAM,CAS7C;AAED,0EAA0E;AAC1E,wBAAgB,mBAAmB,IAAI,MAAM,CAQ5C;AAED,yEAAyE;AACzE,wBAAgB,kBAAkB,IAAI,MAAM,CAS3C;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,cAAc,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,GAAG,QAAQ,GAAG,MAAM,CAalG;AAED,+EAA+E;AAC/E,wBAAgB,wBAAwB,IAAI,MAAM,CAWjD;AAED,+EAA+E;AAC/E,wBAAgB,gBAAgB,IAAI,MAAM,CAKzC"}
@@ -1,22 +1,84 @@
1
1
  // Shared notices for tools that read or write a file on the MCP SERVER's own
2
- // filesystem. The server typically runs in Docker / a remote container, so its
3
- // filesystem is NOT the caller's machine and is NOT visible to the agent's bash
4
- // or file tools. A path that "succeeds" here may write to an inaccessible
5
- // location (the v47 download_test_attachments failure). Append these to the
6
- // relevant tool/param descriptions so the locality constraint is explicit.
2
+ // filesystem. Whether that filesystem is the caller's own machine depends on
3
+ // deployment: under Docker (or any remote/sandboxed host) it is NOT the
4
+ // caller's, and NOT visible to the agent's bash or file tools — a path that
5
+ // "succeeds" there may write to an inaccessible location (the v47
6
+ // download_test_attachments failure). Under the npm package, running
7
+ // directly on the user's own machine, it IS the caller's filesystem and none
8
+ // of this applies. getDeploymentMode() resolves which is true for this
9
+ // process (see deployment-mode.ts); these builders are called once, at tool
10
+ // registration time, so each tool's description/param text is already
11
+ // correct for however this server instance is actually running — the agent
12
+ // never sees the env var or has to reason about it itself.
13
+ import { getDeploymentMode } from './deployment-mode.js';
7
14
  /** Append to the DESCRIPTION of any tool that writes a file to a local path. */
8
- export const SERVER_FS_DOWNLOAD_NOTICE = ' WARNING: the file is written to the MCP server\'s own filesystem, not your local machine. ' +
9
- 'If the server runs in Docker or a remote container, the path must be valid on that container ' +
10
- 'and the file will NOT be accessible from your local machine or bash/file tools.';
15
+ export function serverFsDownloadNotice() {
16
+ if (isLocal()) {
17
+ return ' The file is written directly to your own machine\'s filesystem — this server runs locally via the npm package.';
18
+ }
19
+ return (' WARNING: the file is written to the MCP server\'s own filesystem, not your local machine. ' +
20
+ 'If the server runs in Docker or a remote container, the path must be valid on that container ' +
21
+ 'and the file will NOT be accessible from your local machine or bash/file tools.');
22
+ }
11
23
  /** Append to the DESCRIPTION of any tool that reads a local file to upload. */
12
- export const SERVER_FS_UPLOAD_NOTICE = ' WARNING: the path is read from the MCP server\'s own filesystem, not your local machine. ' +
13
- 'If the server runs in Docker or a remote container, you cannot place a file there directly — ' +
14
- 'use the matching *_upload_command tool to get a command you run locally instead.';
24
+ export function serverFsUploadNotice() {
25
+ if (isLocal()) {
26
+ return ' The path is read directly from your own machine\'s filesystem — this server runs locally via the npm package.';
27
+ }
28
+ return (' WARNING: the path is read from the MCP server\'s own filesystem, not your local machine. ' +
29
+ 'If the server runs in Docker or a remote container, you cannot place a file there directly — ' +
30
+ 'use the matching *_upload_command tool to get a command you run locally instead.');
31
+ }
15
32
  /** Use as the DESCRIBE() text of a localPath param on a download tool. */
16
- export const SERVER_FS_OUTPUT_PARAM = 'Absolute path on the MCP server\'s own filesystem where the file will be saved ' +
17
- '(e.g. "/tmp/out.zip" for a Linux/Docker deployment) — NOT a path on your local machine.';
33
+ export function serverFsOutputParam() {
34
+ if (isLocal()) {
35
+ return 'Absolute path on your machine where the file will be saved (e.g. "C:\\Users\\you\\Downloads\\out.zip" or "/Users/you/Downloads/out.zip").';
36
+ }
37
+ return ('Absolute path on the MCP server\'s own filesystem where the file will be saved ' +
38
+ '(e.g. "/tmp/out.zip" for a Linux/Docker deployment) — NOT a path on your local machine.');
39
+ }
18
40
  /** Use as the DESCRIBE() text of a localPath param on an upload tool. */
19
- export const SERVER_FS_INPUT_PARAM = 'Absolute path on the MCP server\'s own filesystem to read from ' +
20
- '(e.g. "/tmp/in.bin" for a Linux/Docker deployment) — NOT a path on your local machine. ' +
21
- 'If the server is remote, use the matching *_upload_command tool instead.';
41
+ export function serverFsInputParam() {
42
+ if (isLocal()) {
43
+ return 'Absolute path on your machine to read from (e.g. "C:\\Users\\you\\Downloads\\in.bin" or "/Users/you/Downloads/in.bin").';
44
+ }
45
+ return ('Absolute path on the MCP server\'s own filesystem to read from ' +
46
+ '(e.g. "/tmp/in.bin" for a Linux/Docker deployment) — NOT a path on your local machine. ' +
47
+ 'If the server is remote, use the matching *_upload_command tool instead.');
48
+ }
49
+ /**
50
+ * Trailing clause for a *_command generator tool's description, naming the
51
+ * direct-tool alternative it exists to work around. Under 'local', the
52
+ * generator is optional (the direct tool already works) rather than the only
53
+ * viable path.
54
+ */
55
+ export function commandGeneratorNotice(directToolName, verb) {
56
+ const action = verb === 'download' ? 'downloading' : 'uploading';
57
+ if (isLocal()) {
58
+ return (`This is usually unnecessary here: running locally via the npm package, ${directToolName} already reads/writes ` +
59
+ 'your own machine\'s filesystem directly. Use this generator only if you need a portable command to run elsewhere ' +
60
+ '(e.g. a different machine, or scripting outside this session).');
61
+ }
62
+ return (`Use this instead of ${directToolName} when the MCP server runs in Docker/remote and the ` +
63
+ `${action === 'downloading' ? 'written file would be inaccessible' : 'server cannot read the local file'} to the user.`);
64
+ }
65
+ /** Use as the DESCRIBE() text of a localPlatform param on a *_command tool. */
66
+ export function localPlatformParamNotice() {
67
+ if (isLocal()) {
68
+ return ('"windows" produces both a Git Bash curl command and a PowerShell alternative. ' +
69
+ '"macos"/"linux" produce a bash curl command. This server runs on your own machine, so pick to match your own OS.');
70
+ }
71
+ return ('"windows" produces both a Git Bash curl command and a PowerShell alternative. ' +
72
+ '"macos"/"linux" produce a bash curl command. Cannot be inferred — the MCP runs in Docker.');
73
+ }
74
+ /** One-line remedy for "tools are missing / build looks stale" diagnostics. */
75
+ export function staleBuildRemedy() {
76
+ if (isLocal()) {
77
+ return 'Run `npm install -g digital-ai-testing-mcp` again to update to the latest published version.';
78
+ }
79
+ return 'Rebuild: docker build -t digital-ai-testing-mcp:latest .';
80
+ }
81
+ function isLocal() {
82
+ return getDeploymentMode() === 'local';
83
+ }
22
84
  //# sourceMappingURL=locality.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"locality.js","sourceRoot":"","sources":["../../src/utils/locality.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,+EAA+E;AAC/E,gFAAgF;AAChF,0EAA0E;AAC1E,4EAA4E;AAC5E,2EAA2E;AAE3E,gFAAgF;AAChF,MAAM,CAAC,MAAM,yBAAyB,GACpC,6FAA6F;IAC7F,+FAA+F;IAC/F,iFAAiF,CAAC;AAEpF,+EAA+E;AAC/E,MAAM,CAAC,MAAM,uBAAuB,GAClC,4FAA4F;IAC5F,+FAA+F;IAC/F,kFAAkF,CAAC;AAErF,0EAA0E;AAC1E,MAAM,CAAC,MAAM,sBAAsB,GACjC,iFAAiF;IACjF,yFAAyF,CAAC;AAE5F,yEAAyE;AACzE,MAAM,CAAC,MAAM,qBAAqB,GAChC,iEAAiE;IACjE,yFAAyF;IACzF,0EAA0E,CAAC"}
1
+ {"version":3,"file":"locality.js","sourceRoot":"","sources":["../../src/utils/locality.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,6EAA6E;AAC7E,wEAAwE;AACxE,4EAA4E;AAC5E,kEAAkE;AAClE,qEAAqE;AACrE,6EAA6E;AAC7E,uEAAuE;AACvE,4EAA4E;AAC5E,sEAAsE;AACtE,2EAA2E;AAC3E,2DAA2D;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,gFAAgF;AAChF,MAAM,UAAU,sBAAsB;IACpC,IAAI,OAAO,EAAE,EAAE,CAAC;QACd,OAAO,iHAAiH,CAAC;IAC3H,CAAC;IACD,OAAO,CACL,6FAA6F;QAC7F,+FAA+F;QAC/F,iFAAiF,CAClF,CAAC;AACJ,CAAC;AAED,+EAA+E;AAC/E,MAAM,UAAU,oBAAoB;IAClC,IAAI,OAAO,EAAE,EAAE,CAAC;QACd,OAAO,gHAAgH,CAAC;IAC1H,CAAC;IACD,OAAO,CACL,4FAA4F;QAC5F,+FAA+F;QAC/F,kFAAkF,CACnF,CAAC;AACJ,CAAC;AAED,0EAA0E;AAC1E,MAAM,UAAU,mBAAmB;IACjC,IAAI,OAAO,EAAE,EAAE,CAAC;QACd,OAAO,2IAA2I,CAAC;IACrJ,CAAC;IACD,OAAO,CACL,iFAAiF;QACjF,yFAAyF,CAC1F,CAAC;AACJ,CAAC;AAED,yEAAyE;AACzE,MAAM,UAAU,kBAAkB;IAChC,IAAI,OAAO,EAAE,EAAE,CAAC;QACd,OAAO,yHAAyH,CAAC;IACnI,CAAC;IACD,OAAO,CACL,iEAAiE;QACjE,yFAAyF;QACzF,0EAA0E,CAC3E,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,sBAAsB,CAAC,cAAsB,EAAE,IAA2B;IACxF,MAAM,MAAM,GAAG,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC;IACjE,IAAI,OAAO,EAAE,EAAE,CAAC;QACd,OAAO,CACL,0EAA0E,cAAc,wBAAwB;YAChH,mHAAmH;YACnH,gEAAgE,CACjE,CAAC;IACJ,CAAC;IACD,OAAO,CACL,uBAAuB,cAAc,qDAAqD;QAC1F,GAAG,MAAM,KAAK,aAAa,CAAC,CAAC,CAAC,oCAAoC,CAAC,CAAC,CAAC,mCAAmC,eAAe,CACxH,CAAC;AACJ,CAAC;AAED,+EAA+E;AAC/E,MAAM,UAAU,wBAAwB;IACtC,IAAI,OAAO,EAAE,EAAE,CAAC;QACd,OAAO,CACL,gFAAgF;YAChF,kHAAkH,CACnH,CAAC;IACJ,CAAC;IACD,OAAO,CACL,gFAAgF;QAChF,2FAA2F,CAC5F,CAAC;AACJ,CAAC;AAED,+EAA+E;AAC/E,MAAM,UAAU,gBAAgB;IAC9B,IAAI,OAAO,EAAE,EAAE,CAAC;QACd,OAAO,8FAA8F,CAAC;IACxG,CAAC;IACD,OAAO,0DAA0D,CAAC;AACpE,CAAC;AAED,SAAS,OAAO;IACd,OAAO,iBAAiB,EAAE,KAAK,OAAO,CAAC;AACzC,CAAC"}
package/package.json CHANGED
@@ -1,73 +1,73 @@
1
- {
2
- "name": "digital-ai-testing-mcp",
3
- "version": "1.2.2",
4
- "description": "MCP server for Digital.ai Testing — device farm management, app lifecycle, and test automation",
5
- "type": "module",
6
- "main": "dist/index.js",
7
- "bin": {
8
- "digital-ai-testing-mcp": "dist/index.js"
9
- },
10
- "files": [
11
- "dist",
12
- "resources/boilerplate"
13
- ],
14
- "engines": {
15
- "node": ">=22"
16
- },
17
- "repository": {
18
- "type": "git",
19
- "url": "git+https://github.com/digitalai-opensource/digital-ai-testing-mcp.git"
20
- },
21
- "homepage": "https://github.com/digitalai-opensource/digital-ai-testing-mcp#readme",
22
- "bugs": "https://github.com/digitalai-opensource/digital-ai-testing-mcp/issues",
23
- "license": "Apache-2.0",
24
- "scripts": {
25
- "build": "tsc",
26
- "start": "node dist/index.js",
27
- "dev": "nodemon --exec ts-node --esm src/index.ts",
28
- "lint": "eslint src/**/*.ts tests/**/*.ts",
29
- "typecheck": "tsc --noEmit",
30
- "test": "vitest run",
31
- "test:live": "vitest run --config vitest.live.config.ts",
32
- "test:users": "vitest run tests/users.test.ts",
33
- "test:devices": "vitest run tests/devices.test.ts",
34
- "test:device-groups": "vitest run tests/device-groups.test.ts",
35
- "test:reservations": "vitest run tests/reservations.test.ts",
36
- "test:applications": "vitest run tests/applications.test.ts",
37
- "test:repository": "vitest run tests/repository.test.ts",
38
- "test:browsers": "vitest run tests/browsers.test.ts",
39
- "test:projects": "vitest run tests/projects.test.ts",
40
- "test:provisioning": "vitest run tests/provisioning-profiles.test.ts",
41
- "test:health": "vitest run tests/health.test.ts",
42
- "test:utils": "vitest run tests/utils.test.ts",
43
- "test:reporting": "vitest run tests/reporting.test.ts",
44
- "test:test-views": "vitest run tests/test-views.test.ts",
45
- "test:transactions": "vitest run tests/transactions.test.ts",
46
- "test:analytics": "vitest run tests/analytics.test.ts",
47
- "test:infrastructure": "vitest run tests/infrastructure.test.ts",
48
- "test:performance": "vitest run tests/performance.test.ts",
49
- "test:tools": "vitest run tests/tools.test.ts",
50
- "test:usage-reports": "vitest run tests/usage-reports.test.ts"
51
- },
52
- "dependencies": {
53
- "@modelcontextprotocol/sdk": "^1.30.0",
54
- "adm-zip": "^0.6.0",
55
- "axios": "^1.19.0",
56
- "dotenv": "^17.4.2",
57
- "form-data": "^4.0.6",
58
- "zod": "^4.4.3"
59
- },
60
- "devDependencies": {
61
- "@types/node": "^26.2.0",
62
- "eslint": "^10.8.1",
63
- "nodemon": "^3.0.0",
64
- "ts-node": "^10.9.0",
65
- "tsx": "^4.23.12",
66
- "typescript": "^6.0.3",
67
- "typescript-eslint": "^8.67.0",
68
- "vitest": "^4.1.10"
69
- },
70
- "allowScripts": {
71
- "esbuild@0.28.1": true
72
- }
73
- }
1
+ {
2
+ "name": "digital-ai-testing-mcp",
3
+ "version": "1.2.5",
4
+ "description": "MCP server for Digital.ai Testing — device farm management, app lifecycle, and test automation",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "bin": {
8
+ "digital-ai-testing-mcp": "dist/index.js"
9
+ },
10
+ "files": [
11
+ "dist",
12
+ "resources/boilerplate"
13
+ ],
14
+ "engines": {
15
+ "node": ">=22"
16
+ },
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/digitalai-opensource/digital-ai-testing-mcp.git"
20
+ },
21
+ "homepage": "https://github.com/digitalai-opensource/digital-ai-testing-mcp#readme",
22
+ "bugs": "https://github.com/digitalai-opensource/digital-ai-testing-mcp/issues",
23
+ "license": "Apache-2.0",
24
+ "scripts": {
25
+ "build": "tsc",
26
+ "start": "node dist/index.js",
27
+ "dev": "nodemon --exec ts-node --esm src/index.ts",
28
+ "lint": "eslint src/**/*.ts tests/**/*.ts",
29
+ "typecheck": "tsc --noEmit",
30
+ "test": "vitest run",
31
+ "test:live": "vitest run --config vitest.live.config.ts",
32
+ "test:users": "vitest run tests/users.test.ts",
33
+ "test:devices": "vitest run tests/devices.test.ts",
34
+ "test:device-groups": "vitest run tests/device-groups.test.ts",
35
+ "test:reservations": "vitest run tests/reservations.test.ts",
36
+ "test:applications": "vitest run tests/applications.test.ts",
37
+ "test:repository": "vitest run tests/repository.test.ts",
38
+ "test:browsers": "vitest run tests/browsers.test.ts",
39
+ "test:projects": "vitest run tests/projects.test.ts",
40
+ "test:provisioning": "vitest run tests/provisioning-profiles.test.ts",
41
+ "test:health": "vitest run tests/health.test.ts",
42
+ "test:utils": "vitest run tests/utils.test.ts",
43
+ "test:reporting": "vitest run tests/reporting.test.ts",
44
+ "test:test-views": "vitest run tests/test-views.test.ts",
45
+ "test:transactions": "vitest run tests/transactions.test.ts",
46
+ "test:analytics": "vitest run tests/analytics.test.ts",
47
+ "test:infrastructure": "vitest run tests/infrastructure.test.ts",
48
+ "test:performance": "vitest run tests/performance.test.ts",
49
+ "test:tools": "vitest run tests/tools.test.ts",
50
+ "test:usage-reports": "vitest run tests/usage-reports.test.ts"
51
+ },
52
+ "dependencies": {
53
+ "@modelcontextprotocol/sdk": "^1.30.0",
54
+ "adm-zip": "^0.6.0",
55
+ "axios": "^1.19.0",
56
+ "dotenv": "^17.4.2",
57
+ "form-data": "^4.0.6",
58
+ "zod": "^4.4.3"
59
+ },
60
+ "devDependencies": {
61
+ "@types/node": "^26.2.0",
62
+ "eslint": "^10.8.1",
63
+ "nodemon": "^3.0.0",
64
+ "ts-node": "^10.9.0",
65
+ "tsx": "^4.23.12",
66
+ "typescript": "^6.0.3",
67
+ "typescript-eslint": "^8.67.0",
68
+ "vitest": "^4.1.10"
69
+ },
70
+ "allowScripts": {
71
+ "esbuild@0.28.1": true
72
+ }
73
+ }
@@ -1,42 +1,42 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project xmlns="http://maven.apache.org/POM/4.0.0"
3
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
- <modelVersion>4.0.0</modelVersion>
6
-
7
- <groupId>maven</groupId>
8
- <artifactId>maven</artifactId>
9
- <version>1.0-SNAPSHOT</version>
10
- <build>
11
- <plugins>
12
- <plugin>
13
- <groupId>org.apache.maven.plugins</groupId>
14
- <artifactId>maven-compiler-plugin</artifactId>
15
- <version>3.11.0</version>
16
- <configuration>
17
- <source>8</source>
18
- <target>8</target>
19
- </configuration>
20
- </plugin>
21
- <plugin>
22
- <groupId>org.apache.maven.plugins</groupId>
23
- <artifactId>maven-surefire-plugin</artifactId>
24
- <version>3.1.2</version>
25
- </plugin>
26
- </plugins>
27
- </build>
28
-
29
- <dependencies>
30
- <dependency>
31
- <groupId>org.junit.jupiter</groupId>
32
- <artifactId>junit-jupiter</artifactId>
33
- <version>5.9.3</version>
34
- <scope>test</scope>
35
- </dependency>
36
- <dependency>
37
- <groupId>io.appium</groupId>
38
- <artifactId>java-client</artifactId>
39
- <version>7.6.0</version>
40
- </dependency>
41
- </dependencies>
42
- </project>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project xmlns="http://maven.apache.org/POM/4.0.0"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
+ <modelVersion>4.0.0</modelVersion>
6
+
7
+ <groupId>maven</groupId>
8
+ <artifactId>maven</artifactId>
9
+ <version>1.0-SNAPSHOT</version>
10
+ <build>
11
+ <plugins>
12
+ <plugin>
13
+ <groupId>org.apache.maven.plugins</groupId>
14
+ <artifactId>maven-compiler-plugin</artifactId>
15
+ <version>3.11.0</version>
16
+ <configuration>
17
+ <source>8</source>
18
+ <target>8</target>
19
+ </configuration>
20
+ </plugin>
21
+ <plugin>
22
+ <groupId>org.apache.maven.plugins</groupId>
23
+ <artifactId>maven-surefire-plugin</artifactId>
24
+ <version>3.1.2</version>
25
+ </plugin>
26
+ </plugins>
27
+ </build>
28
+
29
+ <dependencies>
30
+ <dependency>
31
+ <groupId>org.junit.jupiter</groupId>
32
+ <artifactId>junit-jupiter</artifactId>
33
+ <version>5.9.3</version>
34
+ <scope>test</scope>
35
+ </dependency>
36
+ <dependency>
37
+ <groupId>io.appium</groupId>
38
+ <artifactId>java-client</artifactId>
39
+ <version>7.6.0</version>
40
+ </dependency>
41
+ </dependencies>
42
+ </project>
@@ -1,30 +1,30 @@
1
- describe('LocalAndroidTest', () => {
2
- it('quickStartAndroidNativeDemo', myTest)
3
- })
4
- async function myTest() {
5
- // [BEGIN_DEMO_STEPS]
6
- const username = await $('id=com.experitest.ExperiBank:id/usernameTextField');
7
- await username.setValue('company');
8
- const password = await $('id=com.experitest.ExperiBank:id/passwordTextField');
9
- await password.setValue('company');
10
- const loginButton = await $('id=com.experitest.ExperiBank:id/loginButton');
11
- await loginButton.click();
12
- const makePaymentButton = await $('id=com.experitest.ExperiBank:id/makePaymentButton');
13
- await makePaymentButton.click();
14
- const phoneNumber = await $("id=com.experitest.ExperiBank:id/phoneTextField");
15
- await phoneNumber.setValue('0541234567');
16
- const name = await $("id=com.experitest.ExperiBank:id/nameTextField");
17
- await name.setValue('Jon Snow');
18
- const amount = await $("id=com.experitest.ExperiBank:id/amountTextField");
19
- await amount.setValue('50');
20
- const countryButton = await $('//*[@resource-id="com.experitest.ExperiBank:id/countryButton"]');
21
- await countryButton.click();
22
- const country = await $('//*[@text="Switzerland"]');
23
- await country.click();
24
- const sendPaymentButton = await $("id=com.experitest.ExperiBank:id/sendPaymentButton");
25
- await sendPaymentButton.click();
26
- const yesButton = await $('id=android:id/button1');
27
- await yesButton.click();
28
- // [END_DEMO_STEPS]
29
- }
1
+ describe('LocalAndroidTest', () => {
2
+ it('quickStartAndroidNativeDemo', myTest)
3
+ })
4
+ async function myTest() {
5
+ // [BEGIN_DEMO_STEPS]
6
+ const username = await $('id=com.experitest.ExperiBank:id/usernameTextField');
7
+ await username.setValue('company');
8
+ const password = await $('id=com.experitest.ExperiBank:id/passwordTextField');
9
+ await password.setValue('company');
10
+ const loginButton = await $('id=com.experitest.ExperiBank:id/loginButton');
11
+ await loginButton.click();
12
+ const makePaymentButton = await $('id=com.experitest.ExperiBank:id/makePaymentButton');
13
+ await makePaymentButton.click();
14
+ const phoneNumber = await $("id=com.experitest.ExperiBank:id/phoneTextField");
15
+ await phoneNumber.setValue('0541234567');
16
+ const name = await $("id=com.experitest.ExperiBank:id/nameTextField");
17
+ await name.setValue('Jon Snow');
18
+ const amount = await $("id=com.experitest.ExperiBank:id/amountTextField");
19
+ await amount.setValue('50');
20
+ const countryButton = await $('//*[@resource-id="com.experitest.ExperiBank:id/countryButton"]');
21
+ await countryButton.click();
22
+ const country = await $('//*[@text="Switzerland"]');
23
+ await country.click();
24
+ const sendPaymentButton = await $("id=com.experitest.ExperiBank:id/sendPaymentButton");
25
+ await sendPaymentButton.click();
26
+ const yesButton = await $('id=android:id/button1');
27
+ await yesButton.click();
28
+ // [END_DEMO_STEPS]
29
+ }
30
30
 
@@ -1,42 +1,42 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project xmlns="http://maven.apache.org/POM/4.0.0"
3
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
- <modelVersion>4.0.0</modelVersion>
6
-
7
- <groupId>maven</groupId>
8
- <artifactId>maven</artifactId>
9
- <version>1.0-SNAPSHOT</version>
10
- <build>
11
- <plugins>
12
- <plugin>
13
- <groupId>org.apache.maven.plugins</groupId>
14
- <artifactId>maven-compiler-plugin</artifactId>
15
- <version>3.11.0</version>
16
- <configuration>
17
- <source>8</source>
18
- <target>8</target>
19
- </configuration>
20
- </plugin>
21
- <plugin>
22
- <groupId>org.apache.maven.plugins</groupId>
23
- <artifactId>maven-surefire-plugin</artifactId>
24
- <version>3.1.2</version>
25
- </plugin>
26
- </plugins>
27
- </build>
28
-
29
- <dependencies>
30
- <dependency>
31
- <groupId>org.testng</groupId>
32
- <artifactId>testng</artifactId>
33
- <version>7.6.1</version>
34
- <scope>test</scope>
35
- </dependency>
36
- <dependency>
37
- <groupId>io.appium</groupId>
38
- <artifactId>java-client</artifactId>
39
- <version>7.6.0</version>
40
- </dependency>
41
- </dependencies>
42
- </project>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project xmlns="http://maven.apache.org/POM/4.0.0"
3
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
+ <modelVersion>4.0.0</modelVersion>
6
+
7
+ <groupId>maven</groupId>
8
+ <artifactId>maven</artifactId>
9
+ <version>1.0-SNAPSHOT</version>
10
+ <build>
11
+ <plugins>
12
+ <plugin>
13
+ <groupId>org.apache.maven.plugins</groupId>
14
+ <artifactId>maven-compiler-plugin</artifactId>
15
+ <version>3.11.0</version>
16
+ <configuration>
17
+ <source>8</source>
18
+ <target>8</target>
19
+ </configuration>
20
+ </plugin>
21
+ <plugin>
22
+ <groupId>org.apache.maven.plugins</groupId>
23
+ <artifactId>maven-surefire-plugin</artifactId>
24
+ <version>3.1.2</version>
25
+ </plugin>
26
+ </plugins>
27
+ </build>
28
+
29
+ <dependencies>
30
+ <dependency>
31
+ <groupId>org.testng</groupId>
32
+ <artifactId>testng</artifactId>
33
+ <version>7.6.1</version>
34
+ <scope>test</scope>
35
+ </dependency>
36
+ <dependency>
37
+ <groupId>io.appium</groupId>
38
+ <artifactId>java-client</artifactId>
39
+ <version>7.6.0</version>
40
+ </dependency>
41
+ </dependencies>
42
+ </project>