@browserstack/mcp-server 2.2.0-beta.2 → 2.2.0
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.
- package/README.md +42 -432
- package/capability/loadtesting.capability-index.json +3001 -0
- package/capability/tm.capability-index.json +1 -2
- package/dist/tools/ask-browserstack/central-oauth.d.ts +46 -25
- package/dist/tools/ask-browserstack/central-oauth.js +177 -55
- package/dist/tools/capability-registry/bind.js +7 -43
- package/dist/tools/capability-registry/discovery.js +1 -3
- package/dist/tools/capability-registry/egress.d.ts +5 -12
- package/dist/tools/capability-registry/egress.js +1 -24
- package/dist/tools/capability-registry/register.js +41 -289
- package/dist/tools/capability-registry/resolve.d.ts +1 -1
- package/dist/tools/capability-registry/resolve.js +3 -24
- package/dist/tools/capability-registry/search.d.ts +1 -28
- package/dist/tools/capability-registry/search.js +4 -202
- package/dist/tools/capability-registry/types.d.ts +3 -42
- package/dist/tools/testmanagement.js +5 -5
- package/dist/tools/tool-handoff.d.ts +12 -15
- package/dist/tools/tool-handoff.js +18 -21
- package/package.json +3 -4
- package/capability/tra.capability-index.json +0 -52096
- package/dist/lib/central-oauth.d.ts +0 -133
- package/dist/lib/central-oauth.js +0 -246
- package/dist/tools/capability-registry/oauth.d.ts +0 -63
- package/dist/tools/capability-registry/oauth.js +0 -176
- package/dist/tools/capability-registry/routing-token.d.ts +0 -25
- package/dist/tools/capability-registry/routing-token.js +0 -87
package/README.md
CHANGED
|
@@ -137,6 +137,30 @@ Create and manage test cases, create test plans and trigger test runs using natu
|
|
|
137
137
|
"update test results as passed for Login tests test run from My Demo Project"
|
|
138
138
|
```
|
|
139
139
|
|
|
140
|
+
### ⚡ Load Testing
|
|
141
|
+
|
|
142
|
+
Run and analyse load tests at scale without leaving your IDE or chat — find tests, start and stop runs, read reports and AI Insights, compare runs, and check your VU-hours. Works with API (JMeter, k6, Gatling, Locust), browser (Playwright, Selenium, WebdriverIO, Nightwatch) and hybrid load tests on BrowserStack's [Load Testing](https://www.browserstack.com/load-testing). These go through the [core tools](#-core-tools).
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
# Find a test
|
|
146
|
+
"find my load test called checkout-api"
|
|
147
|
+
|
|
148
|
+
# Run it
|
|
149
|
+
"run checkout-api for 5 minutes with 100 virtual users"
|
|
150
|
+
|
|
151
|
+
# Check on it
|
|
152
|
+
"is my checkout-api run finished yet?"
|
|
153
|
+
|
|
154
|
+
# Read the results
|
|
155
|
+
"what was the p95 response time and error rate of the last checkout-api run?"
|
|
156
|
+
|
|
157
|
+
# Compare two runs of the same test
|
|
158
|
+
"did the latest checkout-api run regress compared with the previous one?"
|
|
159
|
+
|
|
160
|
+
# Check quota before a big run
|
|
161
|
+
"how many VU-hours do I have left, and what would a 30-minute run with 500 VUs cost?"
|
|
162
|
+
```
|
|
163
|
+
|
|
140
164
|
### 🧪 Access BrowserStack AI agents
|
|
141
165
|
|
|
142
166
|
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
|
|
@@ -158,14 +182,11 @@ Generate test cases from PRDs, convert manual tests to low-code automation, and
|
|
|
158
182
|
## 🛠️ Installation
|
|
159
183
|
|
|
160
184
|
### 📋 Prerequisites for MCP Setup
|
|
161
|
-
#### Note : Ensure you are using Node version >= `20.9`
|
|
162
|
-
- Check your node version using `node --version`. Recommended version: `v22.15.0` (LTS)
|
|
163
|
-
|
|
164
|
-
### **One Click MCP Setup**
|
|
165
185
|
|
|
166
|
-
|
|
186
|
+
- Node.js version >= `20.9` (see the note under [One Click MCP Setup](#️-one-click-mcp-setup) above).
|
|
187
|
+
- A BrowserStack account (steps below).
|
|
167
188
|
|
|
168
|
-
|
|
189
|
+
To install with one click, use the **Install in VS Code** / **Install in Cursor** buttons under [One Click MCP Setup](#️-one-click-mcp-setup) at the top of this page.
|
|
169
190
|
|
|
170
191
|
### **Alternate ways to Setup MCP server**
|
|
171
192
|
|
|
@@ -178,11 +199,7 @@ Click on the buttons below to install MCP in your respective IDE:
|
|
|
178
199
|
|
|
179
200
|
- Once you have an account (and purchased appropriate plan), note down your `username` and `access_key` from [Account Settings](https://www.browserstack.com/accounts/profile/details).
|
|
180
201
|
|
|
181
|
-
2.
|
|
182
|
-
- Check your node version using `node --version`. Recommended version: `v22.15.0` (LTS)
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
3. **Install the MCP Server**
|
|
202
|
+
2. **Install the MCP Server**
|
|
186
203
|
|
|
187
204
|
- VSCode (Copilot - Agent Mode): `.vscode/mcp.json`:
|
|
188
205
|
|
|
@@ -256,7 +273,7 @@ Click on the buttons below to install MCP in your respective IDE:
|
|
|
256
273
|
}
|
|
257
274
|
```
|
|
258
275
|
|
|
259
|
-
- Claude Desktop: `~/claude_desktop_config.json`:
|
|
276
|
+
- For Claude Desktop: `~/claude_desktop_config.json`:
|
|
260
277
|
|
|
261
278
|
```json
|
|
262
279
|
{
|
|
@@ -272,7 +289,7 @@ Click on the buttons below to install MCP in your respective IDE:
|
|
|
272
289
|
}
|
|
273
290
|
}
|
|
274
291
|
```
|
|
275
|
-
- Cline
|
|
292
|
+
- For Cline
|
|
276
293
|
|
|
277
294
|
Click the “MCP Servers” icon in the navigation bar
|
|
278
295
|
Select the “Installed” tab. Click the “Configure MCP Servers” button at the bottom of the pane.
|
|
@@ -292,425 +309,23 @@ Select the “Installed” tab. Click the “Configure MCP Servers” button at
|
|
|
292
309
|
}
|
|
293
310
|
```
|
|
294
311
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
### 💡 List of BrowserStack MCP Tools
|
|
298
|
-
|
|
299
|
-
As of now we support 51 tools.
|
|
300
|
-
|
|
301
|
-
> **Remote MCP note:** Tools marked _(not available in Remote MCP)_ rely on local file/process state and are disabled in the multi-tenant [Remote MCP Server](#-remote-mcp-server). They are available in the local (npx) setup.
|
|
302
|
-
|
|
303
|
-
---
|
|
304
|
-
|
|
305
|
-
## 🧾 Test Management
|
|
306
|
-
|
|
307
|
-
1. `createProjectOrFolder` — Create a Test Management project and/or folders to organize test cases. Returns with Folder ID, Project ID and Test Management Link to access the TM Project Dashboard.
|
|
308
|
-
**Prompt example**
|
|
309
|
-
|
|
310
|
-
```text
|
|
311
|
-
Create a new Test Management project named 'Shopping App' with two folders - Login and Checkout
|
|
312
|
-
```
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
2. `createTestCase` — Add a manual test case under a specific project/folder (uses project identifier like PR-xxxxx and a folder ID).
|
|
316
|
-
**Prompt example**
|
|
317
|
-
|
|
318
|
-
```text
|
|
319
|
-
Add a test case named 'Invalid Login Scenario' to the Login folder in the 'Shopping App' project with PR-53617, Folder ID: 117869
|
|
320
|
-
```
|
|
321
|
-
|
|
322
|
-
3. `updateTestCase` — Update an existing test case. Any subset of fields may be changed (name, priority, status, steps, tags, etc.); only supplied fields are modified.
|
|
323
|
-
**Prompt example**
|
|
324
|
-
|
|
325
|
-
```text
|
|
326
|
-
Update test case TC-482 in the 'Shopping App' project and set its priority to high
|
|
327
|
-
```
|
|
328
|
-
|
|
329
|
-
4. `listTestCases` — List test cases for a project, optionally scoped to a folder (supports filters like case_type, priority, and pagination).
|
|
330
|
-
**Prompt example**
|
|
331
|
-
|
|
332
|
-
```text
|
|
333
|
-
List all high-priority test cases in the 'Shopping App' project with project_identifier: PR-59457
|
|
334
|
-
```
|
|
335
|
-
|
|
336
|
-
5. `listFolders` — List folders in a Test Management project (returns each folder's id, name, case counts, and sub-folder counts). Pass a parent_id to list sub-folders.
|
|
337
|
-
**Prompt example**
|
|
338
|
-
|
|
339
|
-
```text
|
|
340
|
-
List all folders in the 'Shopping App' project with project_identifier: PR-59457
|
|
341
|
-
```
|
|
342
|
-
|
|
343
|
-
6. `listTestCaseTemplates` — List test-case templates with their numeric template_id, for use with `createTestCase` to apply a custom template.
|
|
344
|
-
**Prompt example**
|
|
345
|
-
|
|
346
|
-
```text
|
|
347
|
-
List the available test case templates in the 'Shopping App' project
|
|
348
|
-
```
|
|
349
|
-
|
|
350
|
-
7. `createTestRun` — Create a test run (suite) for selected test cases in a project.
|
|
351
|
-
**Prompt example**
|
|
352
|
-
|
|
353
|
-
```text
|
|
354
|
-
Create a test run for the Login folder in the 'Shopping App' project and name it 'Release v1.0 Login Flow'
|
|
355
|
-
```
|
|
356
|
-
|
|
357
|
-
8. `listTestRuns` — List test runs for a project (filter by dates, assignee, state).
|
|
358
|
-
**Prompt example**
|
|
359
|
-
|
|
360
|
-
```text
|
|
361
|
-
List all test runs from the 'Shopping App' project that were executed last week and are currently marked in-progress
|
|
362
|
-
```
|
|
363
|
-
|
|
364
|
-
9. `updateTestRun` — Update a test run's name/state and/or add test cases to it.
|
|
365
|
-
**Prompt example**
|
|
366
|
-
|
|
367
|
-
```text
|
|
368
|
-
Update test run ID 1043 in the 'Shopping App' project and mark it as complete with the note 'Regression cycle done'
|
|
369
|
-
```
|
|
370
|
-
|
|
371
|
-
10. `addTestResult` — Add a manual execution result (passed/failed/blocked/skipped) for a test case within a run.
|
|
372
|
-
**Prompt example**
|
|
373
|
-
|
|
374
|
-
```text
|
|
375
|
-
Mark the test case 'Invalid Login Scenario' as passed in test run ID 1043 of the 'Shopping App' project
|
|
376
|
-
```
|
|
377
|
-
|
|
378
|
-
11. `createTestCasesFromFile` — Generate test cases in bulk from an uploaded file using the Test Case Generator AI Agent. _(not available in Remote MCP)_
|
|
379
|
-
**Prompt example**
|
|
380
|
-
|
|
381
|
-
```text
|
|
382
|
-
Upload test cases from '/Users/xyz/testcases.pdf' to the 'Shopping App' project in Test Management
|
|
383
|
-
```
|
|
384
|
-
|
|
385
|
-
12. `listTestPlans` — List test plans (TP-*) in a project, with name, status, dates, and active/closed run counts. Supports pagination.
|
|
386
|
-
**Prompt example**
|
|
387
|
-
|
|
388
|
-
```text
|
|
389
|
-
List all test plans in the 'Shopping App' project with project_identifier: PR-59457
|
|
390
|
-
```
|
|
391
|
-
|
|
392
|
-
13. `getTestPlan` — Fetch a test plan by identifier (TP-*) with its metadata, linked test runs, total test-case count, and status summary.
|
|
393
|
-
**Prompt example**
|
|
394
|
-
|
|
395
|
-
```text
|
|
396
|
-
Get the details of test plan TP-120 in the 'Shopping App' project
|
|
397
|
-
```
|
|
398
|
-
|
|
399
|
-
14. `listSubTestPlans` — List sub-test-plans (STP-*) under a parent test plan (TP-*). Supports pagination.
|
|
400
|
-
**Prompt example**
|
|
401
|
-
|
|
402
|
-
```text
|
|
403
|
-
List sub-test-plans under test plan TP-120 in the 'Shopping App' project
|
|
404
|
-
```
|
|
405
|
-
|
|
406
|
-
15. `getSubTestPlan` — Fetch a sub-test-plan (STP-*) under a parent plan, with its metadata and linked test runs.
|
|
407
|
-
**Prompt example**
|
|
408
|
-
|
|
409
|
-
```text
|
|
410
|
-
Get sub-test-plan STP-45 under test plan TP-120 in the 'Shopping App' project
|
|
411
|
-
```
|
|
412
|
-
|
|
413
|
-
---
|
|
414
|
-
|
|
415
|
-
## ⚙️ BrowserStack SDK Setup / Automate Test
|
|
416
|
-
|
|
417
|
-
16. `setupBrowserStackAutomateTests` — Integrate BrowserStack SDK and run web tests on BrowserStack. For visual testing/Percy, use the dedicated Percy tools.
|
|
418
|
-
**Prompt example**
|
|
419
|
-
|
|
420
|
-
```text
|
|
421
|
-
Run my Selenium-JUnit5 tests written in Java on Chrome and Firefox.
|
|
422
|
-
```
|
|
423
|
-
|
|
424
|
-
17. `fetchAutomationScreenshots` — Fetch screenshots captured during a given Automate/App Automate session.
|
|
425
|
-
**Prompt example**
|
|
426
|
-
|
|
427
|
-
```text
|
|
428
|
-
Get screenshots from Automate session ID abc123xyz for my desktop test run
|
|
429
|
-
```
|
|
430
|
-
|
|
431
|
-
18. `listSessions` — List the sessions in an Automate/App Automate build. Each record carries `sessionId`, `name`, `status`, `os`, `osVersion`, `browser`, `device`, `browserUrl` (dashboard link), and `videoUrl`, with optional `limit` / `offset` paging and a client-side `status` filter. Takes either the **hashed** build ID from the dashboard URL or the observability build id returned by `getBuildId` / `listBuildId` — an observability id is resolved to the hashed id automatically via the build's sessions. Returned `sessionId` values work with `getFailureLogs`, `fetchAutomationScreenshots`, and `fetchSelfHealedSelectors`.
|
|
432
|
-
**Prompt example**
|
|
433
|
-
|
|
434
|
-
```text
|
|
435
|
-
List sessions for Automate hashed build ID <hashed build id>
|
|
436
|
-
```
|
|
437
|
-
|
|
438
|
-
---
|
|
439
|
-
|
|
440
|
-
## 🔍 Observability
|
|
441
|
-
|
|
442
|
-
19. `getFailureLogs` — Retrieve error logs for Automate/App Automate sessions. App Automate log endpoints are build-scoped, so a hashed build ID is required there — pass one if you have it, otherwise it is resolved from the session automatically.
|
|
443
|
-
**Prompt example**
|
|
444
|
-
|
|
445
|
-
```text
|
|
446
|
-
Get the Appium logs for App Automate session ID <session id>
|
|
447
|
-
```
|
|
448
|
-
|
|
449
|
-
20. `fetchBuildInsights` — Fetch insights about a BrowserStack build by combining build details and quality-gate results. Includes `hashed_id` (the hashed build id `listSessions` takes) and `session_type`, resolved through the build's sessions when the build ran on Automate / App Automate.
|
|
450
|
-
**Prompt example**
|
|
451
|
-
|
|
452
|
-
```text
|
|
453
|
-
Get the build insights for build UUID <your-build-uuid> on BrowserStack
|
|
454
|
-
```
|
|
455
|
-
|
|
456
|
-
---
|
|
457
|
-
|
|
458
|
-
## 📱 App Live
|
|
459
|
-
|
|
460
|
-
21. `runAppLiveSession` — Start a manual app testing session on a real device in the cloud.
|
|
461
|
-
**Prompt example**
|
|
462
|
-
|
|
463
|
-
```text
|
|
464
|
-
Open my app on iPhone 15 Pro Max with iOS 17. App path is /Users/xyz/app.ipa
|
|
465
|
-
```
|
|
466
|
-
|
|
467
|
-
---
|
|
468
|
-
|
|
469
|
-
## 💻 Live
|
|
470
|
-
|
|
471
|
-
22. `runBrowserLiveSession` — Start a Live session for website testing on desktop or mobile browsers.
|
|
472
|
-
**Prompt example**
|
|
312
|
+
## 🧭 Core Tools
|
|
473
313
|
|
|
474
|
-
|
|
475
|
-
Open www.google.com on the latest version of Microsoft Edge on Windows 11
|
|
476
|
-
```
|
|
314
|
+
Five core tools let your AI assistant find and run any BrowserStack workflow. Your assistant loads every tool an MCP server exposes at the start of each session, so one tool per workflow would fill your context window and slow down the whole session. Instead, your assistant uses the core tools to search a catalog of BrowserStack tools in plain language and run the one it needs.
|
|
477
315
|
|
|
478
|
-
|
|
316
|
+
| Tool | Description |
|
|
317
|
+
|------|-------------|
|
|
318
|
+
| `listProducts` | Lists the BrowserStack products in the catalog, with a short summary of what each product covers |
|
|
319
|
+
| `describeEntity` | Explains one entity: its aliases, ID format, parent and related entities, and the capabilities that act on it |
|
|
320
|
+
| `searchCapability` | Finds the capabilities that match a plain-language request, with everything your assistant needs to run each one |
|
|
321
|
+
| `describeCapability` | Returns the full details of one capability, such as its parameters, request body and response format |
|
|
322
|
+
| `invokeCapability` | Runs one capability and returns the product's response unchanged. Changes to data need your approval |
|
|
479
323
|
|
|
480
|
-
|
|
324
|
+
See [Core tools](https://www.browserstack.com/docs/browserstack-mcp-server/tools/core-tools) for parameters and how changes to data are approved.
|
|
481
325
|
|
|
482
|
-
|
|
483
|
-
**Prompt example**
|
|
484
|
-
|
|
485
|
-
```text
|
|
486
|
-
Take a screenshot of my app on Google Pixel 6 with Android 12 while testing on App Automate. App file path: /Users/xyz/app-debug.apk
|
|
487
|
-
```
|
|
488
|
-
|
|
489
|
-
24. `runAppTestsOnBrowserStack` — Run pre-built native mobile test suites (Espresso/XCUITest) by direct upload of compiled .apk/.ipa test files.
|
|
490
|
-
**Prompt example**
|
|
491
|
-
|
|
492
|
-
```text
|
|
493
|
-
Run Espresso tests from /tests/checkout.zip on Galaxy S21 and Pixel 6 with Android 12. App path is /apps/beta-release.apk under project 'Checkout Flow'
|
|
494
|
-
```
|
|
495
|
-
|
|
496
|
-
25. `setupBrowserStackAppAutomateTests` — Set up BrowserStack App Automate SDK integration for Appium-based mobile app testing.
|
|
497
|
-
**Prompt example**
|
|
498
|
-
|
|
499
|
-
```text
|
|
500
|
-
Set up my Appium test suite to run on BrowserStack App Automate
|
|
501
|
-
```
|
|
502
|
-
|
|
503
|
-
---
|
|
504
|
-
|
|
505
|
-
## ♿ Accessibility
|
|
506
|
-
|
|
507
|
-
26. `accessibilityExpert` — Ask the A11y Expert (WCAG 2.0/2.1/2.2, mobile/web usability, best practices).
|
|
508
|
-
**Prompt example**
|
|
509
|
-
|
|
510
|
-
```text
|
|
511
|
-
What WCAG guidelines apply to form field error messages on mobile web?
|
|
512
|
-
```
|
|
513
|
-
|
|
514
|
-
27. `startAccessibilityScan` — Start a web accessibility scan and retrieve a local CSV report path.
|
|
515
|
-
**Prompt example**
|
|
516
|
-
|
|
517
|
-
```text
|
|
518
|
-
Run accessibility scan for "www.example.com"
|
|
519
|
-
```
|
|
520
|
-
|
|
521
|
-
28. `createAccessibilityAuthConfig` — Create an authentication configuration (form-based or basic) for accessibility scans behind a login.
|
|
522
|
-
**Prompt example**
|
|
523
|
-
|
|
524
|
-
```text
|
|
525
|
-
Create a basic-auth accessibility config named 'site-login' for https://www.example.com with username testuser and password <password>
|
|
526
|
-
```
|
|
527
|
-
|
|
528
|
-
29. `getAccessibilityAuthConfig` — Retrieve an existing accessibility authentication configuration by ID.
|
|
529
|
-
**Prompt example**
|
|
530
|
-
|
|
531
|
-
```text
|
|
532
|
-
Get accessibility auth config with ID <config-id>
|
|
533
|
-
```
|
|
534
|
-
|
|
535
|
-
30. `fetchAccessibilityIssues` — Fetch accessibility issues from a completed scan, with pagination support.
|
|
536
|
-
**Prompt example**
|
|
537
|
-
|
|
538
|
-
```text
|
|
539
|
-
Fetch the accessibility issues for scan ID <scan-id> and scan run ID <scan-run-id>
|
|
540
|
-
```
|
|
541
|
-
|
|
542
|
-
---
|
|
543
|
-
|
|
544
|
-
## 🎨 Percy Visual Testing
|
|
545
|
-
|
|
546
|
-
31. `percyVisualTestIntegrationAgent` — Integrate Percy visual testing into a new project and demonstrate visual change detection with a step-by-step simulation.
|
|
547
|
-
**Prompt example**
|
|
548
|
-
|
|
549
|
-
```text
|
|
550
|
-
Integrate Percy for this project
|
|
551
|
-
```
|
|
552
|
-
|
|
553
|
-
32. `expandPercyVisualTesting` — Set up or expand Percy visual testing coverage for existing projects (Percy Web Standalone and Percy Automate).
|
|
554
|
-
**Prompt example**
|
|
555
|
-
|
|
556
|
-
```text
|
|
557
|
-
Expand Percy coverage for this project
|
|
558
|
-
```
|
|
559
|
-
|
|
560
|
-
33. `addPercySnapshotCommands` — Add Percy snapshot commands to the specified test files. _(not available in Remote MCP)_
|
|
561
|
-
**Prompt example**
|
|
562
|
-
|
|
563
|
-
```text
|
|
564
|
-
Add Percy snapshot commands to my Cypress test files
|
|
565
|
-
```
|
|
566
|
-
|
|
567
|
-
34. `listTestFiles` — List all test files for a given set of directories. _(not available in Remote MCP)_
|
|
568
|
-
**Prompt example**
|
|
569
|
-
|
|
570
|
-
```text
|
|
571
|
-
List the test files under my ./tests directory
|
|
572
|
-
```
|
|
573
|
-
|
|
574
|
-
35. `runPercyScan` — Run a Percy visual test scan. _(not available in Remote MCP)_
|
|
575
|
-
**Prompt example**
|
|
576
|
-
|
|
577
|
-
```text
|
|
578
|
-
Run this Percy build
|
|
579
|
-
```
|
|
580
|
-
|
|
581
|
-
36. `fetchPercyChanges` — Retrieve and summarize visual changes detected by Percy AI between the latest and previous builds.
|
|
582
|
-
**Prompt example**
|
|
583
|
-
|
|
584
|
-
```text
|
|
585
|
-
Summarize the visual changes Percy detected in my latest build
|
|
586
|
-
```
|
|
587
|
-
|
|
588
|
-
37. `managePercyBuildApproval` — Approve or reject a Percy build.
|
|
589
|
-
**Prompt example**
|
|
590
|
-
|
|
591
|
-
```text
|
|
592
|
-
Approve the latest Percy build
|
|
593
|
-
```
|
|
594
|
-
|
|
595
|
-
---
|
|
596
|
-
|
|
597
|
-
## 🤖 BrowserStack AI Agents
|
|
598
|
-
|
|
599
|
-
38. `uploadProductRequirementFile` — Upload a PRD/screenshot/PDF and get a file mapping ID (used with `createTestCasesFromFile`). _(not available in Remote MCP)_
|
|
600
|
-
**Prompt example**
|
|
601
|
-
|
|
602
|
-
```text
|
|
603
|
-
Upload PRD from /Users/xyz/Desktop/login-flow.pdf and use BrowserStack AI to generate test cases
|
|
604
|
-
```
|
|
605
|
-
|
|
606
|
-
39. `createLCASteps` — Generate Low Code Automation (LCA) steps from a manual test case in Test Management.
|
|
607
|
-
**Prompt example**
|
|
608
|
-
|
|
609
|
-
```text
|
|
610
|
-
Convert the manual test case 'Add to Cart' in the 'Shopping App' project into LCA steps
|
|
611
|
-
```
|
|
612
|
-
|
|
613
|
-
40. `fetchSelfHealedSelectors` — Retrieve AI self-healed selectors (plus test source) to fix flaky tests caused by DOM changes.
|
|
614
|
-
**Prompt example**
|
|
615
|
-
|
|
616
|
-
```text
|
|
617
|
-
Fetch and fix flaky test selectors in Automate session ID session_9482 using MCP
|
|
618
|
-
```
|
|
619
|
-
|
|
620
|
-
41. `prepareSelfHealingPlan` — Build a self-healing edit plan that bundles locator pairs with test source for your LLM to apply. Does NOT modify files itself.
|
|
621
|
-
**Prompt example**
|
|
622
|
-
|
|
623
|
-
```text
|
|
624
|
-
Prepare a self-healing plan from the self-healed selectors for my build
|
|
625
|
-
```
|
|
626
|
-
|
|
627
|
-
42. `fetchRCA` — Fetch AI Root Cause Analysis for your failed Automate/App-Automate tests (by numeric test ID). Suggests fixes only; never auto-applies.
|
|
628
|
-
**Prompt example**
|
|
629
|
-
|
|
630
|
-
```text
|
|
631
|
-
Fetch the root cause analysis for failed test IDs 101 and 102 on BrowserStack
|
|
632
|
-
```
|
|
633
|
-
|
|
634
|
-
43. `getBuildId` — Get the BrowserStack build ID for a given project and build name, scoped to your builds.
|
|
635
|
-
**Prompt example**
|
|
636
|
-
|
|
637
|
-
```text
|
|
638
|
-
Get the build ID for build 'nightly-regression' in project 'Checkout Flow'
|
|
639
|
-
```
|
|
640
|
-
|
|
641
|
-
44. `listBuildId` — Get the latest build ID for a project and build name, across all users (no user filter).
|
|
642
|
-
**Prompt example**
|
|
643
|
-
|
|
644
|
-
```text
|
|
645
|
-
Get the latest build ID for build 'nightly-regression' in project 'Checkout Flow'
|
|
646
|
-
```
|
|
647
|
-
|
|
648
|
-
45. `listTestIds` — List the tests in a BrowserStack build (Automate or App Automate) with each test's `status` and `session_id`, optionally filtered by status (passed/failed/pending/skipped). The `session_id` feeds `getFailureLogs` and `fetchAutomationScreenshots` directly.
|
|
649
|
-
**Prompt example**
|
|
650
|
-
|
|
651
|
-
```text
|
|
652
|
-
List the failed test IDs from build UUID <your-build-uuid> on BrowserStack
|
|
653
|
-
```
|
|
654
|
-
46. `askBrowserStackAI` *(Alpha, limited availability)* — Hand a multi-step task to BrowserStack's agent in plain language; it decides which calls to make and returns the answer plus the steps it took. Covers Test Management and Test Reporting & Analytics. Anything that would change data pauses for your confirmation in your own client; deletes are refused outright. Requires the account to be enrolled — otherwise it returns an entitlement error and nothing runs.
|
|
655
|
-
**Prompt example**
|
|
656
|
-
|
|
657
|
-
```text
|
|
658
|
-
Find all payment test cases in project Shopping App and add the 'regression' tag to them
|
|
659
|
-
```
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
---
|
|
663
|
-
|
|
664
|
-
## 🧭 Capability Registry (Test Management)
|
|
665
|
-
|
|
666
|
-
Five generic tools that reach **198 Test Management endpoints** from a prebuilt index, instead of one hand-written tool per endpoint. Use them when the task needs something the named tools above do not cover — shared steps, templates, custom fields, exploratory sessions, review workflows, bulk edits, reports and so on.
|
|
667
|
-
|
|
668
|
-
The flow is always the same: **find it, read its contract, then call it.**
|
|
669
|
-
|
|
670
|
-
```text
|
|
671
|
-
searchCapability → describeCapability → invokeCapability
|
|
672
|
-
```
|
|
673
|
-
|
|
674
|
-
Two things worth knowing before you start:
|
|
675
|
-
|
|
676
|
-
- **`searchCapability` needs a product.** Call `listProducts` first if the task does not name one — asking is cheaper than guessing, and the tool will refuse a query that two products could both answer.
|
|
677
|
-
- **Writes ask first.** Anything that changes data needs your confirmation, and deletes are not reachable at all: they are withheld from this surface rather than refused after the fact, so they never appear in search results.
|
|
678
|
-
|
|
679
|
-
47. `listProducts` — List the products this surface can reach, what each one does, and what every entity in it means. **Start here** when you do not already know which product the task belongs to.
|
|
680
|
-
**Prompt example**
|
|
681
|
-
|
|
682
|
-
```text
|
|
683
|
-
What can you reach in BrowserStack Test Management?
|
|
684
|
-
```
|
|
685
|
-
|
|
686
|
-
48. `describeEntity` — Describe one entity: what it is, what identifies it, what it relates to, and the vocabulary the product uses for it. Read this before filtering or writing, because ids and field values usually have to be resolved first.
|
|
687
|
-
**Prompt example**
|
|
688
|
-
|
|
689
|
-
```text
|
|
690
|
-
What is a shared step in Test Management, and how is it identified?
|
|
691
|
-
```
|
|
692
|
-
|
|
693
|
-
49. `searchCapability` — Find endpoints by plain language within one product. Returns a shortlist, not the whole catalogue. Pass `query: "*"` to browse everything, with `offset` to page through it.
|
|
694
|
-
**Prompt example**
|
|
695
|
-
|
|
696
|
-
```text
|
|
697
|
-
Find a way to move test cases between folders in bulk in project PR-53617
|
|
698
|
-
```
|
|
699
|
-
|
|
700
|
-
50. `describeCapability` — The full contract for one capability: required parameters, body shape including any nesting, what the response actually returns, and the traps specific to that endpoint. Read this before invoking anything you have not called before.
|
|
701
|
-
**Prompt example**
|
|
702
|
-
|
|
703
|
-
```text
|
|
704
|
-
Show me exactly what I need to send to create a shared step
|
|
705
|
-
```
|
|
706
|
-
|
|
707
|
-
51. `invokeCapability` — Call the endpoint. Writes require explicit confirmation and a summary of what will change; destructive operations are not available through this surface.
|
|
708
|
-
**Prompt example**
|
|
709
|
-
|
|
710
|
-
```text
|
|
711
|
-
Add the 'regression' tag to every test case in the Checkout folder of PR-53617
|
|
712
|
-
```
|
|
326
|
+
**All tools** — See [docs/TOOLS.md](docs/TOOLS.md) for every tool organised by product, or [BrowserStack MCP tools & workflows](https://www.browserstack.com/docs/browserstack-mcp-server/tools) for product workflows.
|
|
713
327
|
|
|
328
|
+
> **File & app uploads:** tools that upload a local file/app (`uploadProductRequirementFile`, `takeAppScreenshot`, `runAppTestsOnBrowserStack`, `runAppLiveSession`) require the `MCP_UPLOAD_BASE_DIR` env var set to a directory containing those files; uploads are restricted to it.
|
|
714
329
|
|
|
715
330
|
## 🚀 Remote MCP Server
|
|
716
331
|
|
|
@@ -786,11 +401,6 @@ Remote MCP comes with all the functionalities of an MCP server without the hassl
|
|
|
786
401
|
|
|
787
402
|
|
|
788
403
|
|
|
789
|
-
## 🤝 Recommended MCP Clients
|
|
790
|
-
|
|
791
|
-
- We recommend using **Github Copilot or Cursor** for automated testing + debugging use cases.
|
|
792
|
-
- For manual testing use cases (Live Testing), we recommend using **Claude Desktop**.
|
|
793
|
-
|
|
794
404
|
## ⚠️ Important Notes
|
|
795
405
|
|
|
796
406
|
- The BrowserStack MCP Server is under active development and currently supports a subset of the MCP spec. More features will be added soon.
|