Skip to main content
Glama

BrowserStack MCP server

Official
constants.ts1.73 kB
import { z } from "zod"; import { TestStatus } from "./types.js"; export const FETCH_RCA_PARAMS = { testId: z .array(z.number().int()) .max(3) .describe( "Array of integer test IDs to fetch RCA data for (maximum 3 IDs). These must be numeric test IDs, not session IDs or strings. If not provided, use the listTestIds tool to get all failed testcases. If more than 3 IDs are provided, only the first 3 will be processed.", ), }; export const GET_BUILD_ID_PARAMS = { browserStackProjectName: z .string() .describe( "The BrowserStack project name used during test run creation. Action: First, check browserstack.yml or any equivalent project configuration files. If the project name is found, extract and return it. If it is not found or if there is any uncertainty, immediately prompt the user to provide the value. Do not infer, guess, or assume a default.", ), browserStackBuildName: z .string() .describe( "The BrowserStack build name used during test run creation. Action: First, check browserstack.yml or any equivalent project configuration files. If the build name is found, extract and return it. If it is not found or if there is any uncertainty, immediately prompt the user to provide the value. Do not infer, guess, or assume a default.", ), }; export const LIST_TEST_IDS_PARAMS = { buildId: z .string() .describe( "The Browserstack Build ID of the test run. If not known, use the getBuildId tool to fetch it using project and build name", ), status: z .nativeEnum(TestStatus) .describe( "Filter tests by status. If not provided, all tests are returned. Example for RCA usecase always use failed status", ), };

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