@browserstack/mcp-server 1.5.0-beta.1 → 1.5.0-beta.10

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.
@@ -3,7 +3,7 @@
3
3
  "version": "1.0",
4
4
  "build_id": "43eba70_2026-09-02T14:26:51Z",
5
5
  "loadtesting": {
6
- "summary": "Load and performance testing: run k6, JMeter, Gatling and Locust load tests at scale. List and inspect projects and load tests; create, update, start, stop and monitor runs; read run reports, AI insights and historical trends; compare runs; and check VU-hour quota and cost estimates. Test definitions, runs and their results live here. Account plan and billing do not — only VU-hour entitlement is exposed, via quota.",
6
+ "summary": "Load and performance testing: run k6, JMeter, Gatling and Locust load tests at scale. List and inspect projects and load tests; create, update, start, stop and monitor runs; read run reports, AI insights and historical trends; compare runs; and check VU-hour quota and cost estimates. Test definitions, runs and their results live here. Account plan and billing do not — only VU-hour entitlement is exposed, via quota. There is no capability to delete a load test or schedule recurring runs — for those, point the user to the web dashboard. Each capability returns its full result in one call; reuse a result within a task rather than re-fetching the same data.",
7
7
  "base_url": "https://load-api.browserstack.com",
8
8
  "auth": {
9
9
  "type": "http",
@@ -242,7 +242,8 @@
242
242
  "intent": "Show how a project's load-test metrics trend across recent runs — use this for 'is performance getting better or worse across this project?'",
243
243
  "guidance": [
244
244
  "metrics accepts dotted names or @ aliases; @vitals / @all expand to metric sets.",
245
- "windowRuns bounds how many recent runs are aggregated."
245
+ "windowRuns bounds how many recent runs are aggregated.",
246
+ "Returns the whole windowed series across metrics in one call — request all needed metrics together; do not call once per metric or re-fetch the same window."
246
247
  ],
247
248
  "returns": [
248
249
  "metrics"
@@ -328,13 +329,20 @@
328
329
  "name": "hadSlaBreach",
329
330
  "type": "boolean",
330
331
  "description": "Filter to runs that did / did not breach SLA."
332
+ },
333
+ {
334
+ "name": "tag",
335
+ "type": "string",
336
+ "description": "Filter to runs carrying this tag (a run's own tags, or the tags it inherits from its test when it has none of its own)."
331
337
  }
332
338
  ],
333
339
  "intent": "List the execution history across every load test in a project — newest first, paginated. Use for 'what ran last week in this project?' or to find runs across tests to compare.",
334
340
  "guidance": [
335
341
  "Returns run metadata only, not metrics — use getLoadTestRunReport for a run's KPIs.",
342
+ "Each run carries a tags array — its own run-level tags if set (via updateLoadTest with runId), otherwise the tags inherited from its test. Filter with the tag query param.",
336
343
  "Page with cursor + limit; nextCursor is opaque.",
337
- "For a single test's history use /loadTests/{testId}/runs; for currently-live runs use /loadTests/runs/active."
344
+ "For a single test's history use /loadTests/{testId}/runs; for currently-live runs use /loadTests/runs/active.",
345
+ "One call returns the page of run history — reuse it for follow-ups and page with cursor only when more rows are needed; do not re-list the same window."
338
346
  ],
339
347
  "returns": [
340
348
  "runs",
@@ -386,12 +394,18 @@
386
394
  "name": "userId",
387
395
  "type": "integer",
388
396
  "description": "Restrict to runs started by a user."
397
+ },
398
+ {
399
+ "name": "tag",
400
+ "type": "string",
401
+ "description": "Filter to runs carrying this tag (a run's own tags, or the tags it inherits from its test when it has none of its own)."
389
402
  }
390
403
  ],
391
404
  "intent": "List load-test runs currently executing — use this for 'what's running right now?' or to find a runId to stop or monitor.",
