@testingbot/mcp-server 1.0.0 โ†’ 1.0.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.
Files changed (78) hide show
  1. package/README.md +2 -3
  2. package/dist/config.d.ts +3 -0
  3. package/dist/config.d.ts.map +1 -0
  4. package/dist/config.js +18 -0
  5. package/dist/config.js.map +1 -0
  6. package/dist/index.d.ts +3 -0
  7. package/dist/index.d.ts.map +1 -0
  8. package/dist/index.js +26 -0
  9. package/dist/index.js.map +1 -0
  10. package/dist/lib/constants.d.ts +32 -0
  11. package/dist/lib/constants.d.ts.map +1 -0
  12. package/dist/lib/constants.js +32 -0
  13. package/dist/lib/constants.js.map +1 -0
  14. package/dist/lib/error.d.ts +14 -0
  15. package/dist/lib/error.d.ts.map +1 -0
  16. package/dist/lib/error.js +27 -0
  17. package/dist/lib/error.js.map +1 -0
  18. package/dist/lib/get-auth.d.ts +6 -0
  19. package/dist/lib/get-auth.d.ts.map +1 -0
  20. package/dist/lib/get-auth.js +7 -0
  21. package/dist/lib/get-auth.js.map +1 -0
  22. package/dist/lib/logger.d.ts +4 -0
  23. package/dist/lib/logger.d.ts.map +1 -0
  24. package/dist/lib/logger.js +51 -0
  25. package/dist/lib/logger.js.map +1 -0
  26. package/dist/lib/types.d.ts +64 -0
  27. package/dist/lib/types.d.ts.map +1 -0
  28. package/dist/lib/types.js +2 -0
  29. package/dist/lib/types.js.map +1 -0
  30. package/dist/lib/utils.d.ts +12 -0
  31. package/dist/lib/utils.d.ts.map +1 -0
  32. package/dist/lib/utils.js +40 -0
  33. package/dist/lib/utils.js.map +1 -0
  34. package/dist/server-factory.d.ts +19 -0
  35. package/dist/server-factory.d.ts.map +1 -0
  36. package/dist/server-factory.js +98 -0
  37. package/dist/server-factory.js.map +1 -0
  38. package/dist/tools/browsers.d.ts +3 -0
  39. package/dist/tools/browsers.d.ts.map +1 -0
  40. package/dist/tools/browsers.js +73 -0
  41. package/dist/tools/browsers.js.map +1 -0
  42. package/dist/tools/builds.d.ts +3 -0
  43. package/dist/tools/builds.d.ts.map +1 -0
  44. package/dist/tools/builds.js +115 -0
  45. package/dist/tools/builds.js.map +1 -0
  46. package/dist/tools/cdp.d.ts +3 -0
  47. package/dist/tools/cdp.d.ts.map +1 -0
  48. package/dist/tools/cdp.js +78 -0
  49. package/dist/tools/cdp.js.map +1 -0
  50. package/dist/tools/live.d.ts +3 -0
  51. package/dist/tools/live.d.ts.map +1 -0
  52. package/dist/tools/live.js +221 -0
  53. package/dist/tools/live.js.map +1 -0
  54. package/dist/tools/screenshots.d.ts +3 -0
  55. package/dist/tools/screenshots.d.ts.map +1 -0
  56. package/dist/tools/screenshots.js +132 -0
  57. package/dist/tools/screenshots.js.map +1 -0
  58. package/dist/tools/storage.d.ts +3 -0
  59. package/dist/tools/storage.d.ts.map +1 -0
  60. package/dist/tools/storage.js +114 -0
  61. package/dist/tools/storage.js.map +1 -0
  62. package/dist/tools/team.d.ts +3 -0
  63. package/dist/tools/team.d.ts.map +1 -0
  64. package/dist/tools/team.js +171 -0
  65. package/dist/tools/team.js.map +1 -0
  66. package/dist/tools/tests.d.ts +3 -0
  67. package/dist/tools/tests.d.ts.map +1 -0
  68. package/dist/tools/tests.js +307 -0
  69. package/dist/tools/tests.js.map +1 -0
  70. package/dist/tools/tunnels.d.ts +3 -0
  71. package/dist/tools/tunnels.d.ts.map +1 -0
  72. package/dist/tools/tunnels.js +74 -0
  73. package/dist/tools/tunnels.js.map +1 -0
  74. package/dist/tools/user.d.ts +3 -0
  75. package/dist/tools/user.d.ts.map +1 -0
  76. package/dist/tools/user.js +65 -0
  77. package/dist/tools/user.js.map +1 -0
  78. package/package.json +1 -1
