visual-audit-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| visual_auditA | Renders a URL at a matrix of viewports derived from the project's own CSS breakpoints and returns a ranked index of EVERYTHING that looked suspicious: invisible text, clipping, overlaps, occlusion, overflow, off-screen elements, contrast, zero-size content. It does not decide what is a bug — each finding carries a question for you to answer. Returns no images (use visual_describe for those). Reserved health: fast=1 pass and no info-level rules; deep=multiple passes, info-level rules, more viewports. |
| visual_describeA | Expands findings from a visual_audit session: full evidence, the question to answer, and a tight PNG crop around the element at the viewport it was measured in. This is where tokens are spent, so ask for the ids that matter. Omit ids to get the top-ranked ones. |
| visual_recheckA | Re-audits only the viewports and rules involved in the given findings and reports, per finding: resolved, still present with the same geometry, or still present but moved. Use this instead of a full audit after editing styles, so the rest of the report stays stable. |
| visual_suppressA | Produces the exact code you can paste to stop this observation from coming back: a |
| visual_suppressionsA | The counterweight to suppression: suppressions rot and rot hides regressions. list shows the committed sidecar; lint flags expired entries, missing reasons, global entries, and findings that are suppressed on every run (a root cause being ignored forever); prune removes expired entries. |
| visual_inspectA | The companion to visual_audit: audit answers WHAT looked wrong, this answers WHY. Returns the computed styles, the box metrics, the ancestor colour chain, and every CSS rule that matches the selector with its origin (file:line in the project). It does not resolve which rule wins — specificity, order and !important are left for you to judge from the evidence. |
| visual_compareA | Renders the same page in two engines (default chromium vs webkit) and reports where they differ. Two kinds of evidence: layout divergence per element (size, line count, position) and findings that exist in only one engine. Native controls and monospace metrics are counted but not listed unless you pass includeNoise:true — they differ in every engine and are not actionable. Divergences are classified so you are not buried in consequences: "root" = the element whose size or wrapping changed with no changed descendant (the likely cause), "propagated" = changed because a descendant changed, "shifted" = position only, mostly the vertical cascade (summarised, not listed), "missing" = present in one engine only. This is the most expensive tool: it runs a full audit twice. |
| visual_applyA | Takes a hypothesis as CSS declarations, applies them to the element(s) in a throwaway page, and re-measures at the same viewports and condition where the finding was observed. Reports whether the target observation disappeared AND whether new observations appeared elsewhere (collateral). It also captures the computed value before and after each declaration: an inline style can lose to an !important rule, and a patch that applies but changes nothing would otherwise look like a fix. Nothing is written to disk — this validates the hypothesis, then you edit the real file. |
| visual_crawlA | Same-site crawl: follows links from the start URL (bounded depth and count), audits every route, and aggregates defects ACROSS routes — one root cause with a route count instead of N duplicates. Use dryRun:true first to see which routes it would visit without paying for any audit. For a single page use visual_audit; this is the whole-app sweep. Each route gets its own sessionId, so visual_describe still works per page. Cost is roughly routes x a single audit, so it is capped harder (3 viewports, 15 findings per route). |
| visual_doctorA | Verifies the browser, the config, the target URL, the suppression store, and — when you pass artifactsDir — scans a build output for leftover data-visual-ok / data-visual-expect attributes. Use artifactsDir:'dist' before shipping to prove the strip plugin actually ran. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 10 tools
Each tool occupies a distinct stage of the audit workflow (audit → describe/inspect → apply → recheck → compare/crawl), and the descriptions explicitly pre-empt the likely confusions, e.g. 'audit answers WHAT looked wrong, this answers WHY' for visual_inspect and 'use this instead of a full audit' for visual_recheck. The visual_suppress / visual_suppressions pair is the only near-overlap, and their descriptions sharply separate generating suppression code from managing the sidecar store.
All ten tools share a predictable `visual_` prefix with snake_case names, which makes the set easy to scan and group. The only deviation from a strict verb pattern is the plural noun `visual_suppressions` (store management vs. `visual_suppress` code generation), which is semantically justified but breaks the otherwise uniform verb convention.
Ten tools sit squarely in the ideal range, and each one covers a distinct, non-redundant capability rather than a variant of another. Nothing feels like padding — even the narrower tools (visual_doctor, visual_crawl) serve clear, documented roles.
The detect → diagnose → hypothesize → verify → suppress → lint lifecycle is unusually well covered, including environment validation and multi-route sweeps. Minor gaps remain: there is no tool to list or reopen prior audit sessions/reports (ids are required but sessions appear ephemeral), and no explicit baseline/historical regression diff beyond per-finding recheck.