TestivAI logo

TestivAI

Local visual regression MCP tooling with DOM-aware verdicts, diff images, and snapshot explanations for AI coding agents.

Install TestivAI

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "testivai": {
      "command": "npx",
      "args": [
        "-y",
        "testivai"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

TestivAI MCP server connects AI coding agents to TestivAI’s local visual regression workflow. It exposes visual results such as verdicts, diff images, DOM changes, style comparisons, and the explain_snapshot tool, which supplies evidence for an agent to turn into a narrative. Captures and reports remain local, require no account or API key, and write machine-readable results for agent inspection. Reach for it when an agent changes web UI and needs to distinguish intentional layout or style changes from rendering noise.

Use cases

  • Review visual changes made by an AI coding agent
  • Separate rendering noise from real UI regressions
  • Trace layout shifts to changed or moved elements
  • Inspect style-only changes in screenshot tests
  • Approve intentional visual updates from a pull request

Key features

  • DOM- and computed-style-aware visual verdicts
  • Diff images with changed-region and element attribution
  • Local machine-readable JSON and HTML reports
  • Selector and coordinate masking for dynamic areas
  • Playwright and WebdriverIO adapters
  • MCP snapshot explanations for AI agents

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

11/11 checks healthy over the last 44d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9d ago via OSV.dev · testivai (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars8Stargazers on the source repository.
Last commit6d agoMost recent push to the default branch.

How TestivAI works

What TestivAI does

TestivAI provides local-first visual regression testing for web applications and exposes the resulting evidence to AI coding agents through MCP. Its workflow compares captured screenshots with baselines while also examining the page DOM and, where supported by the adapter, element-level computed styles.

The resulting report combines pixel differences with structural and style signals. It can identify added or removed DOM elements, style-only changes, shifted selectors, changed regions, and broad page movement. Dynamic content can be excluded with selector- or coordinate-based masks, which remain visible as hatched areas in the diff.

The project is designed for agent-assisted UI work. An agent can read visual-report/results.json, inspect diff images, and use the explain_snapshot tool to receive layered evidence before describing or evaluating a change.

How it works

TestivAI captures a screenshot alongside a DOM snapshot by default for its adapters and crawler. Several adapters also record an element map and computed-style digest. The comparison engine uses these artifacts to qualify pixel differences rather than treating every changed pixel as a regression.

A small, scattered pixel difference may receive a likely-render-noise hint when the DOM and compared styles are identical. A concentrated or larger difference is surfaced separately, because the style check does not cover every cause of visual change, including size, overflow, transforms, or images. Identical DOM with changed computed styles is reported as a real style change. Structural differences include a summary such as the number of added and removed elements.

The explain_snapshot MCP tool passes this evidence to the agent’s model; the model writes the natural-language explanation. No hosted AI service is required for that step. Reports include per-snapshot diff percentages and DOM summaries in a machine-readable JSON schema, alongside self-contained HTML output and diff imagery.

Setup and configuration

TestivAI is intended to run entirely on the local machine or in CI. It needs no account, API key, or hosted service. Baselines are stored in the repository, and the generated report remains local unless a project separately publishes it through the available GitHub workflow.

Use the TestivAI adapters with Playwright or WebdriverIO to capture application pages through those frameworks’ native APIs. Playwright support covers JavaScript/TypeScript and Python, with Java identified as experimental. Playwright device emulation uses the same capture call and keeps baselines keyed by device profile.

For agent workflows, place the project’s visual-verification instructions in AGENTS.md or CLAUDE.md. The documented workflow has the agent run the UI tests, read visual-report/results.json, inspect suspicious diff images, and ask for approval when a change appears intentional. Claude Code also has a testivai-report plugin that displays the report and screenshots in the application.

Tools and capabilities

  • explain_snapshot: provide an agent with selector shifts, changed elements, style-only evidence, and whole-page shift analysis for a snapshot.
  • Visual verdicts that distinguish likely rendering noise, concentrated or large differences, style-only changes, structural changes, unavailable style comparisons, and unhealthy captures.
  • Region-level diffs with bounding boxes and element attribution, including exact positional shifts where the layout evidence supports them.
  • Selector- and coordinate-based masks for dynamic regions.
  • Shared baselines and reports across supported language adapters.
  • GitHub Actions for posting diffs and handling /testivai approve baseline approvals in pull requests; a companion workflow can publish reports to GitHub Pages.

Limitations and notes

Computed-style comparison depends on the capture adapter and available element map. Playwright JavaScript/TypeScript, WebdriverIO, Selenium, and Ruby adapters record an element map; the crawler, Playwright Python, and Playwright Java do not provide the same style-comparison coverage described for those adapters. When styles cannot be compared, the report avoids calling a difference render noise.

The style check covers a fixed property list. It does not establish that unchanged styles rule out changes involving dimensions, overflow, transforms, or images. A failed web-font or stylesheet load produces an unhealthy capture, which should not become a baseline.

The experimental testivai run sidecar does not capture a DOM snapshot by default. Baseline approval remains a human action through the pull request workflow, even when an agent performs the local investigation.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about TestivAI

TestivAI is an MCP server that connects AI coding agents to TestivAI’s local visual regression workflow. Its main tools and outputs include snapshot verdicts, diff images, machine-readable results, DOM and style comparisons, and explain_snapshot, which gives an agent evidence for describing visual changes without an account or API key.

Install and configure TestivAI according to its MCP setup guide, then add the agent instructions to AGENTS.md or CLAUDE.md. The workflow runs locally, uses the supported browser-test adapters, and does not require an account, API key, or hosted service.

Yes, TestivAI is documented for Cursor-based agent workflows. The agent can run the visual tests, read visual-report/results.json, inspect diff images, and use the MCP snapshot explanation workflow to assess UI changes.

Yes, when the capture includes the element data required for computed-style comparison. Matching DOM structure with changed computed styles is reported as a style-only change; when style data is unavailable, TestivAI reports that styles were not compared instead of classifying the difference as rendering noise.

No, TestivAI runs locally without an API key or account. Captures, baselines, diffs, and self-contained reports can remain on the machine or in CI, while GitHub workflows are available when a project wants pull-request approvals or GitHub Pages publishing.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewTestivAI AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/testivai?style=directory)](https://allmcps.com/mcp/testivai)
HTML Embed
<a href="https://allmcps.com/mcp/testivai"><img src="https://allmcps.com/api/badge/testivai?style=directory" alt="TestivAI on AllMCPs" /></a>