cavi-ai
GitHub ↗

Testing and evaluation

No Adobe application is needed for the checks below, except the optional native evaluations.

Unit tests#

sh
uv sync --locked --dev
uv run --locked ruff check .
uv run --locked python -m unittest discover -s tests
uv run --locked python -m scripts.docs.build
uv run --locked python -m scripts.docs.verify

The tests drive the real Photoshop, Illustrator, Animate and Dimension code with a scripted native bridge and synthetic files. They establish the servers' own rules, not Adobe's behavior. They cover:

  • Photoshop and Illustrator authoring: owned copies that leave the source unchanged, canvas recipes and depth,

resizing, layer edits with expected names, groups, placement, rectangles, paths, text and masks, export hashes and receipts, refusal of paths that leave the workspace, unknown outcomes that block later changes, and changed sources, copies or processes;

  • the generative tools: photoshop_generative_fill validates its prompt and bounds before dispatch and sends an empty

prompt with no bounds as a whole-canvas request; photoshop_remove_background targets one exact layer path and name; photoshop_generative_upscale dispatches once for an owned copy; each returns a document snapshot with retry_safe false, and the Illustrator server has no generative tools;

  • the shared host: the Photoshop and Illustrator requests, session packets and receipts match recorded fixtures, and

the assembled scripts for both applications parse;

  • Animate: sessions, timeline edits, frame export and receipts, the recovery actions, and the native chooser handling;
  • Dimension: render submission, inspection, the RGBA handoff and the receipt;
  • media: the media receipt and the review movie;
  • the helper build: one build per source, a tampered or symbolic-link cache refused, and timeouts;
  • application lookup and the evaluation contracts, including that unknown arguments are rejected at the MCP boundary.

Tests that compile or run a Swift helper run only on macOS with swiftc.

Evaluations#

sh
npm install --no-audit --no-fund --package-lock=false
npm run eval

npm run eval runs evals/run.py, which starts each server over stdio and runs the MCP Eval probes. MCPEVAL_EXECUTABLE selects another mcpeval binary. The reports go to .tmp/evals/<run>/.

ServerProtocol manifest limits
Photoshopat most 21 tools and 20,000 schema bytes; at most 9,000 tokens in total and 3,000 per tool
Illustratorat most 15 tools and 15,000 schema bytes; at most 9,000 tokens in total and 3,000 per tool
Animateat most 10 tools and 12,000 schema bytes; at most 6,000 tokens in total and 3,000 per tool
Dimensionat most 6 tools and 5,000 schema bytes; at most 3,000 tokens in total and per tool
ModeScriptWhat it runs
protocolnpm run eval:protocolEach server with its evals/<server>.manifest.json: the tool and token budgets above, pagination, the declared surfaces and a refusal of an unknown protocol version.
simulatednpm run eval:simulatedThe production tools with a synthetic native adapter, against the inspection manifests.
native-backgrounduv run --locked python evals/run.py --mode native-backgroundThe background and inspection manifests against running applications. Only read-only status and inspect tools are accepted.

npm run eval runs the protocol and simulated modes. npm run eval:native runs evals/native.py against running, signed-in applications. It reads status from each server, refuses tools that need the user interface, and also makes a review movie from synthetic frames. It does not call the generative tools.

Checked against Adobe applications#

The unit tests and the protocol and simulated evaluations do not start an Adobe application, so they do not cover how Photoshop, Illustrator, Animate or Dimension behave. In particular, no test calls Adobe's generative service, so the account, the credits and the Generative Credits notice are not exercised. A tool that fails in your install is a bug to report. See Version and support.