Skip to main content
Glama

BrowserStack MCP server

Official
bstack-sdk.ts1.2 kB
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { BrowserStackConfig } from "../lib/types.js"; import { RunTestsOnBrowserStackParamsShape } from "./sdk-utils/common/schema.js"; import { runTestsOnBrowserStackHandler } from "./sdk-utils/handler.js"; import { RUN_ON_BROWSERSTACK_DESCRIPTION } from "./sdk-utils/common/constants.js"; import { handleMCPError } from "../lib/utils.js"; import { trackMCP } from "../lib/instrumentation.js"; export function registerRunBrowserStackTestsTool( server: McpServer, config: BrowserStackConfig, ) { const tools: Record<string, any> = {}; tools.setupBrowserStackAutomateTests = server.tool( "setupBrowserStackAutomateTests", RUN_ON_BROWSERSTACK_DESCRIPTION, RunTestsOnBrowserStackParamsShape, async (args) => { try { trackMCP( "runTestsOnBrowserStack", server.server.getClientVersion()!, config, ); return await runTestsOnBrowserStackHandler(args, config); } catch (error) { return handleMCPError("runTestsOnBrowserStack", server, config, error); } }, ); return tools; } export default registerRunBrowserStackTestsTool;

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