Skip to content

Commit f00a5b7

Browse files
committed
Merge branch 'main' into bstack-sdk
2 parents 76f8fe9 + 660ae1a commit f00a5b7

File tree

6 files changed

+25
-10
lines changed

6 files changed

+25
-10
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,13 @@
2525
<img src="assets/thumbnail.webp">
2626
</a>
2727
</div>
28+
2829

2930
Manage test cases, execute manual or automated tests, debug issues, and even fix code—directly within tools like Cursor, Claude, or any MCP-enabled client, using plain English.
3031
#### Test from anywhere:
3132
Easily connect the BrowserStack Test Platform to your favourite AI tools, such as IDEs, LLMs, or agentic workflows.
33+
#### Test with natural language:
34+
Manage, execute, debug tests, and even fix code using plain English prompts.
3235
#### Reduced context switching:
3336
Stay in flow—keep all project context in one place and trigger actions directly from your IDE or LLM.
3437

@@ -115,7 +118,7 @@ Create and manage test cases, create test plans and trigger test runs using natu
115118
"update test results as passed for Login tests test run from My Demo Project"
116119
```
117120

118-
### 🧪 Access BrowserStack AI agnets
121+
### 🧪 Access BrowserStack AI agents
119122

120123
Generate test cases from PRDs, convert manual tests to low-code automation, and auto-heal flaky scripts powered by BrowserStack’s AI agents, seamlessly integrated into your workflow. Below are few example prompts to access Browserstack AI agents
121124

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@browserstack/mcp-server",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "BrowserStack's Official MCP Server",
55
"main": "dist/index.js",
66
"repository": {

src/tools/bstack-sdk.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export function registerRunBrowserStackTestsTool(
99
config: BrowserStackConfig,
1010
) {
1111
const tools: Record<string, any> = {};
12+
1213
tools.setupBrowserStackAutomateTests = server.tool(
1314
"setupBrowserStackAutomateTests",
1415
RUN_ON_BROWSERSTACK_DESCRIPTION,

src/tools/live.ts

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// File: src/tools/live.ts
21
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
32
import { z } from "zod";
43
import logger from "../logger.js";
54
import { startBrowserSession } from "./live-utils/start-session.js";
65
import { PlatformType } from "./live-utils/types.js";
76
import { trackMCP } from "../lib/instrumentation.js";
87
import { BrowserStackConfig } from "../lib/types.js";
8+
import globalConfig from "../config.js";
99

1010
// Define the schema shape
1111
const LiveArgsShape = {
@@ -97,13 +97,24 @@ async function runBrowserSession(rawArgs: any, config: BrowserStackConfig) {
9797
? await launchDesktopSession(args, config)
9898
: await launchMobileSession(args, config);
9999

100-
return {
101-
content: [
100+
let response = [
101+
{
102+
type: "text" as const,
103+
text: `✅ Session started. If it didn't open automatically, visit:\n${launchUrl}`,
104+
},
105+
];
106+
107+
if (globalConfig.REMOTE_MCP) {
108+
response = [
102109
{
103110
type: "text" as const,
104-
text: `✅ Session started. If it didn't open automatically, visit:\n${launchUrl}`,
111+
text: `✅ To start the session. Click on ${launchUrl}`,
105112
},
106-
],
113+
];
114+
}
115+
116+
return {
117+
content: response,
107118
};
108119
}
109120

src/tools/percy-snapshot-utils/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,4 +511,4 @@ export const strongUIIndicators = [
511511
/\.goto\s*\(['"]https?:/,
512512
/\.visit\s*\(['"]https?:/,
513513
/\.navigate\(\)\.to\(/,
514-
];
514+
];

0 commit comments

Comments
 (0)