Skip to main content
Glama

BrowserStack MCP server

Official
handler.ts1.44 kB
import { RunTestsInstructionResult, RunTestsStep } from "../common/types.js"; import { SetUpPercyInput } from "../common/schema.js"; import { SUPPORTED_CONFIGURATIONS } from "./frameworks.js"; import { SDKSupportedLanguage } from "../common/types.js"; export function runPercyAutomateOnly( input: SetUpPercyInput, percyToken: string, ): RunTestsInstructionResult { const steps: RunTestsStep[] = []; // Assume configuration is supported due to guardrails at orchestration layer const languageConfig = SUPPORTED_CONFIGURATIONS[input.detectedLanguage as SDKSupportedLanguage]; const driverConfig = languageConfig[input.detectedBrowserAutomationFramework]; const testingFrameworkConfig = driverConfig ? driverConfig[input.detectedTestingFramework] : undefined; // Generate instructions for the supported configuration with project name const instructions = testingFrameworkConfig ? testingFrameworkConfig.instructions : ""; // Prepend a step to set the Percy token in the environment steps.push({ type: "instruction", title: "Set Percy Token in Environment", content: `Here is percy token if required {${percyToken}}`, }); steps.push({ type: "instruction", title: `Percy Automate Setup for ${input.detectedLanguage} with ${input.detectedTestingFramework}`, content: instructions, }); return { steps, requiresPercy: true, missingDependencies: [], }; }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/browserstack/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server