# dsh-verify [Health: Active]

**Category:** 📂 Browser Automation  
**Repository:** https://github.com/263311487-ux/dsh-verify  
**GitHub Stars:** 2  
**npm Downloads (last month):** 2314  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/dsh-verify

## Description
Agent-built web app quality gate. Real browser is the judge. PASS/FAIL with receipts.

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

```json
"mcpServers": {
  "dsh-verify": {
    "command": "npx",
    "args": ["-y","dsh-verify"]
  }
}
```

## Documentation

## What dsh-verify does

dsh-verify verifies web applications through browser assertions rather than asking an LLM to judge the result. A specification can describe interactions and expected outcomes such as clicking a control, checking text, inspecting visibility, validating a URL, or comparing screenshots. The result is a PASS or FAIL verdict with an HTML report and supporting image files.

The checks can target static files served locally or an existing URL. The project is intended for agent-built applications, but its CLI and GitHub Action also suit CI workflows and manual verification.

## How it works

A JSON spec defines the page target, actions, locators, and expected results. dsh-verify launches a browser and retries assertions until their timeout, which defaults to five seconds. Supported browser engines include Chromium, Firefox, and WebKit; the starter workflow uses Chromium.

Selectors can identify elements with CSS, test IDs, roles and role names, labels, or visible text. An assertion can also wait for a network response and inspect its status or body, helping distinguish a UI message from a successful API request.

Screenshot assertions compare a run with a stored baseline. Pixel differences can be limited with a threshold, and baselines can be maintained separately for each browser. Reports include assertion details, step timing, requested screenshots, and a failure screenshot when a run stops unsuccessfully.

## Setup and configuration

Node.js 20 or newer is required. Install the npm package, then download the browser binaries with Playwright:

```bash
npm install --save-dev dsh-verify
npx playwright install chromium
```

The CLI accepts a spec path or glob:

```bash
npx dsh-verify --spec 'specs/*.json'
```

For an MCP client, register the stdio server with:

```bash
claude mcp add dsh-verify -- npx -y -p dsh-verify dsh-verify-mcp
```

`init` creates a new local fixture and two JSON specs. It refuses to modify an existing destination and has no overwrite option. A spec can use `serve` for static content or `base` for an existing URL; `serve` paths are resolved from the command's working directory.

## Tools and capabilities

MCP exposes four tools:

- `verify_spec` runs a JSON specification.
- `verify_url` performs inline checks without a spec file.
- `generate_and_verify` asks an LLM to draft checks, then executes them in real Chromium.
- `health` reports server health.

The assertion schema covers clicks, hovering, keyboard presses, selection, checking controls, filling fields, text, visibility, counts, values, attributes, classes, computed styles, URLs, console and network errors, and pixels. `expect_response` can check a matching response's status and body. CLI output supports JSON for CI, and exit codes distinguish passing runs, failed acceptance checks, and environment or configuration errors. GitHub Actions can run a spec or glob on each workflow execution and optionally override the URL and report directory.

## Limitations and notes

A PASS only covers the assertions included in that run. It is not proof of complete functionality, security, accessibility, or independent review. If the same agent creates both the application and the spec, the checks should be reviewed separately when independence matters.

Reports retain assertion details and explicitly requested screenshots rather than a complete audit trail. The `gen` command and `generate_and_verify` require an LLM key; the basic CLI, MCP verification tools, and starter checks can run without one. Browser and package installation require internet access, while the starter checks use localhost.

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

