@testingbot/mcp-server 1.0.1 → 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.
- package/README.md +266 -8
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +21 -8
- package/dist/config.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +39 -16
- package/dist/index.js.map +1 -1
- package/dist/lib/app-automate-client.d.ts +201 -0
- package/dist/lib/app-automate-client.d.ts.map +1 -0
- package/dist/lib/app-automate-client.js +179 -0
- package/dist/lib/app-automate-client.js.map +1 -0
- package/dist/lib/credentials.d.ts +19 -0
- package/dist/lib/credentials.d.ts.map +1 -0
- package/dist/lib/credentials.js +128 -0
- package/dist/lib/credentials.js.map +1 -0
- package/dist/lib/logger.d.ts.map +1 -1
- package/dist/lib/logger.js +45 -19
- package/dist/lib/logger.js.map +1 -1
- package/dist/lib/types.d.ts +9 -3
- package/dist/lib/types.d.ts.map +1 -1
- package/dist/server-factory.d.ts +15 -1
- package/dist/server-factory.d.ts.map +1 -1
- package/dist/server-factory.js +140 -10
- package/dist/server-factory.js.map +1 -1
- package/dist/silence-wdio.d.ts +2 -0
- package/dist/silence-wdio.d.ts.map +1 -0
- package/dist/silence-wdio.js +17 -0
- package/dist/silence-wdio.js.map +1 -0
- package/dist/tools/app-automate.d.ts +3 -0
- package/dist/tools/app-automate.d.ts.map +1 -0
- package/dist/tools/app-automate.js +250 -0
- package/dist/tools/app-automate.js.map +1 -0
- package/dist/tools/auth.d.ts +43 -0
- package/dist/tools/auth.d.ts.map +1 -0
- package/dist/tools/auth.js +571 -0
- package/dist/tools/auth.js.map +1 -0
- package/dist/tools/browsers.d.ts.map +1 -1
- package/dist/tools/browsers.js +2 -1
- package/dist/tools/browsers.js.map +1 -1
- package/dist/tools/logs.d.ts +3 -0
- package/dist/tools/logs.d.ts.map +1 -0
- package/dist/tools/logs.js +135 -0
- package/dist/tools/logs.js.map +1 -0
- package/dist/tools/maestro.d.ts +3 -0
- package/dist/tools/maestro.d.ts.map +1 -0
- package/dist/tools/maestro.js +625 -0
- package/dist/tools/maestro.js.map +1 -0
- package/dist/tools/project.d.ts +16 -0
- package/dist/tools/project.d.ts.map +1 -0
- package/dist/tools/project.js +589 -0
- package/dist/tools/project.js.map +1 -0
- package/dist/tools/storage.d.ts.map +1 -1
- package/dist/tools/storage.js +94 -8
- package/dist/tools/storage.js.map +1 -1
- package/dist/tools/tests.d.ts.map +1 -1
- package/dist/tools/tests.js +8 -6
- package/dist/tools/tests.js.map +1 -1
- package/dist/tools/user.d.ts.map +1 -1
- package/dist/tools/user.js +24 -6
- package/dist/tools/user.js.map +1 -1
- package/package.json +11 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"maestro.js","sourceRoot":"","sources":["../../src/tools/maestro.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEjC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EACL,iBAAiB,GAIlB,MAAM,+BAA+B,CAAC;AACvC,OAAO,MAAM,MAAM,kBAAkB,CAAC;AAEtC,MAAM,sBAAsB,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAEzE,SAAS,eAAe,CAAC,KAAa;IACpC,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACrC,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,WAAW,EAAE,CAAC;IACjD,IAAI,CAAC,sBAAsB,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,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,CAAC,CAAC;QAClD,CAAC;IACH,CAAC,CACF,CAAC;IAEF,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TestingBotConfig } from "../lib/types.js";
|
|
2
|
+
type Framework = "playwright" | "cypress" | "webdriverio" | "selenium-js" | "nightwatch" | "puppeteer" | "jest" | "mocha" | "vitest" | "maestro" | "espresso" | "xcuitest" | "unknown";
|
|
3
|
+
type Language = "javascript" | "typescript" | "python" | "java" | "kotlin" | "swift" | "ruby" | "yaml" | "unknown";
|
|
4
|
+
interface DetectionResult {
|
|
5
|
+
projectRoot: string;
|
|
6
|
+
language: Language;
|
|
7
|
+
framework: Framework;
|
|
8
|
+
testFileGlobs: string[];
|
|
9
|
+
testDirs: string[];
|
|
10
|
+
packageManager: "npm" | "yarn" | "pnpm" | null;
|
|
11
|
+
detectedFrom: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function detectFramework(projectRoot: string): DetectionResult;
|
|
14
|
+
export default function addProjectTools(server: any, _testingBotApi: any, _config: TestingBotConfig): Record<string, any>;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=project.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/tools/project.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAQnD,KAAK,SAAS,GACV,YAAY,GACZ,SAAS,GACT,aAAa,GACb,aAAa,GACb,YAAY,GACZ,WAAW,GACX,MAAM,GACN,OAAO,GACP,QAAQ,GACR,SAAS,GACT,UAAU,GACV,UAAU,GACV,SAAS,CAAC;AAEd,KAAK,QAAQ,GACT,YAAY,GACZ,YAAY,GACZ,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,OAAO,GACP,MAAM,GACN,MAAM,GACN,SAAS,CAAC;AAEd,UAAU,eAAe;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,QAAQ,CAAC;IACnB,SAAS,EAAE,SAAS,CAAC;IACrB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,cAAc,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC/C,YAAY,EAAE,MAAM,CAAC;CACtB;AAsOD,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,eAAe,CA8CpE;AA6ND,MAAM,CAAC,OAAO,UAAU,eAAe,CACrC,MAAM,EAAE,GAAG,EACX,cAAc,EAAE,GAAG,EACnB,OAAO,EAAE,gBAAgB,uBAuI1B"}
|
|
@@ -0,0 +1,589 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import path from "path";
|
|
3
|
+
import fs from "fs";
|
|
4
|
+
import { handleMCPError } from "../lib/utils.js";
|
|
5
|
+
import logger from "../lib/logger.js";
|
|
6
|
+
const FRAMEWORK_PACKAGE_HINTS = [
|
|
7
|
+
{ pkg: "@playwright/test", framework: "playwright" },
|
|
8
|
+
{ pkg: "playwright", framework: "playwright" },
|
|
9
|
+
{ pkg: "cypress", framework: "cypress" },
|
|
10
|
+
{ pkg: "webdriverio", framework: "webdriverio" },
|
|
11
|
+
{ pkg: "@wdio/cli", framework: "webdriverio" },
|
|
12
|
+
{ pkg: "nightwatch", framework: "nightwatch" },
|
|
13
|
+
{ pkg: "selenium-webdriver", framework: "selenium-js" },
|
|
14
|
+
{ pkg: "puppeteer", framework: "puppeteer" },
|
|
15
|
+
{ pkg: "vitest", framework: "vitest" },
|
|
16
|
+
{ pkg: "jest", framework: "jest" },
|
|
17
|
+
{ pkg: "mocha", framework: "mocha" },
|
|
18
|
+
];
|
|
19
|
+
const FRAMEWORK_DEFAULTS = {
|
|
20
|
+
playwright: {
|
|
21
|
+
globs: ["**/*.spec.ts", "**/*.spec.js", "**/*.test.ts", "**/*.test.js"],
|
|
22
|
+
dirs: ["tests", "e2e", "playwright"],
|
|
23
|
+
},
|
|
24
|
+
cypress: { globs: ["**/*.cy.ts", "**/*.cy.js"], dirs: ["cypress/e2e", "cypress/integration"] },
|
|
25
|
+
webdriverio: {
|
|
26
|
+
globs: ["**/*.e2e.ts", "**/*.e2e.js", "**/*.spec.ts", "**/*.spec.js"],
|
|
27
|
+
dirs: ["test", "tests", "e2e"],
|
|
28
|
+
},
|
|
29
|
+
"selenium-js": {
|
|
30
|
+
globs: ["**/*.test.js", "**/*.test.ts", "**/*.spec.js", "**/*.spec.ts"],
|
|
31
|
+
dirs: ["test", "tests"],
|
|
32
|
+
},
|
|
33
|
+
nightwatch: { globs: ["**/*.js", "**/*.ts"], dirs: ["tests", "nightwatch/e2e"] },
|
|
34
|
+
puppeteer: { globs: ["**/*.test.js", "**/*.test.ts"], dirs: ["test", "tests"] },
|
|
35
|
+
jest: {
|
|
36
|
+
globs: ["**/*.test.ts", "**/*.test.js", "**/*.spec.ts", "**/*.spec.js"],
|
|
37
|
+
dirs: ["__tests__", "test", "tests"],
|
|
38
|
+
},
|
|
39
|
+
mocha: { globs: ["**/*.test.js", "**/*.spec.js"], dirs: ["test"] },
|
|
40
|
+
vitest: { globs: ["**/*.test.ts", "**/*.test.js"], dirs: ["test", "tests"] },
|
|
41
|
+
maestro: { globs: ["**/*.yaml", "**/*.yml"], dirs: [".maestro", "maestro", "flows"] },
|
|
42
|
+
espresso: {
|
|
43
|
+
globs: ["**/*Test.java", "**/*Test.kt"],
|
|
44
|
+
dirs: ["app/src/androidTest", "src/androidTest"],
|
|
45
|
+
},
|
|
46
|
+
xcuitest: { globs: ["**/*UITest*.swift", "**/*UITests*.swift"], dirs: [] },
|
|
47
|
+
unknown: { globs: ["**/*.test.*", "**/*.spec.*"], dirs: ["test", "tests"] },
|
|
48
|
+
};
|
|
49
|
+
function safeReadJson(filePath) {
|
|
50
|
+
try {
|
|
51
|
+
return JSON.parse(fs.readFileSync(filePath, "utf8"));
|
|
52
|
+
}
|
|
53
|
+
catch {
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function detectPackageManager(projectRoot) {
|
|
58
|
+
if (fs.existsSync(path.join(projectRoot, "pnpm-lock.yaml")))
|
|
59
|
+
return "pnpm";
|
|
60
|
+
if (fs.existsSync(path.join(projectRoot, "yarn.lock")))
|
|
61
|
+
return "yarn";
|
|
62
|
+
if (fs.existsSync(path.join(projectRoot, "package-lock.json")))
|
|
63
|
+
return "npm";
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
function detectFromPython(projectRoot) {
|
|
67
|
+
if (!fs.existsSync(path.join(projectRoot, "requirements.txt")) &&
|
|
68
|
+
!fs.existsSync(path.join(projectRoot, "pyproject.toml")) &&
|
|
69
|
+
!fs.existsSync(path.join(projectRoot, "Pipfile"))) {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
// Cheap content match — agents will use the result as a hint, not gospel.
|
|
73
|
+
let content = "";
|
|
74
|
+
for (const f of ["requirements.txt", "pyproject.toml", "Pipfile"]) {
|
|
75
|
+
const p = path.join(projectRoot, f);
|
|
76
|
+
if (fs.existsSync(p))
|
|
77
|
+
content += fs.readFileSync(p, "utf8") + "\n";
|
|
78
|
+
}
|
|
79
|
+
let framework = "unknown";
|
|
80
|
+
if (/playwright/i.test(content))
|
|
81
|
+
framework = "playwright";
|
|
82
|
+
else if (/selenium/i.test(content))
|
|
83
|
+
framework = "selenium-js";
|
|
84
|
+
return {
|
|
85
|
+
language: "python",
|
|
86
|
+
framework,
|
|
87
|
+
testFileGlobs: ["**/test_*.py", "**/*_test.py"],
|
|
88
|
+
testDirs: ["tests", "test"],
|
|
89
|
+
detectedFrom: "requirements.txt / pyproject.toml",
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
function detectFromJava(projectRoot) {
|
|
93
|
+
const pom = path.join(projectRoot, "pom.xml");
|
|
94
|
+
const gradle = path.join(projectRoot, "build.gradle");
|
|
95
|
+
const gradleKts = path.join(projectRoot, "build.gradle.kts");
|
|
96
|
+
let buildFile = null;
|
|
97
|
+
if (fs.existsSync(pom))
|
|
98
|
+
buildFile = pom;
|
|
99
|
+
else if (fs.existsSync(gradle))
|
|
100
|
+
buildFile = gradle;
|
|
101
|
+
else if (fs.existsSync(gradleKts))
|
|
102
|
+
buildFile = gradleKts;
|
|
103
|
+
if (!buildFile)
|
|
104
|
+
return null;
|
|
105
|
+
const content = fs.readFileSync(buildFile, "utf8");
|
|
106
|
+
let framework = "unknown";
|
|
107
|
+
if (/selenium/i.test(content))
|
|
108
|
+
framework = "selenium-js";
|
|
109
|
+
else if (/playwright/i.test(content))
|
|
110
|
+
framework = "playwright";
|
|
111
|
+
return {
|
|
112
|
+
language: "java",
|
|
113
|
+
framework,
|
|
114
|
+
testFileGlobs: ["**/*Test.java", "**/*IT.java", "**/Test*.java"],
|
|
115
|
+
testDirs: ["src/test/java"],
|
|
116
|
+
detectedFrom: path.basename(buildFile),
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
function detectFromRuby(projectRoot) {
|
|
120
|
+
const gemfile = path.join(projectRoot, "Gemfile");
|
|
121
|
+
if (!fs.existsSync(gemfile))
|
|
122
|
+
return null;
|
|
123
|
+
const content = fs.readFileSync(gemfile, "utf8");
|
|
124
|
+
let framework = "unknown";
|
|
125
|
+
if (/selenium-webdriver/i.test(content))
|
|
126
|
+
framework = "selenium-js";
|
|
127
|
+
return {
|
|
128
|
+
language: "ruby",
|
|
129
|
+
framework,
|
|
130
|
+
testFileGlobs: ["**/*_spec.rb", "**/*_test.rb"],
|
|
131
|
+
testDirs: ["spec", "test"],
|
|
132
|
+
detectedFrom: "Gemfile",
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
function detectFromNode(projectRoot) {
|
|
136
|
+
const pkg = safeReadJson(path.join(projectRoot, "package.json"));
|
|
137
|
+
if (!pkg)
|
|
138
|
+
return null;
|
|
139
|
+
const deps = {
|
|
140
|
+
...(pkg.dependencies || {}),
|
|
141
|
+
...(pkg.devDependencies || {}),
|
|
142
|
+
};
|
|
143
|
+
let framework = "unknown";
|
|
144
|
+
for (const hint of FRAMEWORK_PACKAGE_HINTS) {
|
|
145
|
+
if (deps[hint.pkg]) {
|
|
146
|
+
framework = hint.framework;
|
|
147
|
+
break;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
const isTs = !!deps["typescript"] || fs.existsSync(path.join(projectRoot, "tsconfig.json"));
|
|
151
|
+
const defaults = FRAMEWORK_DEFAULTS[framework];
|
|
152
|
+
return {
|
|
153
|
+
language: isTs ? "typescript" : "javascript",
|
|
154
|
+
framework,
|
|
155
|
+
testFileGlobs: defaults.globs,
|
|
156
|
+
testDirs: defaults.dirs,
|
|
157
|
+
detectedFrom: "package.json",
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
// Mobile-native projects (Maestro workspaces, Android/Espresso, iOS/XCUITest)
|
|
161
|
+
// don't have a web-test manifest, so check for them before the language-based
|
|
162
|
+
// detectors — an Android repo would otherwise land in detectFromJava as
|
|
163
|
+
// "java/unknown".
|
|
164
|
+
function detectFromMobile(projectRoot) {
|
|
165
|
+
// Maestro: a .maestro workspace directory (the CLI's default), or a
|
|
166
|
+
// maestro/ flows directory with a config.yaml.
|
|
167
|
+
for (const dir of [".maestro", "maestro"]) {
|
|
168
|
+
const candidate = path.join(projectRoot, dir);
|
|
169
|
+
if (fs.existsSync(candidate) && fs.statSync(candidate).isDirectory()) {
|
|
170
|
+
return {
|
|
171
|
+
language: "yaml",
|
|
172
|
+
framework: "maestro",
|
|
173
|
+
testFileGlobs: [`${dir}/**/*.yaml`, `${dir}/**/*.yml`],
|
|
174
|
+
testDirs: [dir],
|
|
175
|
+
detectedFrom: `${dir}/ directory`,
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
// Espresso: an Android Gradle project with an androidTest source set or an
|
|
180
|
+
// espresso dependency in the build file.
|
|
181
|
+
for (const buildFile of [
|
|
182
|
+
"app/build.gradle",
|
|
183
|
+
"app/build.gradle.kts",
|
|
184
|
+
"build.gradle",
|
|
185
|
+
"build.gradle.kts",
|
|
186
|
+
]) {
|
|
187
|
+
const p = path.join(projectRoot, buildFile);
|
|
188
|
+
if (!fs.existsSync(p))
|
|
189
|
+
continue;
|
|
190
|
+
const content = fs.readFileSync(p, "utf8");
|
|
191
|
+
const hasAndroidTestDir = fs.existsSync(path.join(projectRoot, "app/src/androidTest")) ||
|
|
192
|
+
fs.existsSync(path.join(projectRoot, "src/androidTest"));
|
|
193
|
+
if (/espresso/i.test(content) ||
|
|
194
|
+
(hasAndroidTestDir && /com\.android\.application|android\s*\{/.test(content))) {
|
|
195
|
+
return {
|
|
196
|
+
language: /\.kts$/.test(buildFile) ? "kotlin" : "java",
|
|
197
|
+
framework: "espresso",
|
|
198
|
+
testFileGlobs: FRAMEWORK_DEFAULTS.espresso.globs,
|
|
199
|
+
testDirs: FRAMEWORK_DEFAULTS.espresso.dirs,
|
|
200
|
+
detectedFrom: buildFile,
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
// XCUITest: an Xcode project/workspace plus a *UITests target directory.
|
|
205
|
+
let entries = [];
|
|
206
|
+
try {
|
|
207
|
+
entries = fs.readdirSync(projectRoot, { withFileTypes: true });
|
|
208
|
+
}
|
|
209
|
+
catch {
|
|
210
|
+
return null;
|
|
211
|
+
}
|
|
212
|
+
const hasXcodeProject = entries.some((e) => e.name.endsWith(".xcodeproj") || e.name.endsWith(".xcworkspace"));
|
|
213
|
+
const uiTestDirs = entries
|
|
214
|
+
.filter((e) => e.isDirectory() && /UITests?$/.test(e.name))
|
|
215
|
+
.map((e) => e.name);
|
|
216
|
+
if (hasXcodeProject && uiTestDirs.length > 0) {
|
|
217
|
+
return {
|
|
218
|
+
language: "swift",
|
|
219
|
+
framework: "xcuitest",
|
|
220
|
+
testFileGlobs: FRAMEWORK_DEFAULTS.xcuitest.globs,
|
|
221
|
+
testDirs: uiTestDirs,
|
|
222
|
+
detectedFrom: "Xcode project + UITests target",
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
return null;
|
|
226
|
+
}
|
|
227
|
+
export function detectFramework(projectRoot) {
|
|
228
|
+
const resolved = path.resolve(projectRoot);
|
|
229
|
+
if (!fs.existsSync(resolved) || !fs.statSync(resolved).isDirectory()) {
|
|
230
|
+
throw new Error(`Project root does not exist or is not a directory: ${resolved}`);
|
|
231
|
+
}
|
|
232
|
+
const mobile = detectFromMobile(resolved);
|
|
233
|
+
if (mobile) {
|
|
234
|
+
return {
|
|
235
|
+
projectRoot: resolved,
|
|
236
|
+
language: mobile.language,
|
|
237
|
+
framework: mobile.framework,
|
|
238
|
+
testFileGlobs: mobile.testFileGlobs,
|
|
239
|
+
testDirs: mobile.testDirs,
|
|
240
|
+
packageManager: detectPackageManager(resolved),
|
|
241
|
+
detectedFrom: mobile.detectedFrom,
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
const node = detectFromNode(resolved);
|
|
245
|
+
const python = !node ? detectFromPython(resolved) : null;
|
|
246
|
+
const java = !node && !python ? detectFromJava(resolved) : null;
|
|
247
|
+
const ruby = !node && !python && !java ? detectFromRuby(resolved) : null;
|
|
248
|
+
const detected = node || python || java || ruby;
|
|
249
|
+
if (!detected) {
|
|
250
|
+
return {
|
|
251
|
+
projectRoot: resolved,
|
|
252
|
+
language: "unknown",
|
|
253
|
+
framework: "unknown",
|
|
254
|
+
testFileGlobs: FRAMEWORK_DEFAULTS.unknown.globs,
|
|
255
|
+
testDirs: FRAMEWORK_DEFAULTS.unknown.dirs,
|
|
256
|
+
packageManager: detectPackageManager(resolved),
|
|
257
|
+
detectedFrom: "no manifest found",
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
return {
|
|
261
|
+
projectRoot: resolved,
|
|
262
|
+
language: detected.language,
|
|
263
|
+
framework: detected.framework,
|
|
264
|
+
testFileGlobs: detected.testFileGlobs,
|
|
265
|
+
testDirs: detected.testDirs,
|
|
266
|
+
packageManager: detectPackageManager(resolved),
|
|
267
|
+
detectedFrom: detected.detectedFrom,
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
// =============================================================================
|
|
271
|
+
// listTestFiles — walk the detected test dirs
|
|
272
|
+
// =============================================================================
|
|
273
|
+
const IGNORED_DIRS = new Set([
|
|
274
|
+
"node_modules",
|
|
275
|
+
".git",
|
|
276
|
+
"dist",
|
|
277
|
+
"build",
|
|
278
|
+
"out",
|
|
279
|
+
".next",
|
|
280
|
+
"coverage",
|
|
281
|
+
".venv",
|
|
282
|
+
"venv",
|
|
283
|
+
"__pycache__",
|
|
284
|
+
"target",
|
|
285
|
+
".gradle",
|
|
286
|
+
".idea",
|
|
287
|
+
".vscode",
|
|
288
|
+
]);
|
|
289
|
+
function* walk(dir, maxDepth, depth = 0) {
|
|
290
|
+
if (depth > maxDepth)
|
|
291
|
+
return;
|
|
292
|
+
let entries;
|
|
293
|
+
try {
|
|
294
|
+
entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
295
|
+
}
|
|
296
|
+
catch {
|
|
297
|
+
return;
|
|
298
|
+
}
|
|
299
|
+
for (const entry of entries) {
|
|
300
|
+
if (entry.name.startsWith(".") && entry.name !== "." && entry.name !== "..")
|
|
301
|
+
continue;
|
|
302
|
+
if (IGNORED_DIRS.has(entry.name))
|
|
303
|
+
continue;
|
|
304
|
+
const full = path.join(dir, entry.name);
|
|
305
|
+
if (entry.isDirectory()) {
|
|
306
|
+
yield* walk(full, maxDepth, depth + 1);
|
|
307
|
+
}
|
|
308
|
+
else if (entry.isFile()) {
|
|
309
|
+
yield full;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
function matchesAnyGlob(file, globs) {
|
|
314
|
+
// Translate a minimal glob subset (`**`, `*`, `?`, `.`) into a RegExp.
|
|
315
|
+
return globs.some((g) => {
|
|
316
|
+
const re = new RegExp("^" +
|
|
317
|
+
g
|
|
318
|
+
.replace(/[.+^${}()|[\]\\]/g, "\\$&")
|
|
319
|
+
.replace(/\*\*/g, "::DOUBLESTAR::")
|
|
320
|
+
.replace(/\*/g, "[^/]*")
|
|
321
|
+
.replace(/\?/g, ".")
|
|
322
|
+
.replace(/::DOUBLESTAR::/g, ".*") +
|
|
323
|
+
"$");
|
|
324
|
+
return re.test(file.replace(/\\/g, "/"));
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
// =============================================================================
|
|
328
|
+
// SDK config snippets
|
|
329
|
+
// =============================================================================
|
|
330
|
+
function configSnippet(framework, language) {
|
|
331
|
+
if (framework === "playwright") {
|
|
332
|
+
return [
|
|
333
|
+
"```typescript",
|
|
334
|
+
"// playwright.config.ts — TestingBot connection",
|
|
335
|
+
"import { defineConfig } from '@playwright/test';",
|
|
336
|
+
"",
|
|
337
|
+
"const wsEndpoint = `wss://cloud.testingbot.com/playwright?` + new URLSearchParams({",
|
|
338
|
+
" key: process.env.TESTINGBOT_KEY!,",
|
|
339
|
+
" secret: process.env.TESTINGBOT_SECRET!,",
|
|
340
|
+
" browserName: 'chrome',",
|
|
341
|
+
" browserVersion: 'latest',",
|
|
342
|
+
" os: 'WIN11',",
|
|
343
|
+
"}).toString();",
|
|
344
|
+
"",
|
|
345
|
+
"export default defineConfig({",
|
|
346
|
+
" use: { connectOptions: { wsEndpoint } },",
|
|
347
|
+
"});",
|
|
348
|
+
"```",
|
|
349
|
+
].join("\n");
|
|
350
|
+
}
|
|
351
|
+
if (framework === "selenium-js") {
|
|
352
|
+
return [
|
|
353
|
+
"```" + (language === "typescript" ? "typescript" : "javascript"),
|
|
354
|
+
"// selenium-webdriver — TestingBot remote driver",
|
|
355
|
+
"const { Builder } = require('selenium-webdriver');",
|
|
356
|
+
"",
|
|
357
|
+
"const driver = await new Builder()",
|
|
358
|
+
" .usingServer(`https://${process.env.TESTINGBOT_KEY}:${process.env.TESTINGBOT_SECRET}@hub.testingbot.com/wd/hub`)",
|
|
359
|
+
" .withCapabilities({",
|
|
360
|
+
" browserName: 'chrome',",
|
|
361
|
+
" browserVersion: 'latest',",
|
|
362
|
+
" platformName: 'Windows 11',",
|
|
363
|
+
" 'tb:options': { name: 'My Test', build: 'build-1' },",
|
|
364
|
+
" })",
|
|
365
|
+
" .build();",
|
|
366
|
+
"```",
|
|
367
|
+
].join("\n");
|
|
368
|
+
}
|
|
369
|
+
if (framework === "webdriverio") {
|
|
370
|
+
return [
|
|
371
|
+
"```javascript",
|
|
372
|
+
"// wdio.conf.js — TestingBot service",
|
|
373
|
+
"exports.config = {",
|
|
374
|
+
" user: process.env.TESTINGBOT_KEY,",
|
|
375
|
+
" key: process.env.TESTINGBOT_SECRET,",
|
|
376
|
+
" hostname: 'hub.testingbot.com',",
|
|
377
|
+
" port: 443,",
|
|
378
|
+
" path: '/wd/hub',",
|
|
379
|
+
" protocol: 'https',",
|
|
380
|
+
" services: ['testingbot'],",
|
|
381
|
+
" capabilities: [{ browserName: 'chrome', browserVersion: 'latest', platformName: 'Windows 11' }],",
|
|
382
|
+
"};",
|
|
383
|
+
"```",
|
|
384
|
+
].join("\n");
|
|
385
|
+
}
|
|
386
|
+
if (framework === "cypress") {
|
|
387
|
+
return [
|
|
388
|
+
"Cypress runs on TestingBot via the [Cypress add-on](https://testingbot.com/support/cypress).",
|
|
389
|
+
"After running `npm install -g testingbot-cypress-cli`, kick off a run with:",
|
|
390
|
+
"```bash",
|
|
391
|
+
"testingbot-cypress run \\\\",
|
|
392
|
+
" --key $TESTINGBOT_KEY \\\\",
|
|
393
|
+
" --secret $TESTINGBOT_SECRET \\\\",
|
|
394
|
+
" --browser chrome",
|
|
395
|
+
"```",
|
|
396
|
+
].join("\n");
|
|
397
|
+
}
|
|
398
|
+
if (framework === "puppeteer") {
|
|
399
|
+
return [
|
|
400
|
+
"```javascript",
|
|
401
|
+
"// Puppeteer — connect to TestingBot",
|
|
402
|
+
"const puppeteer = require('puppeteer-core');",
|
|
403
|
+
"const browser = await puppeteer.connect({",
|
|
404
|
+
" browserWSEndpoint: `wss://cloud.testingbot.com/puppeteer?key=${process.env.TESTINGBOT_KEY}&secret=${process.env.TESTINGBOT_SECRET}&browserName=chrome&browserVersion=latest`,",
|
|
405
|
+
"});",
|
|
406
|
+
"```",
|
|
407
|
+
].join("\n");
|
|
408
|
+
}
|
|
409
|
+
if (framework === "nightwatch") {
|
|
410
|
+
return [
|
|
411
|
+
"```javascript",
|
|
412
|
+
"// nightwatch.conf.js — TestingBot environment",
|
|
413
|
+
"module.exports = {",
|
|
414
|
+
" test_settings: {",
|
|
415
|
+
" testingbot: {",
|
|
416
|
+
" selenium: { host: 'hub.testingbot.com', port: 443 },",
|
|
417
|
+
" username: process.env.TESTINGBOT_KEY,",
|
|
418
|
+
" access_key: process.env.TESTINGBOT_SECRET,",
|
|
419
|
+
" desiredCapabilities: { browserName: 'chrome', browserVersion: 'latest', platformName: 'Windows 11' },",
|
|
420
|
+
" },",
|
|
421
|
+
" },",
|
|
422
|
+
"};",
|
|
423
|
+
"```",
|
|
424
|
+
].join("\n");
|
|
425
|
+
}
|
|
426
|
+
if (framework === "maestro") {
|
|
427
|
+
return [
|
|
428
|
+
"Maestro flows run on TestingBot devices via the MCP tools on this server — no SDK config needed:",
|
|
429
|
+
"",
|
|
430
|
+
"1. `uploadMaestroApp` with your .apk/.ipa → returns a projectId (deduped by checksum)",
|
|
431
|
+
"2. `uploadMaestroFlows` with your flows directory (or inline YAML)",
|
|
432
|
+
"3. `runMaestroTest` with device capabilities (set `realDevice: true` for physical devices)",
|
|
433
|
+
"4. Poll `getMaestroRunStatus`, then `getMaestroRunResults` / `getMaestroFlowDetails`",
|
|
434
|
+
"",
|
|
435
|
+
"Call `maestroCheatSheet` for a Maestro YAML syntax reference.",
|
|
436
|
+
'From CI, the same runs via the CLI: `npx @testingbot/cli maestro app.apk ./flows --device "Pixel 8" --real-device --report junit`',
|
|
437
|
+
].join("\n");
|
|
438
|
+
}
|
|
439
|
+
if (framework === "espresso") {
|
|
440
|
+
return [
|
|
441
|
+
"Espresso suites run on TestingBot devices via the MCP tools on this server — no SDK config needed:",
|
|
442
|
+
"",
|
|
443
|
+
"1. `uploadAppAutomateApp` (framework: espresso) with your app .apk → returns a projectId",
|
|
444
|
+
"2. `uploadAppAutomateTests` with the instrumented test .apk (from `./gradlew assembleAndroidTest`)",
|
|
445
|
+
"3. `runAppAutomateTest` with device capabilities (class/package/annotation filters supported)",
|
|
446
|
+
"4. Poll `getAppAutomateRunStatus`, then `getAppAutomateRunResults` for the JUnit report",
|
|
447
|
+
"",
|
|
448
|
+
'From CI: `npx @testingbot/cli espresso app.apk test.apk --device "Pixel 8" --real-device`',
|
|
449
|
+
].join("\n");
|
|
450
|
+
}
|
|
451
|
+
if (framework === "xcuitest") {
|
|
452
|
+
return [
|
|
453
|
+
"XCUITest suites run on TestingBot devices via the MCP tools on this server — no SDK config needed:",
|
|
454
|
+
"",
|
|
455
|
+
"1. `uploadAppAutomateApp` (framework: xcuitest) with your app .ipa → returns a projectId",
|
|
456
|
+
"2. `uploadAppAutomateTests` with the zipped XCUITest runner bundle",
|
|
457
|
+
"3. `runAppAutomateTest` with device capabilities (set `realDevice: true` for physical devices)",
|
|
458
|
+
"4. Poll `getAppAutomateRunStatus`, then `getAppAutomateRunResults` for the JUnit report",
|
|
459
|
+
"",
|
|
460
|
+
'From CI: `npx @testingbot/cli xcuitest app.ipa tests.zip --device "iPhone 15" --real-device`',
|
|
461
|
+
].join("\n");
|
|
462
|
+
}
|
|
463
|
+
return [
|
|
464
|
+
"No first-class TestingBot integration auto-detected.",
|
|
465
|
+
"General pattern: point your driver at `https://hub.testingbot.com/wd/hub` (Selenium),",
|
|
466
|
+
"or use the wss endpoints at `wss://cloud.testingbot.com/{playwright,puppeteer}` for browser-protocol clients.",
|
|
467
|
+
"See https://testingbot.com/support for framework-specific guides.",
|
|
468
|
+
].join("\n");
|
|
469
|
+
}
|
|
470
|
+
function installCommand(framework, packageManager) {
|
|
471
|
+
const pm = packageManager || "npm";
|
|
472
|
+
const installCmd = pm === "yarn" ? "yarn add --dev" : pm === "pnpm" ? "pnpm add -D" : "npm install --save-dev";
|
|
473
|
+
if (framework === "webdriverio")
|
|
474
|
+
return `${installCmd} @wdio/testingbot-service`;
|
|
475
|
+
if (framework === "cypress")
|
|
476
|
+
return `npm install -g testingbot-cypress-cli`;
|
|
477
|
+
return null;
|
|
478
|
+
}
|
|
479
|
+
// =============================================================================
|
|
480
|
+
// Tool registration
|
|
481
|
+
// =============================================================================
|
|
482
|
+
export default function addProjectTools(server, _testingBotApi, _config) {
|
|
483
|
+
const tools = {};
|
|
484
|
+
tools.listTestFiles = server.tool("listTestFiles", "Scan a project directory and return test files for the detected framework. Read-only — never modifies files.", {
|
|
485
|
+
projectRoot: z.string().min(1).describe("Absolute path to the project root to scan."),
|
|
486
|
+
maxDepth: z
|
|
487
|
+
.union([z.number(), z.string().transform(Number)])
|
|
488
|
+
.pipe(z.number().int().min(1).max(15))
|
|
489
|
+
.optional()
|
|
490
|
+
.default(8)
|
|
491
|
+
.describe("Max directory depth to walk (default 8)."),
|
|
492
|
+
maxResults: z
|
|
493
|
+
.union([z.number(), z.string().transform(Number)])
|
|
494
|
+
.pipe(z.number().int().min(1).max(2000))
|
|
495
|
+
.optional()
|
|
496
|
+
.default(200)
|
|
497
|
+
.describe("Cap on returned file paths (default 200, max 2000)."),
|
|
498
|
+
}, async (args) => {
|
|
499
|
+
try {
|
|
500
|
+
const detection = detectFramework(args.projectRoot);
|
|
501
|
+
const maxDepth = args.maxDepth ?? 8;
|
|
502
|
+
const maxResults = args.maxResults ?? 200;
|
|
503
|
+
logger.info({ projectRoot: detection.projectRoot, framework: detection.framework }, "Scanning project for test files");
|
|
504
|
+
const found = new Set();
|
|
505
|
+
const searchRoots = detection.testDirs
|
|
506
|
+
.map((d) => path.join(detection.projectRoot, d))
|
|
507
|
+
.filter((d) => fs.existsSync(d));
|
|
508
|
+
const roots = searchRoots.length > 0 ? searchRoots : [detection.projectRoot];
|
|
509
|
+
outer: for (const root of roots) {
|
|
510
|
+
for (const file of walk(root, maxDepth)) {
|
|
511
|
+
const rel = path.relative(detection.projectRoot, file);
|
|
512
|
+
if (matchesAnyGlob(rel, detection.testFileGlobs)) {
|
|
513
|
+
found.add(rel);
|
|
514
|
+
if (found.size >= maxResults)
|
|
515
|
+
break outer;
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
const fileList = [...found].sort();
|
|
520
|
+
let output = `## Test Files in ${detection.projectRoot}\n\n`;
|
|
521
|
+
output += `- **Language**: ${detection.language}\n`;
|
|
522
|
+
output += `- **Framework**: ${detection.framework} (detected from ${detection.detectedFrom})\n`;
|
|
523
|
+
output += `- **Package manager**: ${detection.packageManager ?? "n/a"}\n`;
|
|
524
|
+
output += `- **Search roots**: ${roots.map((r) => path.relative(detection.projectRoot, r) || ".").join(", ")}\n`;
|
|
525
|
+
output += `- **Globs**: ${detection.testFileGlobs.join(", ")}\n`;
|
|
526
|
+
output += `- **Matched**: ${fileList.length}${fileList.length >= maxResults ? " (cap reached)" : ""}\n\n`;
|
|
527
|
+
if (fileList.length === 0) {
|
|
528
|
+
output +=
|
|
529
|
+
"_No matching test files found. Try a different `projectRoot` or pass explicit `maxDepth`._\n";
|
|
530
|
+
}
|
|
531
|
+
else {
|
|
532
|
+
output += fileList.map((f) => `- ${f}`).join("\n") + "\n";
|
|
533
|
+
}
|
|
534
|
+
return { content: [{ type: "text", text: output }] };
|
|
535
|
+
}
|
|
536
|
+
catch (error) {
|
|
537
|
+
return handleMCPError("listTestFiles", error);
|
|
538
|
+
}
|
|
539
|
+
});
|
|
540
|
+
tools.setupTestingBot = server.tool("setupTestingBot", "Detect the testing framework in a project and return the ready-to-paste TestingBot configuration snippet, install command, and env-var requirements. Read-only — never modifies files; the agent or user applies the snippet.", {
|
|
541
|
+
projectRoot: z.string().min(1).describe("Absolute path to the project root to inspect."),
|
|
542
|
+
frameworkOverride: z
|
|
543
|
+
.enum([
|
|
544
|
+
"playwright",
|
|
545
|
+
"cypress",
|
|
546
|
+
"webdriverio",
|
|
547
|
+
"selenium-js",
|
|
548
|
+
"nightwatch",
|
|
549
|
+
"puppeteer",
|
|
550
|
+
"maestro",
|
|
551
|
+
"espresso",
|
|
552
|
+
"xcuitest",
|
|
553
|
+
])
|
|
554
|
+
.optional()
|
|
555
|
+
.describe("Force a specific framework instead of using auto-detection."),
|
|
556
|
+
}, async (args) => {
|
|
557
|
+
try {
|
|
558
|
+
const detection = detectFramework(args.projectRoot);
|
|
559
|
+
const framework = args.frameworkOverride ?? detection.framework;
|
|
560
|
+
logger.info({ projectRoot: detection.projectRoot, framework, override: !!args.frameworkOverride }, "Generating SDK setup instructions");
|
|
561
|
+
const snippet = configSnippet(framework, detection.language);
|
|
562
|
+
const install = installCommand(framework, detection.packageManager);
|
|
563
|
+
let output = `## TestingBot SDK Setup\n\n`;
|
|
564
|
+
output += `- **Project**: ${detection.projectRoot}\n`;
|
|
565
|
+
output += `- **Language**: ${detection.language}\n`;
|
|
566
|
+
output += `- **Framework**: ${framework}${args.frameworkOverride ? " (overridden)" : ` (detected from ${detection.detectedFrom})`}\n`;
|
|
567
|
+
output += `- **Package manager**: ${detection.packageManager ?? "n/a"}\n\n`;
|
|
568
|
+
output += `### 1. Set credentials\n\nExport these in your shell or CI environment:\n\n`;
|
|
569
|
+
output += "```bash\nexport TESTINGBOT_KEY=...\nexport TESTINGBOT_SECRET=...\n```\n\n";
|
|
570
|
+
output += "Get them at https://testingbot.com/members/user/security\n\n";
|
|
571
|
+
if (install) {
|
|
572
|
+
output += `### 2. Install dependency\n\n\`\`\`bash\n${install}\n\`\`\`\n\n### 3. Configure\n\n`;
|
|
573
|
+
}
|
|
574
|
+
else {
|
|
575
|
+
output += `### 2. Configure\n\n`;
|
|
576
|
+
}
|
|
577
|
+
output += snippet + "\n\n";
|
|
578
|
+
output += `### Next steps\n\n`;
|
|
579
|
+
output += `- Run your existing test command — it will execute against TestingBot.\n`;
|
|
580
|
+
output += `- Use \`getTests\` / \`getTestDetails\` / \`getFailureLogs\` to inspect results.\n`;
|
|
581
|
+
return { content: [{ type: "text", text: output }] };
|
|
582
|
+
}
|
|
583
|
+
catch (error) {
|
|
584
|
+
return handleMCPError("setupTestingBot", error);
|
|
585
|
+
}
|
|
586
|
+
});
|
|
587
|
+
return tools;
|
|
588
|
+
}
|
|
589
|
+
//# sourceMappingURL=project.js.map
|