package/README.md CHANGED
@@ -10,7 +10,7 @@ TestingBot's official Model Context Protocol (MCP) server implementation. This s
10
10
  - ๐Ÿ–ฅ๏ธ **Live Testing** - Start interactive manual testing sessions on real browsers and devices
11
11
  - ๐ŸŒ **Browser & Device Management** - Query available browsers and real devices
12
12
  - ๐Ÿงช **Test Management** - Create, retrieve, update, and delete tests with comprehensive details
13
- - ๐Ÿ“ฆ **Storage Management** - Upload and manage mobile app files (APK, IPA)
13
+ - ๐Ÿ“ฆ **Storage Management** - Upload and manage mobile app files (APK, IPA, ZIP)
14
14
  - ๐Ÿ“ธ **Screenshot Testing** - Take cross-browser screenshots
15
15
  - ๐Ÿ—๏ธ **Build Management** - Organize tests into builds
16
16
  - ๐Ÿ‘ค **User Account** - View and update account information
@@ -651,8 +651,7 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
651
651
 
652
652
  - ๐Ÿ“ง Email: support@testingbot.com
653
653
  - ๐Ÿ› Issues: [GitHub Issues](https://github.com/testingbot/mcp-server/issues)
654
- - ๐Ÿ“– Documentation: [TestingBot Documentation](https://testingbot.com/support)
655
- - ๐Ÿ’ฌ Community: [TestingBot Forum](https://testingbot.com/support/forums)
654
+ - ๐Ÿ“– Documentation: [TestingBot MCP Documentation](https://testingbot.com/support/ai/mcp)
656
655
 
657
656
  ## Related
658
657
 
@@ -0,0 +1,3 @@
1
+ import { TestingBotConfig } from "./lib/types.js";
2
+ export declare function getConfig(): TestingBotConfig;
3
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAKlD,wBAAgB,SAAS,IAAI,gBAAgB,CAmB5C"}
package/dist/config.js ADDED
@@ -0,0 +1,18 @@
1
+ import dotenv from "dotenv";
2
+ import { AuthenticationError } from "./lib/error.js";
3
+ dotenv.config();
4
+ export function getConfig() {
5
+ const key = process.env.TESTINGBOT_KEY || process.env.TB_KEY || process.env.TESTINGBOT_USERNAME || "";
6
+ const secret = process.env.TESTINGBOT_SECRET ||
7
+ process.env.TB_SECRET ||
8
+ process.env.TESTINGBOT_ACCESS_KEY ||
9
+ "";
10
+ if (!key || !secret) {
11
+ throw new AuthenticationError("TestingBot credentials not found. Please set TESTINGBOT_KEY and TESTINGBOT_SECRET environment variables.");
12
+ }
13
+ return {
14
+ "testingbot-key": key,
15
+ "testingbot-secret": secret,
16
+ };
17
+ }
18
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAErD,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,UAAU,SAAS;IACvB,MAAM,GAAG,GACP,OAAO,CAAC,GAAG,CAAC,cAAc,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,IAAI,OAAO,CAAC,GAAG,CAAC,mBAAmB,IAAI,EAAE,CAAC;IAC5F,MAAM,MAAM,GACV,OAAO,CAAC,GAAG,CAAC,iBAAiB;QAC7B,OAAO,CAAC,GAAG,CAAC,SAAS;QACrB,OAAO,CAAC,GAAG,CAAC,qBAAqB;QACjC,EAAE,CAAC;IAEL,IAAI,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;QACpB,MAAM,IAAI,mBAAmB,CAC3B,0GAA0G,CAC3G,CAAC;IACJ,CAAC;IAED,OAAO;QACL,gBAAgB,EAAE,GAAG;QACrB,mBAAmB,EAAE,MAAM;KAC5B,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
package/dist/index.js ADDED
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env node
2
+ import { getConfig } from "./config.js";
3
+ import { TestingBotMcpServer } from "./server-factory.js";
4
+ import logger from "./lib/logger.js";
5
+ import { createRequire } from "module";
6
+ const require = createRequire(import.meta.url);
7
+ const TestingBot = require("testingbot-api");
8
+ async function main() {
9
+ try {
10
+ logger.info("Starting TestingBot MCP Server...");
11
+ const config = getConfig();
12
+ const testingBotApi = new TestingBot({
13
+ api_key: config["testingbot-key"],
14
+ api_secret: config["testingbot-secret"],
15
+ });
16
+ const mcpServer = new TestingBotMcpServer(testingBotApi, config);
17
+ await mcpServer.run();
18
+ }
19
+ catch (error) {
20
+ logger.error({ error }, "Failed to start server");
21
+ console.error("Error starting TestingBot MCP Server:", error);
22
+ process.exit(1);
23
+ }
24
+ }
25
+ main();
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEvC,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC/C,MAAM,UAAU,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAE7C,KAAK,UAAU,IAAI;IACjB,IAAI,CAAC;QACH,MAAM,CAAC,IAAI,CAAC,mCAAmC,CAAC,CAAC;QAEjD,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAE3B,MAAM,aAAa,GAAG,IAAI,UAAU,CAAC;YACnC,OAAO,EAAE,MAAM,CAAC,gBAAgB,CAAC;YACjC,UAAU,EAAE,MAAM,CAAC,mBAAmB,CAAC;SACxC,CAAC,CAAC;QAEH,MAAM,SAAS,GAAG,IAAI,mBAAmB,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;QACjE,MAAM,SAAS,CAAC,GAAG,EAAE,CAAC;IACxB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,EAAE,wBAAwB,CAAC,CAAC;QAClD,OAAO,CAAC,KAAK,CAAC,uCAAuC,EAAE,KAAK,CAAC,CAAC;QAC9D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC"}
@@ -0,0 +1,32 @@
1
+ export declare const SessionType: {
2
+ readonly WebDriver: "webdriver";
3
+ readonly Selenium: "selenium";
4
+ };
5
+ export declare const LogType: {
6
+ readonly SeleniumLog: "selenium-log";
7
+ readonly NetworkLog: "network-log";
8
+ readonly VitalsLog: "vitals-log";
9
+ readonly VideoLog: "video-log";
10
+ };
11
+ export declare const TestStatus: {
12
+ readonly Passed: "passed";
13
+ readonly Failed: "failed";
14
+ readonly Error: "error";
15
+ readonly Running: "running";
16
+ readonly Queued: "queued";
17
+ };
18
+ export declare const Platform: {
19
+ readonly Windows: "WINDOWS";
20
+ readonly Mac: "MAC";
21
+ readonly Linux: "LINUX";
22
+ readonly Android: "ANDROID";
23
+ readonly iOS: "IOS";
24
+ };
25
+ export declare const BrowserType: {
26
+ readonly Chrome: "chrome";
27
+ readonly Firefox: "firefox";
28
+ readonly Safari: "safari";
29
+ readonly Edge: "microsoftedge";
30
+ readonly IE: "internet explorer";
31
+ };
32
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/lib/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;CAGd,CAAC;AAEX,eAAO,MAAM,OAAO;;;;;CAKV,CAAC;AAEX,eAAO,MAAM,UAAU;;;;;;CAMb,CAAC;AAEX,eAAO,MAAM,QAAQ;;;;;;CAMX,CAAC;AAEX,eAAO,MAAM,WAAW;;;;;;CAMd,CAAC"}
@@ -0,0 +1,32 @@
1
+ export const SessionType = {
2
+ WebDriver: "webdriver",
3
+ Selenium: "selenium",
4
+ };
5
+ export const LogType = {
6
+ SeleniumLog: "selenium-log",
7
+ NetworkLog: "network-log",
8
+ VitalsLog: "vitals-log",
9
+ VideoLog: "video-log",
10
+ };
11
+ export const TestStatus = {
12
+ Passed: "passed",
13
+ Failed: "failed",
14
+ Error: "error",
15
+ Running: "running",
16
+ Queued: "queued",
17
+ };
18
+ export const Platform = {
19
+ Windows: "WINDOWS",
20
+ Mac: "MAC",
21
+ Linux: "LINUX",
22
+ Android: "ANDROID",
23
+ iOS: "IOS",
24
+ };
25
+ export const BrowserType = {
26
+ Chrome: "chrome",
27
+ Firefox: "firefox",
28
+ Safari: "safari",
29
+ Edge: "microsoftedge",
30
+ IE: "internet explorer",
31
+ };
32
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/lib/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAEX,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,WAAW,EAAE,cAAc;IAC3B,UAAU,EAAE,aAAa;IACzB,SAAS,EAAE,YAAY;IACvB,QAAQ,EAAE,WAAW;CACb,CAAC;AAEX,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACR,CAAC;AAEX,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,OAAO,EAAE,SAAS;IAClB,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,GAAG,EAAE,KAAK;CACF,CAAC;AAEX,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,eAAe;IACrB,EAAE,EAAE,mBAAmB;CACf,CAAC"}
@@ -0,0 +1,14 @@
1
+ export declare class TestingBotMCPError extends Error {
2
+ constructor(message: string);
3
+ }
4
+ export declare class AuthenticationError extends TestingBotMCPError {
5
+ constructor(message?: string);
6
+ }
7
+ export declare class APIError extends TestingBotMCPError {
8
+ statusCode?: number | undefined;
9
+ constructor(message: string, statusCode?: number | undefined);
10
+ }
11
+ export declare class ValidationError extends TestingBotMCPError {
12
+ constructor(message: string);
13
+ }
14
+ //# sourceMappingURL=error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../src/lib/error.ts"],"names":[],"mappings":"AAAA,qBAAa,kBAAmB,SAAQ,KAAK;gBAC/B,OAAO,EAAE,MAAM;CAI5B;AAED,qBAAa,mBAAoB,SAAQ,kBAAkB;gBAC7C,OAAO,SAA0D;CAI9E;AAED,qBAAa,QAAS,SAAQ,kBAAkB;IAGrC,UAAU,CAAC,EAAE,MAAM;gBAD1B,OAAO,EAAE,MAAM,EACR,UAAU,CAAC,EAAE,MAAM,YAAA;CAK7B;AAED,qBAAa,eAAgB,SAAQ,kBAAkB;gBACzC,OAAO,EAAE,MAAM;CAI5B"}
@@ -0,0 +1,27 @@
1
+ export class TestingBotMCPError extends Error {
2
+ constructor(message) {
3
+ super(message);
4
+ this.name = "TestingBotMCPError";
5
+ }
6
+ }
7
+ export class AuthenticationError extends TestingBotMCPError {
8
+ constructor(message = "Authentication failed. Please check your credentials.") {
9
+ super(message);
10
+ this.name = "AuthenticationError";
11
+ }
12
+ }
13
+ export class APIError extends TestingBotMCPError {
14
+ statusCode;
15
+ constructor(message, statusCode) {
16
+ super(message);
17
+ this.statusCode = statusCode;
18
+ this.name = "APIError";
19
+ }
20
+ }
21
+ export class ValidationError extends TestingBotMCPError {
22
+ constructor(message) {
23
+ super(message);
24
+ this.name = "ValidationError";
25
+ }
26
+ }
27
+ //# sourceMappingURL=error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error.js","sourceRoot":"","sources":["../../src/lib/error.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,kBAAmB,SAAQ,KAAK;IAC3C,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,oBAAoB,CAAC;IACnC,CAAC;CACF;AAED,MAAM,OAAO,mBAAoB,SAAQ,kBAAkB;IACzD,YAAY,OAAO,GAAG,uDAAuD;QAC3E,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC;IACpC,CAAC;CACF;AAED,MAAM,OAAO,QAAS,SAAQ,kBAAkB;IAGrC;IAFT,YACE,OAAe,EACR,UAAmB;QAE1B,KAAK,CAAC,OAAO,CAAC,CAAC;QAFR,eAAU,GAAV,UAAU,CAAS;QAG1B,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC;IACzB,CAAC;CACF;AAED,MAAM,OAAO,eAAgB,SAAQ,kBAAkB;IACrD,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC;IAChC,CAAC;CACF"}
@@ -0,0 +1,6 @@
1
+ import { TestingBotConfig } from "./types.js";
2
+ export declare function getAuth(config: TestingBotConfig): {
3
+ username: string;
4
+ password: string;
5
+ };
6
+ //# sourceMappingURL=get-auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-auth.d.ts","sourceRoot":"","sources":["../../src/lib/get-auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9C,wBAAgB,OAAO,CAAC,MAAM,EAAE,gBAAgB,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAKxF"}
@@ -0,0 +1,7 @@
1
+ export function getAuth(config) {
2
+ return {
3
+ username: config["testingbot-key"],
4
+ password: config["testingbot-secret"],
5
+ };
6
+ }
7
+ //# sourceMappingURL=get-auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-auth.js","sourceRoot":"","sources":["../../src/lib/get-auth.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,OAAO,CAAC,MAAwB;IAC9C,OAAO;QACL,QAAQ,EAAE,MAAM,CAAC,gBAAgB,CAAC;QAClC,QAAQ,EAAE,MAAM,CAAC,mBAAmB,CAAC;KACtC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import pino from "pino";
2
+ declare const logger: pino.Logger<never, boolean>;
3
+ export default logger;
4
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/lib/logger.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAwBxB,QAAA,MAAM,MAAM,6BAyBV,CAAC;AAOH,eAAe,MAAM,CAAC"}
@@ -0,0 +1,51 @@
1
+ import pino from "pino";
2
+ import path from "path";
3
+ import { fileURLToPath } from "url";
4
+ import fs from "fs";
5
+ const __filename = fileURLToPath(import.meta.url);
6
+ const __dirname = path.dirname(__filename);
7
+ // Check if debug logging is enabled via environment variable
8
+ const debugToFile = process.env.TESTINGBOT_DEBUG === "true";
9
+ const isDevMode = process.env.NODE_ENV === "development" || process.argv.includes("--dev");
10
+ const logLevel = process.env.LOG_LEVEL || (isDevMode || debugToFile ? "info" : "error");
11
+ // Create logs directory if it doesn't exist and debug is enabled
12
+ let logFilePath;
13
+ if (debugToFile) {
14
+ const logsDir = path.join(__dirname, "../../logs");
15
+ if (!fs.existsSync(logsDir)) {
16
+ fs.mkdirSync(logsDir, { recursive: true });
17
+ }
18
+ logFilePath = path.join(logsDir, `debug.log`);
19
+ }
20
+ // Configure logger based on debug mode
21
+ const logger = pino({
22
+ level: logLevel,
23
+ transport: debugToFile && logFilePath
24
+ ? {
25
+ target: "pino-pretty",
26
+ options: {
27
+ colorize: false,
28
+ translateTime: "yyyy-mm-dd HH:MM:ss",
29
+ ignore: "pid,hostname",
30
+ destination: logFilePath,
31
+ mkdir: true,
32
+ },
33
+ }
34
+ : isDevMode
35
+ ? {
36
+ target: "pino-pretty",
37
+ options: {
38
+ colorize: true,
39
+ translateTime: "HH:MM:ss Z",
40
+ ignore: "pid,hostname",
41
+ destination: 2, // Write to stderr (fd 2) instead of stdout
42
+ },
43
+ }
44
+ : undefined,
45
+ });
46
+ if (debugToFile && logFilePath) {
47
+ // Log to stderr so it appears in Claude Desktop logs
48
+ console.error(`๐Ÿ› Debug logging enabled: ${logFilePath}`);
49
+ }
50
+ export default logger;
51
+ //# sourceMappingURL=logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/lib/logger.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,MAAM,IAAI,CAAC;AAEpB,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;AAE3C,6DAA6D;AAC7D,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,KAAK,MAAM,CAAC;AAC5D,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AAC3F,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,CAAC,SAAS,IAAI,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,C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BotOptions {
6
+ api_key?: string;
7
+ api_secret?: string;
8
+ debug?: boolean;
9
+ }
10
+ export interface Browser {
11
+ browserName: string;
12
+ version?: string;
13
+ platform?: string;
14
+ os?: string;
15
+ }
16
+ export interface Device {
17
+ id: string;
18
+ name: string;
19
+ platform: string;
20
+ version: string;
21
+ available: boolean;
22
+ }
23
+ export interface Test {
24
+ session_id: string;
25
+ status: string;
26
+ browser: string;
27
+ version: string;
28
+ platform: string;
29
+ duration: number;
30
+ created_at: string;
31
+ [key: string]: any;
32
+ }
33
+ export interface Build {
34
+ id: number;
35
+ name: string;
36
+ tests: number;
37
+ created_at: string;
38
+ [key: string]: any;
39
+ }
40
+ export interface UserInfo {
41
+ first_name: string;
42
+ last_name: string;
43
+ email: string;
44
+ [key: string]: any;
45
+ }
46
+ export interface Screenshot {
47
+ id: string;
48
+ url: string;
49
+ screenshots: Array<{
50
+ browser: string;
51
+ version: string;
52
+ os: string;
53
+ image_url: string;
54
+ thumb_url: string;
55
+ }>;
56
+ [key: string]: any;
57
+ }
58
+ export interface StorageFile {
59
+ app_url: string;
60
+ name: string;
61
+ size: number;
62
+ uploaded_at: string;
63
+ }
64
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,OAAO;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,EAAE,CAAC,E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AC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ export declare function sanitizeSessionId(sessionId: string): string;
2
+ export declare function formatError(error: unknown): string;
3
+ export declare function handleMCPError(toolName: string, error: unknown): {
4
+ content: Array<{
5
+ type: string;
6
+ text: string;
7
+ }>;
8
+ isError: boolean;
9
+ };
10
+ export declare function validateUrl(url: string): boolean;
11
+ export declare function sleep(ms: number): Promise<void>;
12
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAEA,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE3D;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAKlD;AAED,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,OAAO,GACb;IACD,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC/C,OAAO,EAAE,OAAO,CAAC;CAClB,CAkBA;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAOhD;AAED,wBAAgB,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAE/C"}
@@ -0,0 +1,40 @@
1
+ import logger from "./logger.js";
2
+ export function sanitizeSessionId(sessionId) {
3
+ return sessionId.replace(/[^a-zA-Z0-9-_]/g, "");
4
+ }
5
+ export function formatError(error) {
6
+ if (error instanceof Error) {
7
+ return error.message;
8
+ }
9
+ return String(error);
10
+ }
11
+ export function handleMCPError(toolName, error) {
12
+ const errorMessage = formatError(error);
13
+ logger.error({ tool: toolName, error: errorMessage }, "Tool execution failed");
14
+ const readableToolName = toolName
15
+ .replace(/([A-Z])/g, " $1")
16
+ .toLowerCase()
17
+ .trim();
18
+ return {
19
+ content: [
20
+ {
21
+ type: "text",
22
+ text: `Failed to ${readableToolName}: ${errorMessage}. Please check your credentials and try again.`,
23
+ },
24
+ ],
25
+ isError: true,
26
+ };
27
+ }
28
+ export function validateUrl(url) {
29
+ try {
30
+ new URL(url);
31
+ return true;
32
+ }
33
+ catch {
34
+ return false;
35
+ }
36
+ }
37
+ export function sleep(ms) {
38
+ return new Promise((resolve) => setTimeout(resolve, ms));
39
+ }
40
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,MAAM,UAAU,iBAAiB,CAAC,SAAiB;IACjD,OAAO,SAAS,CAAC,OAAO,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC;AAClD,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,KAAc;IACxC,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;QAC3B,OAAO,KAAK,CAAC,OAAO,CAAC;IACvB,CAAC;IACD,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC;AAED,MAAM,UAAU,cAAc,CAC5B,QAAgB,EAChB,KAAc;IAKd,MAAM,YAAY,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;IACxC,MAAM,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE,uBAAuB,CAAC,CAAC;IAE/E,MAAM,gBAAgB,GAAG,QAAQ;SAC9B,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC;SAC1B,WAAW,EAAE;SACb,IAAI,EAAE,CAAC;IAEV,OAAO;QACL,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,aAAa,gBAAgB,KAAK,YAAY,gDAAgD;aACrG;SACF;QACD,OAAO,EAAE,IAAI;KACd,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,GAAW;IACrC,IAAI,CAAC;QACH,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC;QACb,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED,MAAM,UAAU,KAAK,CAAC,EAAU;IAC9B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;AAC3D,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { Server as McpServer } from "@modelcontextprotocol/sdk/server/index.js";
2
+ import { TestingBotConfig } from "./lib/types.js";
3
+ export declare class TestingBotMcpServer {
4
+ server: McpServer;
5
+ tools: Record<string, any>;
6
+ private testingBotApi;
7
+ private config;
8
+ constructor(testingBotApi: any, config: TestingBotConfig);
9
+ private setupHandlers;
10
+ private registerTools;
11
+ tool(name: string, description: string, schema: any, handler: (args: any) => Promise<any>): {
12
+ name: string;
13
+ description: string;
14
+ schema: any;
15
+ handler: (args: any) => Promise<any>;
16
+ };
17
+ run(): Promise<void>;
18
+ }
19
+ //# sourceMappingURL=server-factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server-factory.d.ts","sourceRoot":"","sources":["../src/server-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,2CAA2C,CAAC;AAGhF,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAkBlD,qBAAa,mBAAmB;IACvB,MAAM,EAAE,SAAS,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAM;IACvC,OAAO,CAAC,aAAa,CAAM;IAC3B,OAAO,CAAC,MAAM,CAAmB;gBAErB,aAAa,EAAE,GAAG,EAAE,MAAM,EAAE,gBAAgB;IAoBxD,OAAO,CAAC,aAAa;IAgCrB,OAAO,CAAC,aAAa;IAsBd,IAAI,CACT,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,GAAG,EACX,OAAO,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC;;;;wBAApB,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC;;IAYzB,GAAG;CAKjB"}
@@ -0,0 +1,98 @@
1
+ import { Server as McpServer } from "@modelcontextprotocol/sdk/server/index.js";
2
+ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
3
+ import { CallToolRequestSchema, ListToolsRequestSchema } from "@modelcontextprotocol/sdk/types.js";
4
+ import logger from "./lib/logger.js";
5
+ import { createRequire } from "module";
6
+ const require = createRequire(import.meta.url);
7
+ const packageJson = require("../package.json");
8
+ import addBrowserTools from "./tools/browsers.js";
9
+ import addTestTools from "./tools/tests.js";
10
+ import addBuildTools from "./tools/builds.js";
11
+ import addStorageTools from "./tools/storage.js";
12
+ import addScreenshotTools from "./tools/screenshots.js";
13
+ import addUserTools from "./tools/user.js";
14
+ import addLiveTools from "./tools/live.js";
15
+ import addTeamTools from "./tools/team.js";
16
+ import addCdpTools from "./tools/cdp.js";
17
+ import addTunnelTools from "./tools/tunnels.js";
18
+ export class TestingBotMcpServer {
19
+ server;
20
+ tools = {};
21
+ testingBotApi;
22
+ config;
23
+ constructor(testingBotApi, config) {
24
+ this.testingBotApi = testingBotApi;
25
+ this.config = config;
26
+ this.server = new McpServer({
27
+ name: packageJson.name || "testingbot-mcp-server",
28
+ version: packageJson.version || "1.0.0",
29
+ }, {
30
+ capabilities: {
31
+ tools: {},
32
+ },
33
+ });
34
+ this.registerTools();
35
+ this.setupHandlers();
36
+ }
37
+ setupHandlers() {
38
+ // Handle tools/list request
39
+ this.server.setRequestHandler(ListToolsRequestSchema, async () => {
40
+ return {
41
+ tools: Object.values(this.tools).map((tool) => ({
42
+ name: tool.name,
43
+ description: tool.description,
44
+ inputSchema: {
45
+ type: "object",
46
+ properties: tool.schema,
47
+ required: Object.keys(tool.schema).filter((key) => !tool.schema[key].isOptional?.()),
48
+ },
49
+ })),
50
+ };
51
+ });
52
+ // Handle tools/call request
53
+ this.server.setRequestHandler(CallToolRequestSchema, async (request) => {
54
+ const toolName = request.params.name;
55
+ const toolArgs = request.params.arguments || {};
56
+ logger.info({ tool: toolName, args: toolArgs }, "Tool called");
57
+ const tool = this.tools[toolName];
58
+ if (!tool) {
59
+ throw new Error(`Tool not found: ${toolName}`);
60
+ }
61
+ return tool.handler(toolArgs);
62
+ });
63
+ }
64
+ registerTools() {
65
+ const toolAdders = [
66
+ addBrowserTools,
67
+ addTestTools,
68
+ addBuildTools,
69
+ addStorageTools,
70
+ addScreenshotTools,
71
+ addUserTools,
72
+ addLiveTools,
73
+ addTeamTools,
74
+ addCdpTools,
75
+ addTunnelTools,
76
+ ];
77
+ toolAdders.forEach((adder) => {
78
+ const addedTools = adder(this, this.testingBotApi, this.config);
79
+ Object.assign(this.tools, addedTools);
80
+ });
81
+ logger.info({ toolCount: Object.keys(this.tools).length }, "Tools registered");
82
+ }
83
+ tool(name, description, schema, handler) {
84
+ const tool = {
85
+ name,
86
+ description,
87
+ schema,
88
+ handler,
89
+ };
90
+ return tool;
91
+ }
92
+ async run() {
93
+ const transport = new StdioServerTransport();
94
+ await this.server.connect(transport);
95
+ logger.info("TestingBot MCP Server running on stdio");
96
+ }
97
+ }
98
+ //# sourceMappingURL=server-factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server-factory.js","sourceRoot":"","sources":["../src/server-factory.ts"],"names":[],"mappings":"AAAA,OAA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AmB,QAAQ,EAAE,CAAC,CAAC;YACjD,CAAC;YAED,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAChC,CAAC,CAAC,CAAC;IACL,CAAC;IAEO,aAAa;QACnB,MAAM,UAAU,GAAG;YACjB,eAAe;YACf,YAAY;YACZ,aAAa;YACb,eAAe;YACf,kBAAkB;YAClB,YAAY;YACZ,YAAY;YACZ,YAAY;YACZ,WAAW;YACX,cAAc;SACf,CAAC;QAEF,UAAU,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;YAC3B,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;YAChE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;QACxC,CAAC,CAAC,CAAC;QAEH,MAAM,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,EAAE,kBAAkB,CAAC,CAAC;IACjF,CAAC;IAEM,IAAI,CACT,IAAY,EACZ,WAAmB,EACnB,MAAW,EACX,OAAoC;QAEpC,MAAM,IAAI,GAAG;YACX,IAAI;YACJ,WAAW;YACX,MAAM;YACN,OAAO;SACR,CAAC;QAEF,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,GAAG;QACd,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;QAC7C,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QACrC,MAAM,CAAC,IAAI,CAAC,wCAAwC,CAAC,CAAC;IACxD,CAAC;CACF"}
@@ -0,0 +1,3 @@
1
+ import { TestingBotConfig } from "../lib/types.js";
2
+ export default function addBrowserTools(server: any, testingBotApi: any, _config: TestingBotConfig): Record<string, any>;
3
+ //# sourceMappingURL=browsers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"browsers.d.ts","sourceRoot":"","sources":["../../src/tools/browsers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAInD,MAAM,CAAC,OAAO,UAAU,eAAe,CACrC,MAAM,EAAE,GAAG,EACX,aAAa,EAAE,GAAG,EAClB,OAAO,EAAE,gBAAgB,uBAsF1B"}