normascope-mcp

v0.15.0
normascope-mcp Checked 2 days ago Published 1 month ago

MCP server giving coding agents eyes: capture a running UI, compare it against a mock or design source, read structured results.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_frames

List the frames Normascope tracks in this project: label, screenshot name, mode (fidelity/baseline), design source, and whether a capture exists yet.

capture

Capture screenshots of the running app for the configured frames (their routes/selectors). Origin policy is default-deny: only configured origins can be captured; private/link-local/metadata addresses are always refused.

ParameterTypeDescription
urlstringOptional base URL override. Must match a configured origin; refused otherwise.

compare

Capture the running app and score it, returning the structured summary. Two modes: with no arguments, captures and compares the configured frames (fidelity/baseline per config). With `target` (a mock PNG path inside the project) and `url`, runs the zero-config target-mock flow: capture the URL, diff against the mock. Both modes re-capture first, so the score always reflects the app as it is right now — after an edit, call this and the result includes the edit. Pass `capture: false` to re-score the existing screenshots without touching the app. The aligned mismatch percent is the primary scor…

ParameterTypeDescription
capturebooleanRe-capture the app before scoring. Defaults to true. Set false only to re-score screenshots already on disk — a stale capture will report the app as it was, not as it is.
expectUrlstringZero-config mode only: where the page ends up when it redirects on purpose — a full URL or a path resolved against `url`. By default the page must stay on the requested origin and path, so a redirec…
heightintegerViewport height for the capture.
localbooleanKeep this run's report here, when the project's reports go to Normascope Cloud. Nothing is published and no credit is used. The score is the same either way.
selectorstringOptional CSS selector to capture instead of the full page.
targetstringPath to a mock/reference PNG inside the project (zero-config mode).
urlstringURL to capture in zero-config mode. Must match a configured origin.
widthintegerViewport width for the capture (match the mock's width).

get_summary

Return the structured summary of the most recent comparison (summary.json v11: per-frame aligned mismatch % and the pixel counts behind it, SSIM, drifted sections, mode, source, flagged). This reads the last result from disk and never re-captures — after changing the app, call `compare` instead, or this returns the previous run's scores.

explain

Explain WHY flagged frames drifted, as structured findings (hypotheses — verify before applying; nothing is auto-applied). You must choose `route`: 'local' analyses here against ANTHROPIC_API_KEY and uploads nothing to Normascope Cloud; 'cloud' publishes the run to Normascope Cloud and analyses it there, spending the organization's purchased credits. There is no default — the two bill different accounts and send evidence to different places. Deterministic diff scores are never affected by this tool.

ParameterTypeDescription
route *stringRequired. 'local' = your own ANTHROPIC_API_KEY, nothing uploaded to Normascope Cloud (the evidence still reaches Anthropic under your key). 'cloud' = publish the run and spend Normascope Cloud credits…
deepbooleanUse the deep model (costs more; 'local' bills your key, 'cloud' spends more credits).
framestringStable frame ID or screenshot filename to analyze; omit to analyze all published flagged frames.