392
405
  "guidance": [
393
406
  "Returns non-terminal runs across the account.",
394
407
  "runId here is the UUID needed by getLoadTestRunStatus and stopLoadTestRun.",
408
+ "Each run carries a tags array — its own run-level tags if set, otherwise the tags inherited from its test. Filter with the tag query param.",
395
409
  "vuHoursBurnedSoFar reflects consumption at the moment of the call."
396
410
  ],
397
411
  "returns": [
@@ -437,7 +451,8 @@
437
451
  "guidance": [
438
452
  "jobId is the run UUID from startLoadTestRun or listLoadTestRuns.",
439
453
  "Respect pollAfterSeconds between polls instead of tight-looping.",
440
- "slaBreachFlags surfaces threshold breaches as they trip."
454
+ "slaBreachFlags surfaces threshold breaches as they trip.",
455
+ "For 'is it done?' / 'how much time is left?', this status call is sufficient — do not fetch the run report to answer a status question."
441
456
  ],
442
457
  "returns": [
443
458
  "status",
@@ -578,14 +593,7 @@
578
593
  {
579
594
  "name": "errorCategory",
580
595
  "type": "string",
581
- "values": [
582
- "5xx",
583
- "4xx",
584
- "timeout",
585
- "connection",
586
- "assertion"
587
- ],
588
- "description": "Comma-separated error categories to include."
596
+ "description": "Comma-separated error categories — any combination of: 5xx, 4xx, timeout, connection, assertion (e.g. \"5xx,4xx\")."
589
597
  },
590
598
  {
591
599
  "name": "metrics",
@@ -613,7 +621,9 @@
613
621
  "Only valid for a terminal run.",
614
622
  "Start with detail=aggregate; escalate to per-txn or full only when you need transaction- or network-level detail — full is large.",
615
623
  "groupBy and errorCategory narrow the payload; byteCap hard-caps the response (max 256 KB).",
616
- "metrics accepts dotted names or @ aliases; see getLoadTestMetricsManifest for what applies to this test type."
624
+ "metrics accepts dotted names or @ aliases; see getLoadTestMetricsManifest for what applies to this test type.",
625
+ "Answer a scoped question with the narrowest slice instead of the whole report: one metric → metrics=; error breakdown → errorCategory= (or slaOnly=true); a time window → sinceIso/untilIso; slowest transaction → detail=per-txn with groupBy=transaction and topN.",
626
+ "One call with the right params returns everything for that question — do not re-fetch the same run with the same params. Fetch the full report (view=full / detail=full) only when the user explicitly asks for the raw or complete report."
617
627
  ],
618
628
  "returns": [
619
629
  "runId",
@@ -748,7 +758,10 @@
748
758
  "guidance": [
749
759
  "Read-only despite being a POST — nothing is started.",
750
760
  "fitsInQuota / remainingAfterEstimate compare the estimate against current quota.",
751
- "For the same check at start time, call startLoadTestRun with dryRun:true."
761
+ "For the same check at start time, call startLoadTestRun with dryRun:true.",
762
+ "Always use this for a cost or VU-hour estimate of a hypothetical run — it models ramp-up. Do not compute VU-hours by hand from VUs × duration.",
763
+ "A protocol (plu) run is billed at a full load-generator pod's capacity (e.g. 1000 VUs for k6), not the VUs it actually uses, and carries a minimum billing floor (5 minutes) — so a small or short plu run can estimate far higher than VUs × duration would suggest. That is expected; report the returned estimatedVuHours as-is rather than second-guessing it as an error.",
764
+ "The estimate is for the test's OWN type: a browser (blu) run costs about 10x a protocol (plu) run at the same VUs and duration (browser VUs carry a 10x weight). So the number depends heavily on whether the test is plu, blu or hybrid — always state which type the estimate is for. When the user asks about a hypothetical run without fixing the type, do not silently inherit the type of whatever test you priced against: say the type explicitly, and if it is genuinely open, give both the plu and blu figures (they differ ~10x) or ask which they mean."
752
765
  ],
753
766
  "returns": [
754
767
  "estimatedVuHours",
@@ -830,7 +843,8 @@
830
843
  "intent": "Compare two completed runs and surface the deltas — use this for 'did this run regress vs the baseline?'",
831
844
  "guidance": [
832
845
  "baselineRunId and candidateRunId are run UUIDs and must differ; both runs must be terminal.",
833
- "regressedOnly + pctChangeMin filter to material regressions; dimensions accepts kpi, transaction, sla."
846
+ "regressedOnly + pctChangeMin filter to material regressions; dimensions accepts kpi, transaction, sla.",
847
+ "Use this to compare two runs — it returns per-KPI and per-transaction deltas directly. Do not fetch both run reports and diff them yourself."
834
848
  ],
835
849
  "returns": [
836
850
  "kpiDeltas",
@@ -877,11 +891,17 @@
877
891
  "name": "framework",
878
892
  "type": "string",
879
893
  "required": true,
894
+ "description": "PLU (protocol) frameworks: k6, jmeter, gatling, locust. BLU (browser) frameworks: playwright, selenium, webdriverio, nightwatch, lcncnightwatch. Must match testType — a PLU framework for testType plu, a BLU framework for testType blu (the backend rejects a mismatched pair).",
880
895
  "values": [
881
896
  "k6",
882
897
  "jmeter",
883
898
  "gatling",
884
- "locust"
899
+ "locust",
900
+ "playwright",
901
+ "selenium",
902
+ "webdriverio",
903
+ "nightwatch",
904
+ "lcncnightwatch"
885
905
  ]
886
906
  },
887
907
  {
@@ -897,7 +917,7 @@
897
917
  {
898
918
  "name": "config",
899
919
  "type": "object",
900
- "description": "Test configuration incl. scriptRef {source: s3|s3_upload|existing_zip_id, value|identifier}, vuRamp, durationSec, loadGeneratorLocations, slaThresholds, envVarKeys, tags. To supply a script from a local file or URL, use the pendingScriptUpload flow, then source='s3'."
920
+ "description": "Test configuration incl. scriptRef {source: s3|s3_upload|existing_zip_id|sample, value|identifier}, loadProfile (constant|ramping|iterations|throughput), vus, vuRamp, durationSec, iterations, targetRps, maxVus, loadGeneratorLocations, slaThresholds, envVarKeys, tags. See the load-profile guidance for which fields each loadProfile needs (iterations + throughput are PLU-only). To supply a script from a local file or URL, use the pendingScriptUpload flow, then source='s3'. To create a test from the platform's built-in sample (no upload), use scriptRef:{source:'sample'} — for Selenium also pass scriptRef.subType (testng|junit|vanillajava|python|pytest|jest|serenity-cucumber)."
901
921
  },
902
922
  {
903
923
  "name": "children",
@@ -934,7 +954,12 @@
934
954
  "guidance": [
935
955
  "Provide exactly one of projectId or projectName; projectName creates the project if absent.",
936
956
  "Script upload is two-phase: send pendingScriptUpload to get a presigned uploadUrl + s3Key, PUT the file, then call create again with the scriptRef source and s3Key returned in the response's nextStep.",
937
- "Pass idempotencyKey so a retried create does not duplicate the test."
957
+ "To spin up a test from a built-in sample with NO file handling (the dashboard's 'use sample script'), pass scriptRef:{source:'sample'} — the platform's bundled sample for the given framework is used. For Selenium, also pass scriptRef.subType (testng|junit|vanillajava|python|pytest|jest|serenity-cucumber) to pick the binding. testType and framework are still needed; the load profile defaults to constant 1 VU / 30s (see below).",
958
+ "Pass idempotencyKey so a retried create does not duplicate the test.",
959
+ "Only THREE things must be known before creating, and each is taken from the user's request when they've stated it — ask ONLY for the ones still missing, and ask about nothing else: (1) testType — plu (protocol / API load), blu (real-browser load) or hybrid (both); (2) framework — k6 / jmeter / gatling / locust for plu, playwright / selenium / webdriverio / nightwatch for blu; (3) the script — a built-in sample (scriptRef:{source:'sample'}; for Selenium also pass scriptRef.subType) OR the user's own script via the pendingScriptUpload flow. Do not guess a framework/testType, but do not re-ask for one the user already gave.",
960
+ "There is no clone capability. To duplicate a test, getLoadTest the source and copy its full config into this create — vuRamp/vus, durationSec, loadGeneratorLocations and slaThresholds included; nothing is inherited from the source, so anything you omit is dropped.",
961
+ "Everything BEYOND those three DEFAULTS — do not ask about it; apply the default unless the user explicitly specifies otherwise: loadProfile='constant', config.vus=1, config.durationSec=30, region us-east-1 (omit loadGeneratorLocations so the backend defaults it), and NO advanced features (do not enable log capture, response capture, artifacts, thresholds, etc.). Send config.vus=1 + config.durationSec=30 with no vuRamp for the default constant profile.",
962
+ "Only when the user explicitly asks for a different load shape, set config.loadProfile: 'ramping' (config.vuRamp: array of {vus, durationSec} stages; ramp up/down is inferred from adjacent VU deltas), 'iterations' (PLU only — config.iterations = fixed run count, plus config.vus), or 'throughput' (PLU and only JMeter/Gatling/locust/k6 — config.targetRps + config.maxVus + config.durationSec). A stage's own 'type' is NOT honored — every stage persists as a hold."
938
963
  ],
939
964
  "returns": [
940
965
  "testId",
@@ -1014,7 +1039,8 @@
1014
1039
  "guidance": [
1015
1040
  "testId is the numeric test id, not a run id.",
1016
1041
  "dryRun:true returns the VU-hour estimate and quota fit without starting anything.",
1017
- "On success returns runId (UUID) + dashboardLink; poll getLoadTestRunStatus with the runId."
1042
+ "On success returns runId (UUID) + dashboardLink; poll getLoadTestRunStatus with the runId.",
1043
+ "A run without dryRun generates real load and consumes VU-hours. Unless the user has already asked to run it now, dryRun:true first, show the estimate/quota fit and the parameters that will be used (VUs, duration, target), and start the real run only after the user confirms — do not treat your own confirmation as the user's."
1018
1044
  ],
1019
1045
  "returns": [
1020
1046
  "runId",
@@ -1098,12 +1124,19 @@
1098
1124
  "name": "hadSlaBreach",
1099
1125
  "type": "boolean",
1100
1126
  "description": "Only runs that breached an SLA."
1127
+ },
1128
+ {
1129
+ "name": "tag",
1130
+ "type": "string",
1131
+ "description": "Filter to runs carrying this tag (a run's own tags, or the tags it inherits from the test when it has none of its own)."
1101
1132
  }
1102
1133
  ],
1103
1134
  "intent": "List the execution history of a test — use this to find past runs of a specific test or to get a runId.",
1104
1135
  "guidance": [
1105
1136
  "testId is numeric; runId values returned are UUIDs.",
1106
- "Filter with status / verdict / date range; page with cursor + limit."
1137
+ "Each run carries a tags array — its own run-level tags if set (via updateLoadTest with runId), otherwise the tags inherited from the test. Filter with the tag query param.",
1138
+ "Filter with status / verdict / date range; page with cursor + limit.",
1139
+ "One call returns this test's run history — reuse it and page with cursor when needed; do not re-list the same window."
1107
1140
  ],
1108
1141
  "returns": [
1109
1142
  "runs",
@@ -1185,7 +1218,8 @@
1185
1218
  "intent": "Show how one test's metrics trend across its recent runs — use this for 'is this test getting slower over time?'",
1186
1219
  "guidance": [
1187
1220
  "metrics accepts dotted names or @ aliases; @vitals / @all expand to metric sets.",
1188
- "windowRuns bounds how many recent runs are aggregated."
1221
+ "windowRuns bounds how many recent runs are aggregated.",
1222
+ "Returns the whole windowed series across metrics in one call — request all needed metrics together; do not call once per metric or re-fetch the same window."
1189
1223
  ],
1190
1224
  "returns": [
1191
1225
  "metrics"
@@ -1295,13 +1329,22 @@
1295
1329
  "type": "string"
1296
1330
  }
1297
1331
  ]
1332
+ },
1333
+ {
1334
+ "name": "runId",
1335
+ "type": "string",
1336
+ "description": "Tag a specific RUN instead of the test definition. When set, config.tags is applied to that run's own tags (the saved test is NOT changed); only config.tags may accompany runId. Omit it to edit the test."
1298
1337
  }
1299
1338
  ],
1300
- "intent": "Update an existing load test's name or configuration — use this to change tags, SLA thresholds, script or settings.",
1339
+ "intent": "Update an existing load test's name or configuration — use this to change tags, SLA thresholds, script or settings; also tags a specific run when runId is set.",
1301
1340
  "guidance": [
1302
1341
  "Partial update: send only the fields to change.",
1303
1342
  "Pass ifVersion for optimistic concurrency; a stale value returns 409 VERSION_CONFLICT.",
1304
- "Script replacement uses the same two-phase pendingScriptUpload flow as create."
1343
+ "Script replacement uses the same two-phase pendingScriptUpload flow as create.",
1344
+ "config is a partial update, but each field it carries REPLACES that field wholesale — it does not merge. tags overwrites the entire tag set; it does not append. To add a tag to a test (or the same tag across several tests), getLoadTest each one first and send the union under config.tags.",
1345
+ "To change the load profile, send config.loadProfile plus that profile's fields (see createLoadTest's load-profile guidance for the four shapes). Switching profiles clears the previous profile's fields — e.g. ramping→throughput empties the stages and drops iterations. iterations and throughput are PLU-only.",
1346
+ "To tag a specific RUN rather than the test, pass runId (a run UUID from listLoadTestRuns) together with config.tags — the tags apply to that one run and the saved test is untouched. A run inherits the test's tags until you set its own; setting run tags overrides (they also replace wholesale, so send the union to add). Omit runId to tag the test itself.",
1347
+ "Tags live on the load test, not on its runs — there is no per-run tagging, so do not touch runs when asked to tag a test. To tag every test in a project, list them with listLoadTests and page through with cursor until hasMore is false, then updateLoadTest each one — do not stop after the first page or a subset."
1305
1348
  ],
1306
1349
  "returns": [
1307
1350
  "testId",
@@ -1344,13 +1387,7 @@
1344
1387
  {
1345
1388
  "name": "include",
1346
1389
  "type": "string",
1347
- "values": [
1348
- "config",
1349
- "thresholds",
1350
- "tags",
1351
- "children"
1352
- ],
1353
- "description": "Comma-separated sub-resources to expand."
1390
+ "description": "Comma-separated sub-resources to expand — any combination of: config, thresholds, tags, children (e.g. \"config,thresholds\"). Ask for everything you need in ONE call (include=config,thresholds,tags) rather than one request per sub-resource."
1354
1391
  },
1355
1392
  {
1356
1393
  "name": "fields",
@@ -1361,7 +1398,8 @@
1361
1398
  "intent": "Get the full configuration of a single load test — use this to inspect a test's settings, script reference, SLA thresholds and children.",
1362
1399
  "guidance": [
1363
1400
  "testId is numeric (from listLoadTests).",
1364
- "Use include to expand config / thresholds / tags / children."
1401
+ "Use include to expand config / thresholds / tags / children.",
1402
+ "A single call returns the complete configuration — VU/ramp profile, duration, load-generator regions and SLA thresholds (expand them with include=config,thresholds). Do not call again for the same testId within a task; reuse the result."
1365
1403
  ],
1366
1404
  "returns": [
1367
1405
  "testId",