@browserstack/mcp-server 1.2.13 → 1.2.14

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.
@@ -48,6 +48,7 @@ export declare function handleMCPError(toolName: string, server: McpServer, conf
48
48
  type: "resource_link";
49
49
  description?: string | undefined;
50
50
  mimeType?: string | undefined;
51
+ size?: number | undefined;
51
52
  annotations?: {
52
53
  audience?: ("user" | "assistant")[] | undefined;
53
54
  priority?: number | undefined;
@@ -222,6 +222,7 @@ export default function addAppAutomationTools(server, config) {
222
222
  text: `Error during app automation or screenshot capture: ${errorMessage}`,
223
223
  },
224
224
  ],
225
+ isError: true,
225
226
  };
226
227
  }
227
228
  });
@@ -36,7 +36,16 @@ export async function fetchAutomationScreenshotsTool(args, config) {
36
36
  }
37
37
  catch (error) {
38
38
  logger.error("Error during fetching screenshots", error);
39
- throw error;
39
+ const errorMessage = error instanceof Error ? error.message : "Unknown error";
40
+ return {
41
+ content: [
42
+ {
43
+ type: "text",
44
+ text: `Error during fetching screenshots: ${errorMessage}`,
45
+ },
46
+ ],
47
+ isError: true,
48
+ };
40
49
  }
41
50
  }
42
51
  //Registers the fetchAutomationScreenshots tool with the MCP server
@@ -64,6 +73,7 @@ export default function addAutomationTools(server, config) {
64
73
  text: `Error during fetching automate screenshots: ${errorMessage}`,
65
74
  },
66
75
  ],
76
+ isError: true,
67
77
  };
68
78
  }
69
79
  });
@@ -33,6 +33,7 @@ export async function getBuildIdTool(args, config) {
33
33
  text: `Error fetching build ID: ${errorMessage}`,
34
34
  },
35
35
  ],
36
+ isError: true,
36
37
  };
37
38
  }
38
39
  }
@@ -55,7 +56,16 @@ export async function fetchRCADataTool(args, config) {
55
56
  }
56
57
  catch (error) {
57
58
  logger.error("Error fetching RCA data", error);
58
- throw error;
59
+ const errorMessage = error instanceof Error ? error.message : "Unknown error";
60
+ return {
61
+ content: [
62
+ {
63
+ type: "text",
64
+ text: `Error fetching RCA data: ${errorMessage}`,
65
+ },
66
+ ],
67
+ isError: true,
68
+ };
59
69
  }
60
70
  }
61
71
  export async function listTestIdsTool(args, config) {
@@ -83,6 +93,7 @@ export async function listTestIdsTool(args, config) {
83
93
  text: `Error listing test IDs: ${errorMessage}`,
84
94
  },
85
95
  ],
96
+ isError: true,
86
97
  };
87
98
  }
88
99
  }
@@ -18,7 +18,16 @@ export async function fetchSelfHealSelectorTool(args, config) {
18
18
  }
19
19
  catch (error) {
20
20
  logger.error("Error fetching self-heal selector suggestions", error);
21
- throw error;
21
+ const errorMessage = error instanceof Error ? error.message : "Unknown error";
22
+ return {
23
+ content: [
24
+ {
25
+ type: "text",
26
+ text: `Error fetching self-heal selector suggestions: ${errorMessage}`,
27
+ },
28
+ ],
29
+ isError: true,
30
+ };
22
31
  }
23
32
  }
24
33
  // Registers the fetchSelfHealSelector tool with the MCP server
@@ -41,6 +50,7 @@ export default function addSelfHealTools(server, config) {
41
50
  text: `Error during fetching self-heal suggestions: ${errorMessage}`,
42
51
  },
43
52
  ],
53
+ isError: true,
44
54
  };
45
55
  }
46
56
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@browserstack/mcp-server",
3
- "version": "1.2.13",
3
+ "version": "1.2.14",
4
4
  "description": "BrowserStack's Official MCP Server",
5
5
  "mcpName": "io.github.browserstack/mcp-server",
6
6
  "main": "dist/index.js",
@@ -35,19 +35,19 @@
35
35
  "author": "",
36
36
  "license": "ISC",
37
37
  "dependencies": {
38
- "@modelcontextprotocol/sdk": "^1.25.2",
38
+ "@modelcontextprotocol/sdk": "^1.29.0",
39
39
  "@types/form-data": "^2.5.2",
40
- "axios": "^1.13.2",
41
- "browserstack-local": "^1.5.8",
42
- "csv-parse": "^6.1.0",
43
- "dotenv": "^17.2.3",
40
+ "axios": "^1.14.0",
41
+ "browserstack-local": "^1.5.12",
42
+ "csv-parse": "^6.2.1",
43
+ "dotenv": "^17.4.0",
44
44
  "form-data": "^4.0.5",
45
- "pino": "^10.1.0",
45
+ "pino": "^10.3.1",
46
46
  "pino-pretty": "^13.1.3",
47
47
  "sharp": "^0.34.5",
48
48
  "uuid": "^13.0.0",
49
- "webdriverio": "^9.21.0",
50
- "zod": "^4.2.1"
49
+ "webdriverio": "^9.27.0",
50
+ "zod": "^4.3.6"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@eslint/js": "^9.39.2",