# TestivAI Open Source [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/mcbuddy/testivai-oss  
**GitHub Stars:** 8  
**npm Downloads (last month):** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-33

## Description
Local-first visual regression for AI agents: verdicts, diff images, explain_snapshot. No API key.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "testivai-open-source": {
    "command": "npx",
    "args": ["-y","testivai"]
  }
}
```

## Documentation

## What TestivAI Open Source MCP server does

TestivAI Open Source adds visual verification to an AI agent's web development workflow. It works with locally captured browser snapshots and gives the agent structured evidence about what changed, rather than requiring it to inspect screenshots alone. The workflow is designed for modern web applications tested through Playwright or WebdriverIO, with shared baselines and reports across supported adapters.

The project is local-first and MIT-licensed. Captures, comparisons, and the self-contained HTML report remain on the local machine. No account, API key, or network service is required, which makes the workflow suitable for agent sandboxes and offline development.

## How it works

A capture includes a screenshot and a page DOM snapshot by default. Several adapters also record an element map and computed-style information. TestivAI combines these layers when evaluating a difference:

- DOM changes are summarized with additions and removals.
- Matching DOM with changed styles is reported as a style-only change.
- Matching DOM and styles with a small, scattered pixel difference may be marked as likely render noise.
- Missing style data is reported as styles not compared rather than being treated as noise.
- Failed web-font or stylesheet loads produce an unhealthy-capture result.

The result includes per-snapshot status, diff percentages, DOM summaries, region data, and capture-health information in `visual-report/results.json`. Diff images and an HTML report provide the visual side of the review. The `explain_snapshot` MCP tool supplies layered evidence, including selector movement, changed elements, style-only changes, and whole-page shifts, so the connected model can write the explanation.

## Setup and configuration

Add the project's visual-verification instructions to `AGENTS.md` or `CLAUDE.md` so an agent knows when to run the checks and how to interpret their results. The documented workflow runs `npx playwright test`; TestivAI captures screenshots through the test setup, after which the agent reads `visual-report/results.json`.

Claude Code users can install the `testivai-report` plugin from the TestivAI marketplace to display the report and screenshots in the application. Baselines are kept in the repository, and human approval can happen in a pull request through a `/testivai approve` comment.

## Tools and capabilities

- Compare screenshots with DOM and computed-style evidence.
- Expose `explain_snapshot` for agent-readable change analysis.
- Produce region-level diffs with bounding boxes.
- Attribute movement or changes to selectors and elements.
- Detect broad page shifts, including content moved by an injected banner.
- Support Playwright JavaScript/TypeScript and Python, WebdriverIO, and experimental Playwright Java adapters.
- Use Playwright device emulation for mobile web baselines.

GitHub Actions can post diffs and process approval comments, while a companion action can publish reports to GitHub Pages.

## Limitations and notes

Computed-style comparison depends on the adapter providing element-map data on both captures. The crawler, Playwright Python, and Playwright Java paths do not provide that comparison in the same way, so identical-DOM differences may be reported as styles not compared. The style check covers a fixed property list and does not rule out changes involving size, overflow, transforms, or images. A large or concentrated difference can therefore require inspection even when DOM and styles match.

The project is intended to complement, not automatically replace, Playwright's built-in screenshot assertions. Baseline approval remains a human decision in the pull-request workflow.

_Full upstream README: https://allmcps.com/mcp/mcp-33/readme_

