---
title: "Mcp A11Y Detection"
method: GET
path: "/v1/mcp/projects/{project_id}/a11y/detection"
tags: ["mcp"]
---

# Mcp A11Y Detection

`GET /v1/mcp/projects/{project_id}/a11y/detection`

## Request

- Base URL: `https://api.sonenta.dev`
- URL: `https://api.sonenta.dev/v1/mcp/projects/{project_id}/a11y/detection`
- Auth: none declared

Detection coverage — has the client's CODE been analyzed? (mcp:*, read-only)

MCP twin of the core `GET /v1/projects/{id}/a11y/detection`, for the same
reason as the scan twin: `mcp:*` does not satisfy even `ProjectViewer` on the
core surface (the scope map knows `project:read`/`project:write`/`*`, not
`mcp:*`), so the core route 403s. This is the scanner's post-scan
verification loop — it re-reads the SERVER's coverage instead of trusting
what it believes it wrote.

The four TREATMENT reports (aria-names, alt-text, screen-reader,
plain-language) deliberately have NO twin: they feed the client-admin
dashboard over a user JWT. Adding twins nothing calls would grow the MCP tool
surface every agent has to carry, for no caller.

## Path parameters

- `project_id` string, required

## Query parameters

- `version_id` string, nullable

## Response `200`

Successful Response

- A11yDetectionOut
  - `project_uuid` string, required
  - `version_uuid` string, nullable, required
  - `last_scan` A11yScanRecap, required
    - `last_run_at` string, date-time, required
    - `keys_scanned` integer, required
    - `keys_classified` integer, required
    - `tool` string, required
    - `tool_version` string, required
    - `scan_id` string, nullable
    - `recorded_by_user_uuid` string, nullable
    - `recorded_by_api_key_uuid` string, nullable
  - `keys_total` integer, required
  - `classified` integer, required
  - `unclassified` integer, required
  - `pct` integer, required
  - `measured` boolean, required
  - `never_analyzed` integer
  - `analyzed_not_candidate` integer
  - `analyzed_total` integer
  - `by_type` A11yTypeCount[], required
    - `type` string, required
    - `count` integer, required
  - `by_type_source` A11yTypeSourceCount[], required
    - `source` string, required
    - `count` integer, required
  - `formula` object, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/sonenta/apis/sonenta-api.md) · [All operations](https://skmtc.dev/sonenta/apis/sonenta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sonenta/apis/sonenta-api/revisions/f853ea49fb05?raw)
