@debugg-ai/debugg-ai-mcp 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 (40) hide show
  1. package/README.md +2 -0
  2. package/dist/e2e-agents/e2eRunner.js +169 -0
  3. package/dist/e2e-agents/recordingHandler.js +57 -0
  4. package/dist/e2e-agents/resultsFormatter.js +102 -0
  5. package/dist/index.js +177 -0
  6. package/dist/services/coverage.js +127 -0
  7. package/dist/services/e2es.js +170 -0
  8. package/dist/services/index.js +36 -0
  9. package/dist/services/issues.js +132 -0
  10. package/dist/services/repos.js +23 -0
  11. package/dist/services/types.js +1 -0
  12. package/dist/src/e2e-agents/e2eRunner.js +127 -0
  13. package/dist/src/e2e-agents/recordingHandler.js +57 -0
  14. package/dist/src/e2e-agents/resultsFormatter.js +102 -0
  15. package/dist/src/index.js +107 -0
  16. package/dist/src/services/coverage.js +127 -0
  17. package/dist/src/services/e2es.js +170 -0
  18. package/dist/src/services/index.js +36 -0
  19. package/dist/src/services/indexes.js +74 -0
  20. package/dist/src/services/issues.js +132 -0
  21. package/dist/src/services/repos.js +23 -0
  22. package/dist/src/services/types.js +1 -0
  23. package/dist/src/tunnels/ngrok/error.js +3 -0
  24. package/dist/src/tunnels/ngrok/index.js +154 -0
  25. package/dist/src/tunnels/ngrok/statusBarItem.js +25 -0
  26. package/dist/src/tunnels/ngrok/types.js +2 -0
  27. package/dist/src/utils/axios.js +35 -0
  28. package/dist/src/utils/axiosNaming.js +31 -0
  29. package/dist/src/utils/axiosTransport.js +57 -0
  30. package/dist/src/utils/objectNaming.js +47 -0
  31. package/dist/src/utils/transportConfig.js +1 -0
  32. package/dist/tunnels/ngrok/error.js +3 -0
  33. package/dist/tunnels/ngrok/index.js +159 -0
  34. package/dist/tunnels/ngrok/types.js +2 -0
  35. package/dist/utils/axios.js +35 -0
  36. package/dist/utils/axiosNaming.js +31 -0
  37. package/dist/utils/axiosTransport.js +57 -0
  38. package/dist/utils/objectNaming.js +47 -0
  39. package/dist/utils/transportConfig.js +1 -0
  40. package/package.json +45 -0
@@ -0,0 +1,47 @@
1
+ // Function to handle converting a string to camelCase
2
+ export function stringToCamelCase(str) {
3
+ return str
4
+ .toLowerCase()
5
+ .split("_")
6
+ .map((s, i) => i === 0 ? s : s.slice(0, 1).toUpperCase() + s.slice(1, s.length))
7
+ .join("");
8
+ }
9
+ // Function to handle converting a string to snake_case
10
+ export function stringToSnakeCase(str) {
11
+ return str.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`);
12
+ }
13
+ // Function to handle switching API data response objects into camelCase
14
+ export function objToCamelCase(obj) {
15
+ if (!obj) {
16
+ return obj;
17
+ }
18
+ if (Array.isArray(obj)) {
19
+ return obj.map((entry) => typeof entry !== "object" ? entry : objToCamelCase(entry));
20
+ }
21
+ const newObj = Object.entries(obj).reduce((acc, [key, value]) => {
22
+ const newKey = stringToCamelCase(key);
23
+ const newValue = typeof value !== "object" ? value : objToCamelCase(value);
24
+ acc[newKey] = newValue;
25
+ return acc;
26
+ }, {});
27
+ return newObj;
28
+ }
29
+ // Function to handle switching objects into snake_case
30
+ export function objToSnakeCase(obj) {
31
+ if (!obj) {
32
+ return obj;
33
+ }
34
+ if (obj instanceof File || obj instanceof FormData) {
35
+ return obj;
36
+ }
37
+ if (Array.isArray(obj)) {
38
+ return obj.map((entry) => typeof entry !== "object" ? entry : objToSnakeCase(entry));
39
+ }
40
+ const newObj = Object.entries(obj).reduce((acc, [key, value]) => {
41
+ const newKey = stringToSnakeCase(key);
42
+ const newValue = typeof value !== "object" ? value : objToSnakeCase(value);
43
+ acc[newKey] = newValue;
44
+ return acc;
45
+ }, {});
46
+ return newObj;
47
+ }
@@ -0,0 +1 @@
1
+ export {};
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "@debugg-ai/debugg-ai-mcp",
3
+ "version": "1.0.1",
4
+ "description": "MCP Server for debugg ai web browsing",
5
+ "type": "module",
6
+ "bin": {
7
+ "debugg-ai-mcp": "dist/index.js"
8
+ },
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "scripts": {
13
+ "build": "tsc && shx chmod +x dist/*.js",
14
+ "prepare": "npm run build",
15
+ "watch": "tsc --watch"
16
+ },
17
+ "keywords": [
18
+ "debugg",
19
+ "ai",
20
+ "mcp",
21
+ "server",
22
+ "web",
23
+ "browsing",
24
+ "testing",
25
+ "ai testing",
26
+ "vibe code testing"
27
+ ],
28
+ "author": "Quinn Osha",
29
+ "license": "Apache-2.0",
30
+ "homepage": "https://debugg.ai",
31
+ "bugs": "https://github.com/debugg-ai/debugg-ai-mcp/issues",
32
+ "dependencies": {
33
+ "@modelcontextprotocol/sdk": "^1.12.0",
34
+ "axios": "^1.9.0",
35
+ "mkdirp": "^3.0.1",
36
+ "ngrok": "^5.0.0-beta.2",
37
+ "uuid": "^11.1.0",
38
+ "zod": "^3.25.32"
39
+ },
40
+ "devDependencies": {
41
+ "@types/node": "^22.15.24",
42
+ "shx": "^0.4.0",
43
+ "typescript": "^5.8.3"
44
+ }
45
+ }