Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@browserstack/mcp-server",
"version": "1.2.10",
"version": "1.2.11",
"description": "BrowserStack's Official MCP Server",
"mcpName": "io.github.browserstack/mcp-server",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion server.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{
"registryType": "npm",
"identifier": "@browserstack/mcp-server",
"version": "1.2.10",
"version": "1.2.11",
"transport": {
"type": "stdio"
},
Expand Down
5 changes: 4 additions & 1 deletion src/tools/sdk-utils/bstack/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,6 @@ export const SUPPORTED_CONFIGURATIONS: ConfigMapping = {
},
selenium: {
jest: { instructions: nodejsInstructions },
webdriverio: { instructions: webdriverioInstructions },
mocha: { instructions: nodejsInstructions },
cucumber: { instructions: nodejsInstructions },
nightwatch: { instructions: nodejsInstructions },
Expand All @@ -652,5 +651,9 @@ export const SUPPORTED_CONFIGURATIONS: ConfigMapping = {
cypress: {
cypress: { instructions: cypressInstructions },
},
webdriverio: {
mocha: { instructions: webdriverioInstructions },
cucumber: { instructions: webdriverioInstructions },
},
},
};
5 changes: 4 additions & 1 deletion src/tools/sdk-utils/bstack/frameworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ export const SUPPORTED_CONFIGURATIONS: ConfigMapping = {
},
selenium: {
jest: { instructions: constants.nodejsInstructions },
webdriverio: { instructions: constants.webdriverioInstructions },
mocha: { instructions: constants.nodejsInstructions },
cucumber: { instructions: constants.nodejsInstructions },
nightwatch: { instructions: constants.nodejsInstructions },
Expand All @@ -55,5 +54,9 @@ export const SUPPORTED_CONFIGURATIONS: ConfigMapping = {
cypress: {
cypress: { instructions: constants.cypressInstructions },
},
webdriverio: {
mocha: { instructions: constants.webdriverioInstructions },
cucumber: { instructions: constants.webdriverioInstructions },
},
},
};
2 changes: 1 addition & 1 deletion src/tools/sdk-utils/bstack/sdkHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export async function runBstackSDKOnly(
// Handle frameworks with unique setup instructions that don't use browserstack.yml
if (
input.detectedBrowserAutomationFramework === "cypress" ||
input.detectedTestingFramework === "webdriverio"
input.detectedBrowserAutomationFramework === "webdriverio"
) {
const frameworkInstructions = getInstructionsForProjectConfiguration(
input.detectedBrowserAutomationFramework as SDKSupportedBrowserAutomationFramework,
Expand Down
2 changes: 1 addition & 1 deletion src/tools/sdk-utils/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export enum SDKSupportedBrowserAutomationFrameworkEnum {
playwright = "playwright",
selenium = "selenium",
cypress = "cypress",
webdriverio = "webdriverio",
}
export type SDKSupportedBrowserAutomationFramework =
keyof typeof SDKSupportedBrowserAutomationFrameworkEnum;
Expand All @@ -29,7 +30,6 @@ export enum SDKSupportedTestingFrameworkEnum {
behave = "behave",
cucumber = "cucumber",
nightwatch = "nightwatch",
webdriverio = "webdriverio",
mocha = "mocha",
junit4 = "junit4",
junit5 = "junit5",
Expand Down
2 changes: 1 addition & 1 deletion src/tools/sdk-utils/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export async function formatToolResult(
if (runType != "percy-web") {
finalContent.push({
type: "text",
text: "CRITICAL: After the build is run, you MUST explicitly ask the user if they want to perform RCA (Root Cause Analysis) for any failed tests. This step is mandatory and should not be skipped.",
text: "CRITICAL: After the build is run, you MUST explicitly ask the user if they want to perform RCA (Root Cause Analysis) for any failed tests using the RCA tool. This step is mandatory and should not be skipped.",
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/tools/sdk-utils/percy-bstack/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function runPercyWithBrowserstackSDK(
// Handle frameworks with unique setup instructions that don't use browserstack.yml
if (
input.detectedBrowserAutomationFramework === "cypress" ||
input.detectedTestingFramework === "webdriverio"
input.detectedBrowserAutomationFramework === "webdriverio"
) {
const frameworkInstructions = getInstructionsForProjectConfiguration(
input.detectedBrowserAutomationFramework as SDKSupportedBrowserAutomationFramework,
Expand Down