# VisualCI > Visual and snapshot testing for AI agents: PDFs, browser and mobile screenshots, and every other snapshot test (JSON, HTML, plain text, serialized component trees). VisualCI renders every PDF page in one pinned environment, skips anything it has seen before and diffs the rest. A change doesn't fail the build: the pull request's GitHub check waits while a coding agent reads the diff over MCP, then approves it, or fixes the code and pushes again. ## For coding agents: the MCP server - URL: https://visualci.com/mcp (Streamable HTTP) - Sign in with `Authorization: Bearer `: - a personal access token (`vcu_...`, created on https://visualci.com/account): everything its user can do in every organization they belong to; - or a project token (`vci_...`, on a project's Tokens tab): that one project. - Claude Code: `claude mcp add --transport http visualci https://visualci.com/mcp --header "Authorization: Bearer vcu_..."` The tools cover everything the web app and the CI API do, except choosing a plan and paying (a person does that in the web app): - Builds: `list_builds`, `get_build`, `get_snapshot` (base, head and diff images of each changed page, the changed regions and the page's text diff; for text, JSON and HTML snapshots the changes by JSON path and a unified diff), `snapshot_history` - Reviews: `review` (approve or reject a build or some of its snapshots), `review_page` (accept one page as a variant, or ignore one change) - Running a comparison: `create_build`, `upload_snapshots` (PDFs, PNG/JPEG/WebP images, or text, JSON and HTML with an optional `format`, base64), `finalize_build` - Organizations and projects: `whoami`, `list_organizations`, `get_organization` (projects, plan, credits used this month and pack credits), `create_organization`, `create_project`, `get_project`, `update_project` (including `ignore_rules` for text snapshots), `create_project_token`, `delete_project_token` ## Snapshot tests: text, JSON and HTML A changed snapshot doesn't fail CI: the GitHub check waits until the change is approved on VisualCI (by a coding agent over MCP, or in the web app), like a changed screenshot. - Formats: `json` (keys sorted, stable formatting), `html` (attributes sorted, whitespace collapsed, one node per line) and `text`. Taken from the `format` field, else the content type (`application/json`, `text/html`), else the file's extension (`.json`, `.html`). Only real changes count: reordered keys or attributes are unchanged. - Ignore rules per project (Settings tab, or `update_project` with `ignore_rules`): `json_paths` such as `$.generated_at`, `$.items[*].id` or `$..request_id`, and `text_patterns` (regular expressions). Matches are replaced with `[ignored]` before comparing. - Existing snapshot files: `visualci upload --from auto ` splits Jest and Vitest `__snapshots__/*.snap` files (one snapshot per test), insta `.snap` files, syrupy `.ambr` files (one per test) and rspec-snapshot `.snap` files. `--from jest|vitest|insta|syrupy|rspec` forces one framework. - Ruby: `expect_json_to_match_snapshot(name, hash)`, `expect_html_to_match_snapshot`, `expect_text_to_match_snapshot` from `visualci/rspec`. - Credits: 1 per snapshot checked, 5 per text diff (a text, JSON or HTML snapshot that changed). ## Support for agents (Standard Support, level 1) VisualCI implements [Standard Support](https://standardsupport.dev) level 1: one-way feedback from agents about VisualCI itself. - MCP: `support_send` with action `feedback`, and fields `title`, `kind` (bug, crash, wrong_result, confusing, missing_feature, docs, question, other) and `description`, plus the optional fields in the spec (`impact`, `task`, `request_ids`, `tool`, `error`, `suggestion`, `source`, `session`, `agent`, `idempotency_key`). - HTTP: `POST https://visualci.com/api/v1/support/feedback` with the same fields as JSON and the same tokens. - Nobody replies to feedback. Send it when something about VisualCI got in your way, once per problem, and tell the user what you sent. Never include secrets or the user's data. ## CI - Install the CLI (Linux or macOS): `curl -fsSL https://visualci.com/install.sh | sh` - In CI, with `VISUALCI_TOKEN` set to a project token: `export VISUALCI_BUILD_ID=$(visualci build create)`, then `visualci upload ` (and `visualci upload --from auto ` for Jest, Vitest, insta, syrupy or rspec-snapshot files), then `visualci build finalize`. - Parallel jobs share one build with `visualci build create --nonce `; `--subset` carries forward the snapshots of jobs that were skipped. ## Docs Every docs page is also available as Markdown: add `.md` to its URL without the trailing slash (https://visualci.com/docs/agents/ is https://visualci.com/docs/agents.md, and https://visualci.com/docs/ is https://visualci.com/docs/index.md), or request the page with `Accept: text/markdown`. The links below are the Markdown copies. All of it on one page: https://visualci.com/llms-full.txt ### Getting started - [VisualCI docs](https://visualci.com/docs/index.md): Visual and snapshot testing for AI agents. Set up CI, connect your coding agent, and send PDFs, screenshots and snapshot tests. - [Quick start](https://visualci.com/docs/quick-start.md): Install the visualci CLI, create a project and a token, and send your first build from CI. - [Coding agents](https://visualci.com/docs/agents.md): Connect a coding agent to VisualCI's MCP server, so it can read each change, check it against the code, and approve it or fix it. ### CI providers - [GitHub Actions](https://visualci.com/docs/ci/github-actions.md): Send VisualCI builds from GitHub Actions, including runners from Blacksmith and Depot, with the right commit and pull request. - [CircleCI](https://visualci.com/docs/ci/circleci.md): Send VisualCI builds from CircleCI, including parallel jobs that share one build. - [Buildkite](https://visualci.com/docs/ci/buildkite.md): Send VisualCI builds from Buildkite. The CLI reads the commit, branch and pull request from Buildkite's variables. - [GitLab CI](https://visualci.com/docs/ci/gitlab.md): Send VisualCI builds from GitLab CI. The CLI reads the commit, branch and merge request from GitLab's variables. - [Other CI providers](https://visualci.com/docs/ci/other.md): Use VisualCI from any CI system. The CLI reads Jenkins, Bitbucket Pipelines, Semaphore and Travis CI's variables, and takes environment variables everywhere else. ### Snapshot tests - [Jest](https://visualci.com/docs/snapshots/jest.md): Send Jest snapshot files to VisualCI, so a changed snapshot waits for review instead of failing the build. - [Vitest](https://visualci.com/docs/snapshots/vitest.md): Send Vitest snapshot files to VisualCI, so a changed snapshot waits for review instead of failing the build. - [insta (Rust)](https://visualci.com/docs/snapshots/insta.md): Send insta snapshot files to VisualCI, so a changed snapshot waits for review instead of failing cargo test. - [syrupy (pytest)](https://visualci.com/docs/snapshots/syrupy.md): Send syrupy snapshot files to VisualCI, so a changed snapshot waits for review instead of failing pytest. - [rspec-snapshot (Ruby)](https://visualci.com/docs/snapshots/rspec-snapshot.md): Send rspec-snapshot files to VisualCI, so a changed snapshot waits for review instead of failing RSpec. ### Visual tests - [Screenshots](https://visualci.com/docs/screenshots.md): Send browser and mobile screenshots to VisualCI, with a baseline per platform and thresholds for anti-aliasing. - [PDFs](https://visualci.com/docs/pdfs.md): How VisualCI renders, fingerprints and compares PDFs, page by page, in one pinned environment. ### Reference - [CLI reference](https://visualci.com/docs/reference/cli.md): Every visualci command and option, and the environment variables the CLI reads. - [API reference](https://visualci.com/docs/reference/api.md): VisualCI's CI API (builds, snapshots, finalize), its project settings, and the MCP server for everything else. - [Credits and plans](https://visualci.com/docs/reference/credits.md): What a VisualCI build costs in credits, the Free and Team plans, and prepaid credit packs. - [Support](https://visualci.com/docs/support.md): How coding agents and people send feedback about VisualCI, through the MCP server or the API.