Repository navigation
feat(app-accessibility): read the App Accessibility dashboard with an ai_agent token - #589
Closed
Parth-browserstack wants to merge 2 commits into
Closed
Parth-browserstack wants to merge 2 commits into
Parth-browserstack wants to merge 2 commits into
Conversation
Capabilities that name host "dashboard" now resolve to the regional App Accessibility dashboard (app-accessibility[-eu|-in].browserstack.com). app_accessibility joins STRICT_NAMED_HOST_PRODUCTS, so a lower-env override of the product host alone cannot send dashboard calls to prod. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… ai_agent token Adds 17 read capabilities on the App Accessibility dashboard routes that app-accessibility admits for an ai_agent token: build details, overview and score trend, tests, per-test issues, conformance summary, comparable builds and compare; build names, bundle ids and users; manual report count, devices, details, overview, rules, WCAG levels and conformance. Each declares host "dashboard" and auth oauth2, so the registry mints a central-auth token instead of sending Basic. The three public-API lists keep Basic. Routes fetchAccessibilityIssues or the existing lists already serve are left out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
Collaborator
Author
|
Combined into #595 (dashboard reads from this PR, plus issue actions, Screen Reader Automation reads and the screen reader run option). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
App Accessibility MCP could only reach the access-key (public) API, which covers projects, builds and manual report lists. Most of what a user sees on the App Accessibility dashboard (build overview and trend, tests, per-test issues, conformance, compare, manual report overview, rules and WCAG levels) was out of reach. Jira: ATA-1598.
app-accessibility now accepts a central-auth token carrying the
ai_agentscope on an allowlist of dashboard reads (browserstack/app-accessibility#3033), the same model as Web Accessibility (#570). This PR adds the MCP side.What changed
config.ts:app_accessibilitygets adashboardhost (appAccessibilityDashboard, already defined for us/eu/in) and joinsSTRICT_NAMED_HOST_PRODUCTS, so overriding only the product host cannot send dashboard calls to production.capability/app_accessibility.capability-index.json: 17 read capabilities withhost: dashboardandauth: {type: oauth2}.get_app_accessibility_build,get_app_accessibility_build_overview,get_app_accessibility_build_conformance_summary,list_app_accessibility_comparable_builds,compare_app_accessibility_builds,list_app_accessibility_build_tests,list_app_accessibility_test_issues,list_app_accessibility_build_names,list_app_accessibility_bundle_ids.list_app_accessibility_users.count_manual_app_accessibility_reports,list_manual_app_accessibility_devices,get_manual_app_accessibility_report,get_manual_app_accessibility_report_overview,list_manual_app_accessibility_report_rules,list_manual_app_accessibility_report_wcag_levels,get_manual_app_accessibility_report_conformance_summary.hosts, aDashboardFailureschema,Dashboard*responses, thetest_caseanduserentities, and an updated summary.snapshot:fetchAccessibilityIssuesalready serves them.tests/tools/capabilityAppAccessibilityDashboard.test.ts, 23 tests. It checks:fetchAccessibilityIssuesalready serves is duplicated.ai_agentscope.capabilityAppAccessibility.test.tsnow checks only the public-API lists.How it was verified
npx vitest run: 160 files, 2493 tests, all passing. Before this change: 2470.tscbuilds.CAPABILITY_REGISTRY_AUTH_TOKEN_URLandCAPABILITY_REGISTRY_BASE_URL_APP_ACCESSIBILITY{,_HOST_DASHBOARD}, with a test account.invokeCapabilityhandler: 13 answer 200. The other 4 answer the account's own "not enabled" refusal, exactly as the dashboard does: conformance gives 404, compare and comparable builds give 403.listProducts→searchCapability→describeCapability→invokeCapabilityfor a build overview, its tests, and a manual report's rules and WCAG levels. All returned 200.scoped_bearer_auth result=ok scope=ai_agentfor each dashboard call. The public-API list still goes over Basic.Dependencies and risk
feat/a11y-dashboard-oauth-capabilities; retarget tomainonce feat(accessibility): reach the Accessibility dashboard's own views with a minted token #570 merges.redirect_to_loginon production. Merge this only after #3033 is deployed.🤖 Generated with Claude Code