Demo
02 GUIDE

CLI, SDK, and MCP quick start

3 MIN READ

Get from zero to a running TestZeus test in a few minutes. TestZeus is the testing layer your coding agent — or your own code — can drive: author tests in plain language, run them, and get results back. Everything here talks to the same API at https://prod.testzeus.app/api.

PREREQUISITES

A TestZeus account (sign up at https://prod.testzeus.app) and Python 3.11+.

01

Install the CLI

bash
pip install testzeus-cli

The CLI is the quickest way in, and it is worth having even if you plan to work through the SDK or a coding agent — it is the fastest way to confirm your account and credentials work.

02

Authenticate

bash
testzeus login

You'll be prompted for your email and password; credentials are stored securely in your system keyring. Keep separate logins with testzeus login --profile dev.

03

Run your first test

Pick the surface that matches how you work — the same task, across every surface.

CLI

bash
testzeus tests list          # see your tests
testzeus tests get <id>      # inspect one

Best for quick checks and CI. See the CLI reference for every command and option.

Python SDK

python
import asyncio
from testzeus_sdk import TestZeusClient

async def main():
    async with TestZeusClient(email="you@example.com", password="...") as client:
        tests = await client.tests.get_list(sort="id")
        print(tests["items"][0].data)

asyncio.run(main())

Best for building TestZeus into your own app. The SDK reference lists the client's auth options and every manager (tests, test runs, environments, tags, and more).

Coding agent

Click Add to your agent in the header and pick Cursor, Claude, or Codex — each opens the app and installs the authoring skill. Or download the rulebook for any other agent. Then ask in plain English:

NOTE

"Create a login test for my app and run it in staging, then show me the results."

The agent loads the right skill and drives the CLI/SDK for you. Browse the Skills catalog.

MCP client

Add the TestZeus MCP server to Claude Code, Claude Desktop, Cursor or Codex and the tools appear natively. The server runs from a clone of testzeus-mcp-server with your TestZeus email and password; MCP Tools has the config for each client.

NOTE

New to TestZeus? Start with the Coding agent tab — describe what to test in plain English and let your agent drive TestZeus end to end.

04

Build a Test Blocks test

A new test is a Test Blocks test unless you ask for Gherkin: an ordered list of steps, each one action or one check, verified against a real browser or device before it can run.

bash
testzeus test-blocks create --name "Login smoke" --environment ENV_ID
testzeus test-blocks config TEST_ID --environment-url-key KEY
testzeus test-blocks add-step TEST_ID --instruction "Click Log in"
testzeus test-blocks add-step TEST_ID --instruction "Check the email field is visible" --assert
testzeus test-blocks verify TEST_ID
testzeus test-blocks save TEST_ID
testzeus test-blocks run TEST_ID

If verify holds a step because it is more than one action, resolve it with testzeus test-blocks split TEST_ID STEP_ID --apply (or --dismiss) and verify again. The SDK (client.test_blocks) and the MCP tools (create_test_blocks … live_run_test_blocks) follow the same steps. See Test Blocks.

05

Pick the right integration

Not sure which surface to use long term? The Use cases page breaks down when and why to choose the CLI, the SDK, the MCP server, or skills — with an example for each.

06

Where to go next

  • Use cases — when & why for each surface.
  • Getting started — the full platform walkthrough, from Gherkin basics to the Agent Harness.
  • Test Blocks — step-wise tests in the UI; CLI/SDK/MCP use test-blocks / client.test_blocks / create_test_blocks (not Gherkin create_test). Mobile Test Blocks uses device steps only—no browser recording.
  • Reference: CLI · SDK · MCP Tools · Skills