@browserstack/mcp-server 2.2.5-beta.2 → 2.2.5-beta.3
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/dist/lib/accessibility-routing.d.ts +5 -0
- package/dist/lib/accessibility-routing.js +5 -0
- package/dist/server-factory.js +6 -1
- package/dist/tools/accessibility.js +588 -67
- package/dist/tools/accessiblity-utils/app-report-fetcher.d.ts +341 -0
- package/dist/tools/accessiblity-utils/app-report-fetcher.js +731 -0
- package/dist/tools/accessiblity-utils/paginate.d.ts +21 -0
- package/dist/tools/accessiblity-utils/paginate.js +44 -0
- package/dist/tools/accessiblity-utils/report-fetcher.d.ts +116 -7
- package/dist/tools/accessiblity-utils/report-fetcher.js +273 -30
- package/dist/tools/accessiblity-utils/report-parser.d.ts +41 -1
- package/dist/tools/accessiblity-utils/report-parser.js +142 -43
- package/dist/tools/appautomate-utils/appium-sdk/config-generator.d.ts +2 -0
- package/dist/tools/appautomate-utils/appium-sdk/config-generator.js +15 -5
- package/dist/tools/appautomate-utils/appium-sdk/constants.d.ts +2 -1
- package/dist/tools/appautomate-utils/appium-sdk/constants.js +6 -1
- package/dist/tools/appautomate-utils/appium-sdk/handler.js +11 -1
- package/dist/tools/appautomate-utils/appium-sdk/instructions.d.ts +3 -1
- package/dist/tools/appautomate-utils/appium-sdk/instructions.js +2 -2
- package/dist/tools/appautomate-utils/appium-sdk/languages/accessibility.d.ts +2 -0
- package/dist/tools/appautomate-utils/appium-sdk/languages/accessibility.js +32 -0
- package/dist/tools/appautomate-utils/appium-sdk/languages/nodejs.d.ts +3 -1
- package/dist/tools/appautomate-utils/appium-sdk/languages/nodejs.js +19 -6
- package/dist/tools/appautomate-utils/native-execution/appautomate.d.ts +7 -2
- package/dist/tools/appautomate-utils/native-execution/appautomate.js +15 -12
- package/dist/tools/appautomate-utils/native-execution/constants.d.ts +2 -1
- package/dist/tools/appautomate-utils/native-execution/constants.js +6 -1
- package/dist/tools/appautomate.js +29 -16
- package/dist/tools/failurelogs-utils/app-automate.js +1 -1
- package/dist/tools/testmanagement-utils/create-testrun.d.ts +1 -1
- package/dist/tools/testmanagement-utils/update-testrun.d.ts +1 -1
- package/dist/tools/tool-handoff.d.ts +5 -4
- package/dist/tools/tool-handoff.js +5 -10
- package/package.json +1 -1
- package/dist/tools/accessiblity-utils/accessibility-rag.d.ts +0 -12
- package/dist/tools/accessiblity-utils/accessibility-rag.js +0 -59
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which product checks what for accessibility, said once to every client, since the tools
|
|
3
|
+
* alone do not tell an agent that a web page and a mobile app are scanned differently.
|
|
4
|
+
*/
|
|
5
|
+
export declare const ACCESSIBILITY_ROUTING_INSTRUCTION = "Accessibility checks: a web page or site \u2192 startAccessibilityScan (Website Scanner); a multi-step web flow \u2192 Automate tests with `accessibility: true` in browserstack.yml (setupBrowserStackAutomateTests); a mobile app \u2192 its tests on App Automate with accessibility on (setupBrowserStackAppAutomateTests, or runAppTestsOnBrowserStack for Espresso/XCUITest). Then read the issues with fetchAccessibilityIssues.";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which product checks what for accessibility, said once to every client, since the tools
|
|
3
|
+
* alone do not tell an agent that a web page and a mobile app are scanned differently.
|
|
4
|
+
*/
|
|
5
|
+
export const ACCESSIBILITY_ROUTING_INSTRUCTION = "Accessibility checks: a web page or site → startAccessibilityScan (Website Scanner); a multi-step web flow → Automate tests with `accessibility: true` in browserstack.yml (setupBrowserStackAutomateTests); a mobile app → its tests on App Automate with accessibility on (setupBrowserStackAppAutomateTests, or runAppTestsOnBrowserStack for Espresso/XCUITest). Then read the issues with fetchAccessibilityIssues.";
|
package/dist/server-factory.js
CHANGED
|
@@ -21,6 +21,7 @@ import addCapabilityRegistryTools from "./tools/capability-registry/register.js"
|
|
|
21
21
|
import { instrumentToolLatency } from "./lib/tool-latency.js";
|
|
22
22
|
import { nodeUpgradeNotice } from "./lib/node-version-notice.js";
|
|
23
23
|
import { FEEDBACK_INSTRUCTION } from "./lib/feedback-hint.js";
|
|
24
|
+
import { ACCESSIBILITY_ROUTING_INSTRUCTION } from "./lib/accessibility-routing.js";
|
|
24
25
|
import addFeedbackTools from "./tools/feedback.js";
|
|
25
26
|
/**
|
|
26
27
|
* Wrapper class for BrowserStack MCP Server
|
|
@@ -37,7 +38,11 @@ export class BrowserStackMcpServer {
|
|
|
37
38
|
name: "BrowserStack MCP Server",
|
|
38
39
|
version: packageJson.version,
|
|
39
40
|
}, {
|
|
40
|
-
instructions: [
|
|
41
|
+
instructions: [
|
|
42
|
+
nodeUpgradeNotice(),
|
|
43
|
+
FEEDBACK_INSTRUCTION,
|
|
44
|
+
ACCESSIBILITY_ROUTING_INSTRUCTION,
|
|
45
|
+
]
|
|
41
46
|
.filter(Boolean)
|
|
42
47
|
.join("\n"),
|
|
43
48
|
});
|