Skip to main content
Glama

BrowserStack MCP server

Official
api.ts1.13 kB
import { getBrowserStackAuth } from "./get-auth.js"; import { BrowserStackConfig } from "../lib/types.js"; import { apiClient } from "./apiClient.js"; export async function getLatestO11YBuildInfo( buildName: string, projectName: string, config: BrowserStackConfig, ) { const buildsUrl = `https://api-observability.browserstack.com/ext/v1/builds/latest?build_name=${encodeURIComponent( buildName, )}&project_name=${encodeURIComponent(projectName)}`; const authString = getBrowserStackAuth(config); const auth = Buffer.from(authString).toString("base64"); const buildsResponse = await apiClient.get({ url: buildsUrl, headers: { Authorization: `Basic ${auth}`, }, raise_error: false, }); if (!buildsResponse.ok) { if (buildsResponse.statusText === "Unauthorized") { throw new Error( `Failed to fetch builds: ${buildsResponse.statusText}. Please check if the BrowserStack credentials are correctly configured when installing the MCP server.`, ); } throw new Error(`Failed to fetch builds: ${buildsResponse.statusText}`); } return buildsResponse; }

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