# ViewportWitness by Apex Labs [Health: Active]

**Category:** 📂 Browser Automation  
**Repository:** https://github.com/Baffles78/viewport-witness  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/viewportwitness-by-apex-labs

## Description
Paid browser QA for AI agents across phone and desktop viewports, using x402.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/Baffles78/viewport-witness), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
npm install
```

2. Configure:

```sh
cp .env.example .env
```

3. Start the server:

```sh
npm run dev
```

## Documentation

## What ViewportWitness by Apex Labs does

ViewportWitness by Apex Labs checks deployed websites from a browser worker and returns evidence that can support release decisions. A standard check accepts one public HTTPS URL and evaluates three viewports: phone portrait, phone landscape, and desktop. Results include screenshots, accessibility findings, layout analysis, browser errors, structured JSON, and a PASS, FAIL, or INCONCLUSIVE status.

The service also exposes two lower-resource paid agent tools. `extract_page` turns one public HTML page into deterministic Markdown for $0.005 USDC. `web_release_gate` checks one public page for release security controls for $0.05 USDC. These tools, like the browser checks, operate only on public pages.

## How it works

The hosted service is available at `https://qa.honeygate.app` and exposes a remote MCP interface at `/mcp`. Paid HTTP requests first receive an HTTP 402 x402 challenge containing payment details. An x402-aware client, such as `@x402/fetch` with a funded wallet, pays the challenge and retries the request. The listed prices are $0.08 USDC for a standard check, $0.10 for read-only assertions, and $0.12 for a baseline comparison.

Check, verify, and compare requests return a job ID and polling URL. Clients poll until the job completes, then retrieve the report and, where needed, download viewport screenshots or comparison diffs. A comparison uses a completed, unexpired check containing screenshots for all three viewports. Reports and baselines remain available for seven days.

## Setup and configuration

For hosted use, configure an x402-capable client with a funded wallet and submit requests to the service URL. The service provides payment discovery at `/.well-known/x402`, an agent guide at `/llms.txt`, and a concise skill manifest at `/skill.md`.

To run a local instance, install dependencies, install Chromium for Playwright, copy `.env.example` to `.env`, and start the development process:

```bash
npm install
npx playwright install chromium
cp .env.example .env
npm run dev
```

Local development defaults to `PAYMENT_MODE=test`, so checks do not require payment or CDP keys. Results identify themselves as test-mode settlements.

## Tools and capabilities

- Create browser QA jobs with `POST /v1/checks`.
- Run non-mutating assertions with `POST /v1/verify`; supported examples include checking selector visibility and whether a page title contains specified text.
- Compare a current render with a previous job through `POST /v1/compare`.
- Poll job status and retrieve reports through `/v1/checks/:id`.
- Download viewport screenshots and comparison diff PNGs.
- Extract public HTML as Markdown with `extract_page`.
- Check public-page release security controls with `web_release_gate`.
- Optionally archive completed evidence and query historical snapshots when archive mode is enabled.

## Limitations and notes

Only public HTTPS URLs are accepted. Loopback, private, link-local, and metadata addresses are blocked at every hop. The browser worker does not submit forms or perform state-changing interactions, and the paid tools do not accept caller-supplied HTML, credentials, cookies, custom headers, uploads, or private-network targets.

The optional history archive is disabled by default. When enabled, it stores public-page evidence separately from the normal seven-day job retention and removes job, payment, assertion, and baseline references from archived copies.

_Full upstream README: https://allmcps.com/mcp/viewportwitness-by-apex-labs/readme_

