Get your setup working faster. Join our Discord for optimisation tips from elite testers.
Join our Discord
BrowserStack Test Reporting and Analytics with the MCP server
Use natural language prompts in your AI assistant to review builds, investigate failures, and manage dashboards and reports in Test Reporting and Analytics.
Use the BrowserStack MCP server to work with Test Reporting and Analytics directly from your AI assistant, such as GitHub Copilot, Claude, Cursor, or ChatGPT. Review build runs and test results, investigate failures and unique errors, check quality gates and test health, and manage dashboards and reports with prompts.
To set up the server, see get started with the BrowserStack MCP server .
To use Test Reporting and Analytics tools on the MCP server, you need a Test Reporting and Analytics license. Contact BrowserStack support to enable a license for your account.
Your AI assistant finds the right capability with searchCapability and runs it with invokeCapability. You don’t need to name a tool in your prompt. Describe the outcome you want, and your AI assistant picks one for you. To learn how your AI assistant finds and runs tools, see core tools with the BrowserStack MCP server .
Projects
Workflow
What it does
Tool
Get a project
Returns one project with its settings and summary.
get_project_by_id_or_name
List projects
Returns the projects in your account with their names and identifiers. Every other workflow is scoped to a project, so this is usually the first call.
get_default_projectlist_projects_fulllist_projects
Update a project
Changes the name or other details of a project.
rename_project
Build runs
Workflow
What it does
Tool
Compare two build runs
Shows what changed between two runs: which tests newly failed, which were fixed, and which stayed the same.
get_build_comparison_aggregationget_build_comparison_metalist_build_comparison_bucket_tests
Create a build group
Bundles related build runs into one group.
create_build_group
Get a build run
Returns one build run with its status, duration, platforms, and test counts.
fetchBuildInsightsget_build_detailsget_build_non_sdk_test_countsget_build_summary_statslist_split_build_legsget_build_summaryget_build_insightsget_build_notification_summaryget_test_run_build_insights
List build groups
Returns the groups that bundle related build runs together.
list_project_builds_by_grouplist_build_groups
List build runs
Returns the build runs in a project, newest first, so you can pick a run by name, number, or tag.
getBuildIdlistBuildIdlist_home_unique_buildsget_latest_buildlist_project_builds_by_namelist_project_builds_by_project_idlist_recent_runs
Read build run history
Returns earlier runs of the same build, so you can compare a result with what came before.
get_build_historylist_build_history_with_defect_counts
Read build run statistics
Returns the numbers behind a build run: stability, flaky tests, new failures, always-failing tests, muted tests, defects, re-runs, timeline, and failures by module.
get_build_always_failing_statsget_build_attempt_run_statsget_build_failure_category_statsget_build_failures_by_moduleget_build_flaky_statsget_build_muted_statsget_build_new_failure_statsget_build_rerun_statsget_build_stability_tileget_build_timeline_statsget_split_build_rerun_statsget_build_name_status_aggregationget_daily_summary_reportlist_latest_build_summaries
Tests
Workflow
What it does
Tool
Get session details
Returns the browser or device session that a test ran on, with its capabilities and profiling data.
get_session_app_profilingget_session_capabilitiesget_session_details
Get test details
Returns one test in full: its steps, code, platform, tags, attachments, hooks, and how it behaved in earlier runs.
get_session_test_codeget_test_runs_history_detailsget_test_run_baselineget_test_run_detailsget_test_run_behaviourget_test_run_hooksget_test_run_media_logsget_test_run_metaget_test_run_overviewget_test_run_test_codelist_test_run_detail_tabslist_test_run_execution_historylist_test_run_linked_test_cases
List tests in a build run
Returns the tests in a run, flat or grouped by file and suite, with their status and duration.
listTestIdslist_build_test_folderslist_build_bstack_error_sessionslist_build_test_run_countslist_build_test_runslist_build_test_runs_flatlist_build_test_runs_hierarchylist_build_test_runs_hierarchy_without_public_linklist_build_test_runs_with_attachments
Read comments on a test
Returns the comments that people left on a test or a build run.
list_build_comment_threadslist_commentslist_test_run_comments
Read test logs
Returns the logs that a failing test left behind: console, network, application, and retry logs.
getFailureLogsget_test_run_retry_logslist_build_test_run_sdk_logsget_session_network_log_urlget_test_run_app_logsget_test_run_app_logs_rawget_test_run_log_bundleget_test_run_merged_logsget_test_run_network_log_urlget_test_run_network_logs
Set the failure reason on a test
Assigns a failure category to a failed test. Failure analysis reports use these categories.
assign_issue_types_to_test_runsassign_test_run_failure_categories
Unique errors
Workflow
What it does
Tool
Find similar errors
Returns errors that look like the one you’re investigating, so one fix can cover all of them.
list_similar_test_runslist_test_runs_sharing_error
Get unique error details
Returns one error in full: the tests it broke, the builds and platforms it appeared on, and its trend over time.
get_unique_error_build_trendget_unique_error_impacted_testsget_unique_error_occurrence_countget_unique_error_platform_breakdownget_unique_error_summarylist_unique_error_builds
List unique errors
Returns the distinct errors across a project, each with the number of tests and runs it affected.
search_unique_errorsget_build_top_error_statsget_unique_error_timeline_chartslist_unique_errors
AI and root cause analysis
Workflow
What it does
Tool
Add or update a code fix preference
Sets a rule that your assistant follows when it suggests code, such as a style to use or a file to avoid.
update_code_fix_preference
Get the AI summary of a build
Returns a short written summary of what went wrong in a run.
get_build_ai_failure_summary
Get the failure analysis for a build
Returns the automatic grouping of a run’s failures into themes and likely causes.
get_build_ai_failureslist_ai_failure_theme_test_runs
Get the root cause of a test failure
Returns why one test failed and what to change.
fetchRCAget_test_rca_dataget_test_rca
Run failure analysis on a build
Starts the automatic analysis of a run’s failures.
trigger_build_ai_failure_analysistrigger_bulk_test_rca
Run root cause analysis on a test
Starts the analysis of one failing test and returns a job that you can follow.
retrigger_rca_analysisimprove_test_rcatrigger_test_rca
Self-healing
Workflow
What it does
Tool
Get the self-healing report
Returns the broken locators that were repaired automatically in a run.
get_build_self_heal_summary
Raise a pull request for healed locators
Opens a pull request in the connected repository with the accepted locator repairs.
get_self_healing_pr_statuscreate_self_healing_pr
Review a healed locator
Returns the proposed locator repairs and records whether you accept each one.
list_self_healing_verdictssubmit_self_healing_verdict
Quality gates
Workflow
What it does
Tool
List quality gate profiles
Returns the quality gate profiles on a project and the thresholds that each one sets.
get_project_quality_gate_settingsget_quality_profile
Read the quality gate result
Returns whether a run passed its quality gate and which rule failed.
get_build_quality_gate_resultget_build_quality_gate_summaryget_build_quality_profile_resultlist_build_quality_profile_results
Recalculate the quality gate
Runs the quality gate again on a build, for example, after you mute or re-run tests.
recalculate_build_quality_gate
Test health
Workflow
What it does
Tool
Get test health details
Returns the history of one test: how often it failed, on which builds and platforms, and how that changed over time.
get_suite_health_statsget_suite_health_test_infoget_suite_health_test_platform_breakdownget_suite_health_trendget_test_base_infoget_test_environment_breakdownget_test_health_statsget_test_health_trendlist_suite_health_test_runs
List test health
Returns every unique test with its failure count, failure rate, and average duration over a period that you choose.
get_test_metrics_chartlist_suite_health_testslist_test_health_tests
Testing trends
Workflow
What it does
Tool
Read testing trends
Returns the trend charts for a project: stability, flakiness, new failures, always-failing tests, duration, test growth, run frequency, failure categories, and platform coverage.
get_always_failing_tests_trendget_build_frequencyget_build_performance_chartget_build_stability_chartget_cross_browser_coverageget_failure_categories_trendget_flakiness_trendget_new_failures_trendget_project_performance_chartget_project_stability_chartget_test_executions_trendget_test_growth_trendlist_performance_leaderboardlist_stability_leaderboard
Read the overview summary
Returns the headline numbers on the overview page, such as time saved, stability, and flaky test counts.
get_home_takeawaysget_home_takeaways_with_noise_breakdownget_project_automation_coveragelist_home_recent_views
Accessibility
Workflow
What it does
Tool
Read accessibility results
Returns the accessibility findings recorded against a build run and its tests.
get_build_accessibility_metaget_test_run_accessibility_metalist_build_accessibility_test_runs
SDK
Workflow
What it does
Tool
Read SDK adoption
Returns how many builds still run without the BrowserStack SDK. Builds that run without the SDK have limited reporting.
get_project_non_sdk_build_countget_project_non_sdk_summary
Dashboards
Workflow
What it does
Tool
Clone a dashboard
Copies a dashboard with its widgets, so you can change it without changing the original.
clone_dashboardclone_dashboard_view
Create a dashboard
Creates a dashboard to hold widgets.
create_dashboardcreate_dashboard_view
Get a dashboard
Returns one dashboard with its widgets.
get_dashboardlist_dashboard_view_widget_typesget_dashboard_view
List dashboards
Returns the available dashboards and the owner of each one.
list_dashboardslist_dashboard_views
Read widget data
Returns the numbers behind one widget, and the details behind a number when you drill into it.
get_dashboard_view_widget_dataget_org_dashboard_widget_dataget_widget_drilldown_records
Update a dashboard
Changes the name, layout, or widgets of a dashboard.
update_dashboardupdate_dashboard_view
Reports
Workflow
What it does
Tool
Clone a report
Copies a report, so you can change its scope without changing the original.
clone_report
Create a report
Builds a report of a type that you choose, over the projects and dates that you choose.
create_report
Get a report
Returns one report with the data behind it.
get_reportget_report_dataset_rowsget_report_stat_tilesgenerate_build_reportget_report_test_statsget_report_test_trendlist_report_test_runsget_tabular_test_runs_report_tilesrun_tabular_test_runs_report
List reports
Returns the reports saved in your account, with their type and who can see them.
list_reportslist_report_custom_fieldslist_report_static_buildslist_saved_reports
Update a report
Changes the title, scope, or filters of a report.
update_report
Views and filters
Workflow
What it does
Tool
Create a saved view
Saves the current filters under a name, so you can apply the same selection again later.
create_view
List saved views
Returns the saved filter combinations available for a page.
list_views
Update a saved view
Changes the name of a saved view or the filters behind it.
update_viewreplace_view
Search
Workflow
What it does
Tool
Search across the product
Finds builds, tests, and projects by name from one query.
search_entities
Public sharing
Workflow
What it does
Tool
Read public sharing settings
Returns whether a project or dashboard is shared publicly.
get_dashboard_public_link_settingget_project_public_link_setting
Integrations
Workflow
What it does
Tool
Link a defect to a test
Raises or attaches an issue tracker ticket against a failing test.
link_bug_to_test_run
Manage pull request checks
Posts the run result back to a pull request as a check, and manages those checks.
list_check_configurationscreate_check_configurationscreate_checks_mappingtoggle_check_configurationupdate_check_configurationget_checks_mapping
Read defects linked to a test
Returns the issue tracker tickets raised against a failing test.
get_test_run_bug_report_draft
Usage
Workflow
What it does
Tool
Read parallel session usage
Returns which users and teams are using parallel sessions, and which sessions are queued.
get_parallel_queue_usage_summarylist_parallel_queue_team_usagelist_user_running_buildslist_queued_sessions
Read usage
Returns how many test executions and parallel sessions your plan has used.
get_device_tier_usageget_group_plan_usage_detailsget_test_execution_usage_countlist_running_builds_on_device
For more help, see the following pages:
Is this page helping you?
Thank you for your valuable feedback!