Логотип QA-Use MCP Server

QA-Use MCP Server

Організація
desplega-ai

Agent-first E2E testing CLI

Видавецьdesplega-ai
Репозиторійqa-use
МоваTypeScript
Форки
7
Зірки
27
Доступні інструменти
13
Тип транспортуstdio
Категорії
ЛіцензіяMIT
Посилання
  • Підключайте інструменти до робочих процесів із ШІ

    QA-Use MCP Server надає можливості MCP, які можуть використовувати сумісні клієнтські ШІ-застосунки та агенти.

  • Доступні інструменти: 13

    Перегляньте нижче дії, які можна викликати, з назвами й описами, якщо сервер їх надає.

  • Готова конфігурація для копіювання

    Скористайтеся прикладами конфігурації, щоб налаштувати цей сервер у вибраному клієнті MCP.

  • Показники інтересу до відкритого коду

    Зірки: 27, форки: 7 — у пов’язаному репозиторії.

qa-use

QA automation CLI for browser testing and E2E test management.

npm version License: MIT

QA-Use Demo

Quick Start

bash
# Install globally
npm install -g @desplega.ai/qa-use

# Or use with npx
npx @desplega.ai/qa-use setup

Getting Started

1. Setup

bash
qa-use setup                    # Configure your API key
qa-use test init                # Initialize test directory with example

2. Create Your First Test

Create qa-tests/login.yaml:

yaml
name: Login Test
app_config: your-app-config-id
steps:
  - action: goto
    url: /login
  - action: fill
    target: email input
    value: test@example.com
  - action: click
    target: login button
  - action: to_be_visible
    target: dashboard

3. Run Tests

bash
qa-use test run login           # Run single test
qa-use test run --all           # Run all tests

CLI Reference

Test Commands

CommandDescription
qa-use test initInitialize test directory with example
qa-use test run <name>Run a test by name
qa-use test run --allRun all tests in qa-tests/
qa-use test listList local tests
qa-use test list --cloudList cloud tests
qa-use test validate <name>Validate test syntax
qa-use test sync --pushPush local tests to cloud
qa-use test sync --pullPull cloud tests to local
qa-use test export <id>Export cloud test to local file

Run qa-use test --help for all options.

Filename suffix (≥ 2.17). pull writes one file per cloud test as ${safe-name}-${short-id}.yaml, where ${short-id} is the first 8 hex chars of the test UUID. Test names can collide within an org by design, so the suffix guarantees one local file per cloud row. If you upgrade from an earlier version, the next pull will write new suffixed files alongside any legacy un-suffixed file you had — qa-use prints a one-line Legacy file: … notice per orphan and never auto-deletes. Inspect the legacy file's id: field; remove it manually once you've confirmed it's not load-bearing.

Browser Commands

Interactive browser control for test development and debugging:

bash
qa-use browser create                  # Start browser session
qa-use browser goto https://example.com
qa-use browser snapshot                # Get element refs like [ref=e3]
qa-use browser click e3                # Click by element ref
qa-use browser fill e5 "hello"         # Fill input field
qa-use browser run                     # Interactive REPL mode
CommandDescription
qa-use browser createStart browser session
qa-use browser goto <url>Navigate to URL
qa-use browser snapshotGet page element refs
qa-use browser click <ref>Click element by ref
qa-use browser fill <ref> <value>Fill input field
qa-use browser screenshot <path>Save screenshot
qa-use browser runInteractive REPL mode
qa-use browser closeClose browser session
qa-use browser status --listList active sessions across processes

Run qa-use browser --help for the full list of 29 browser commands.

Tunnel & Maintenance Commands

browser create auto-tunnels when your target is localhost and the API is remote. For standalone tunnels (or cross-process registry inspection) use qa-use tunnel:

bash
qa-use tunnel start http://localhost:3000 --hold   # Hold a public tunnel
qa-use tunnel ls                                   # List active tunnels
qa-use tunnel status <target|hash>                 # Detail for one entry
qa-use tunnel close <target|hash>                  # Force-release a tunnel
qa-use doctor                                      # Reap stale sessions/tunnels
qa-use doctor --dry-run                            # Preview what would be reaped
CommandDescription
qa-use tunnel lsList active tunnels in the registry
qa-use tunnel status <target>Show detail for a single tunnel
qa-use tunnel close <target>Force-release a tunnel (kills detached holder)
qa-use doctorReap stale sessions/tunnels (dead PIDs)

Note: qa-use tunnel * is the CLI-side cross-process tunnel registry, distinct from qa-use mcp tunnel which is the MCP-mode persistent tunnel wrapper (see below).

API Commands

Dynamic API access powered by live OpenAPI (/api/v1/openapi.json) with local cache fallback.

bash
qa-use api ls                             # List endpoints from live/cached OpenAPI
qa-use api /api/v1/tests                  # Call endpoint (method inferred)
qa-use api -X POST /api/v1/tests-actions/run --input body.json
qa-use api ls --refresh                   # Force refresh OpenAPI cache
qa-use api ls --offline                   # Use cached OpenAPI only
CommandDescription
qa-use api lsList /api/v1/* endpoints from OpenAPI
qa-use api <path>Send API request to endpoint
qa-use api ... --refreshForce OpenAPI spec refresh
qa-use api ... --offlineUse cached spec without network

If live spec fetch fails, qa-use falls back to the last cached spec and prints a stale-cache warning.

Checks and Check Schedules

Remote API checks and schedules are first-class CLI resources. They call the desplega.ai API directly; schedule runs are fully remote and do not create browser sessions.

bash
qa-use check list --app-config <app-config-id> --q login
qa-use check info <check-id>

qa-use check create \
  --name "Auth token" \
  --app-config <app-config-id> \
  --config auth-check.json \
  --alias auth \
  --capture token=$.access_token

qa-use check-schedule create \
  --name "Claims chain" \
  --app-config <app-config-id> \
  --cron "*/15 * * * *" \
  --check <auth-check-id> \
  --check <claim-check-id>

qa-use check-schedule run <schedule-id> --var env=staging --var claim_id=123
qa-use check-schedule delete <schedule-id> --force
qa-use check delete <check-id> --force

There is no standalone qa-use check run <check-id> command yet because the public API currently exposes schedule runs, not individual check-run actions. Use qa-use docs checks for the full workflow and qa-use api info /api/v1/checks -X POST for the current check payload contract.

Setup Commands

CommandDescription
qa-use setupInteractive configuration (API key, base URL, etc.)
qa-use infoShow current configuration
qa-use install-depsInstall Playwright browsers

Test Definition Format

Tests are YAML files with steps that describe user interactions:

yaml
name: Checkout Flow
app_config: your-app-id
variables:
  email: test@example.com
depends_on: login-test          # Optional dependency
steps:
  - action: goto
    url: /cart
  - action: click
    target: checkout button
  - action: fill
    target: email input
    value: $email
  - action: to_be_visible
    target: order confirmation

Supported actions:

CategoryActions
Navigationgoto, go_back, go_forward, reload
Inputfill, type, click, hover, press, check, uncheck, select_option
Waitingwait_for_selector, wait_for_timeout, wait_for_load_state
Assertionsto_be_visible, to_have_text, to_have_url, to_contain_text, to_be_checked
Advancedai_action, ai_assertion, extract_structured_data

See SETUP.md for the complete test definition guide.

Configuration

Environment Variables

bash
QA_USE_API_KEY=xxx              # Required: Your desplega.ai API key
QA_USE_REGION=us                # Optional: "us" or "auto" (default)

Config File

Alternatively, create a .qa-use.json in your project root or ~/.qa-use.json in your home directory:

json
{
  "$schema": "https://qa-use.dev/cli-schema.json",
  "api_key": "your-api-key-here",
  "region": "us"
}

Precedence (first wins):

  1. Environment variables
  2. .qa-use.json in current directory
  3. ~/.qa-use.json in home directory
VariableDescriptionDefault
QA_USE_API_KEYAPI key for authentication(required)
QA_USE_API_URLAPI endpointhttps://api.desplega.ai
QA_USE_APP_URLApp URLhttps://app.desplega.ai
QA_USE_REGIONRegion (us or auto)auto
QA_USE_DEFAULT_APP_CONFIG_IDDefault app config(from API key)
QA_USE_FORCE_HEADLESSWhen truthy (1/true/yes/on), forces headless=true on every browser launch and errors on any explicit headful request (--no-headless, --headful, defaults.headless: false).(unset)

CI/CD Integration

Basic GitHub Actions

yaml
# .github/workflows/e2e.yml
name: E2E Tests

on: [push, pull_request]

jobs:
  e2e:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: '20'

      - name: Run E2E Tests
        env:
          QA_USE_API_KEY: ${{ secrets.QA_USE_API_KEY }}
        run: |
          npm install -g @desplega.ai/qa-use
          qa-use test run --all --download

      - name: Upload Results
        if: always()
        uses: actions/upload-artifact@v4
        with:
          name: e2e-results
          path: /tmp/qa-use/downloads/

PR Verification with Claude Code

Use the qa-use plugin with Claude Code to automatically verify PRs:

bash
# Add from the marketplace
claude plugin marketplace add desplega-ai/qa-use

# Then install the plugin
claude plugin install qa-use@desplega.ai

# Verify a feature works
/qa-use:verify "the login form accepts valid credentials"

# Verify PR changes
/qa-use:verify-pr

See SETUP.md for advanced CI workflows including AI-assisted test generation.

Claude Code Plugin

qa-use includes a Claude Code plugin for AI-assisted testing workflows:

bash
# Add from the marketplace
claude plugin marketplace add desplega-ai/qa-use

# Then install the plugin
claude plugin install qa-use@desplega.ai

# Install the skill
npx skills add https://github.com/desplega-ai/qa-use --skill qa-use

Available skills:

SkillDescription
/qa-use:verify <description>Verify a feature works through browser automation
/qa-use:verify-prVerify PR changes with automated browser testing
/qa-use:exploreExplore a web page interactively
/qa-use:recordRecord browser actions into a test definition
/qa-use:test-runRun E2E tests
/qa-use:test-validateValidate test syntax

MCP Server

For AI assistant integration (Claude Desktop, VS Code Copilot, Cursor, etc.), qa-use includes an MCP server with full browser automation capabilities.

bash
qa-use mcp                      # Start stdio server (default)
qa-use mcp --http               # Start HTTP/SSE server
qa-use mcp tunnel               # Start persistent tunnel mode

See MCP.md for complete MCP server documentation including:

  • Client configurations for all major AI assistants
  • HTTP transport mode for web integrations
  • Tunnel mode for backend-initiated testing
  • Full MCP tools reference

Development

bash
git clone https://github.com/desplega-ai/qa-use.git
cd qa-use
bun install
bun run build
bun run dev

Note: This project uses bun as the package manager.

See CONTRIBUTING.md for development guidelines.

Documentation

License

MIT

Встановлення

TypingMind
Передумови:

Node.js 18+

{
  "mcpServers": {
    "desplega-ai-qa-use": {
      "command": "npx",
      "args": [
        "-y",
        "@desplega.ai/qa-use"
      ]
    }
  }
}

Доступні інструменти

  • ensure_installed

    Ensure API key is set, validate authentication, and install Playwright browsers. Does not start browsers (lazy initialization on session start).

  • register_user

    Register a new user and get API key

  • search_sessions

    Search and list all sessions (automated tests and development sessions) with pagination and filtering

  • start_automated_session

    Start an automated E2E test session for QA flows and automated testing. Returns sessionId (data.agent_id) for monitoring. URL is optional - uses app config base_url if not provided.

  • start_dev_session

    Start an interactive development session for debugging and exploration. Session will not auto-pilot and allows manual browser interaction.

  • monitor_session

    Monitor a session status. Keep calling until status is "closed". Will alert if session needs user input, is idle, or pending.

  • interact_with_session

    Interact with a session - respond to questions, pause, or close the session

  • search_automated_tests

    Search for automated tests by ID or query. If testId provided, returns detailed info for that test. Otherwise searches with optional query/pagination.

  • run_automated_tests

    Execute multiple automated tests simultaneously. Uses the global browser WebSocket URL from init_qa_server.

  • search_automated_test_runs

    Search automated test runs with optional filtering by test ID or run ID

  • update_configuration

    Update application configuration settings including base URL, login credentials, and viewport type

  • get_configuration

    Get the current application configuration details including base URL, login settings, and viewport

  • reset_browser_sessions

    Reset and cleanup all active browser sessions. This will kill all browsers and tunnels. Use this when you hit the maximum session limit or need to free up resources.

Використовуйте MCP QA-Use MCP Server з різними моделями ШІ

TypingMind підключає інструменти MCP на рівні робочого простору, тож після підключення QA-Use MCP Server ви можете використовувати їх із різними моделями ШІ в TypingMind, а не налаштовувати окремо для кожної моделі. Ця інтеграція MCP працює локально через конектор MCP TypingMind на вашому пристрої.

Інструкція з налаштування локального конектора

Виберіть цей варіант, якщо серверу MCP потрібен доступ до локальних файлів, програм або приватних ресурсів на вашому комп’ютері.

1

Відкрийте налаштування MCP

У TypingMind перейдіть до розділу «Налаштування», відкрийте «Розширені налаштування», потім «Протокол контексту моделі» й виберіть «Параметри конектора».

  1. Відкрийте TypingMind у браузері.
  2. Натисніть значок налаштувань.
  3. Перейдіть до розділу «Розширені налаштування».
  4. Відкрийте розділ «Протокол контексту моделі».
  5. Натисніть «Параметри конектора» й виберіть «Цей пристрій».
Екран налаштування конектора MCP у TypingMind з вибраним варіантом «Цей пристрій»
2

Виконайте команду конектора

Виберіть «Цей пристрій», скопіюйте команду з TypingMind і виконайте її в терміналі. Не зупиняйте процес, поки користуєтеся MCP.

  1. Скопіюйте команду налаштування, показану в TypingMind.
  2. Відкрийте «Термінал» у macOS або Windows Terminal у Windows.
  3. Вставте й виконайте команду.
  4. Підтвердьте встановлення пакета, якщо термінал запитає дозволу продовжити.
  5. Не закривайте вікно термінала й не зупиняйте процес, поки користуєтеся інструментами MCP.
3

Додайте QA-Use MCP Server як сервер

Коли статус конектора зміниться на «Готово», натисніть «Змінити сервери» та вставте конфігурацію сервера MCP.

  1. Зачекайте, доки статус конектора зміниться на «Готово».
  2. Натисніть «Змінити сервери».
  3. Вставте конфігурацію сервера MCP QA-Use MCP Server.
  4. Збережіть список серверів.
  5. Оновіть дані, щоб переконатися, що конектор досі готовий до роботи.
Налаштування MCP у TypingMind з активним сервером і кнопкою «Змінити сервери»
{
  "mcpServers": {
    "desplega-ai-qa-use": {
      "command": "npx",
      "args": [
        "-y",
        "@desplega.ai/qa-use"
      ]
    }
  }
}
4

Використовуйте підключення з різними моделями

Збережіть список серверів, відкрийте «Плагіни», увімкніть інструменти MCP для QA-Use MCP Server, а потім виберіть будь-яку підтримувану модель ШІ в TypingMind і використовуйте інструменти в чаті або призначте їх агенту ШІ.

  1. Відкрийте сторінку «Плагіни» в TypingMind.
  2. Увімкніть інструменти MCP для QA-Use MCP Server.
  3. Почніть чат і виберіть модель ШІ, яку хочете використовувати.
  4. Використовуйте інструменти MCP у чаті або призначте їх агенту ШІ.
  5. За потреби перемикайтеся на іншу модель ШІ без повторного підключення MCP.
Чат TypingMind із використанням увімкнених інструментів MCP і вибраної моделі ШІ
Допоможете з цим завданням через QA-Use MCP Server?
QA-Use MCP Server
Звісно. Я це прочитав.
Ось що я знайшов за допомогою QA-Use MCP Server.

Поширені запитання

Для чого використовується сервер MCP QA-Use MCP Server?

QA-Use MCP Server — це сервер MCP, який дає змогу сумісним клієнтам ШІ підключатися до зовнішніх інструментів і контексту. У TypingMind ви можете додати цей сервер MCP один раз і зробити його інструменти доступними у своєму робочому просторі ШІ.

Чи можу я використовувати MCP QA-Use MCP Server з кількома моделями ШІ в TypingMind?

Так. TypingMind підключає інструменти MCP на рівні робочого простору, тому ви можете використовувати QA-Use MCP Server з різними моделями ШІ, як-от Claude, ChatGPT, Gemini або іншими моделями, які ви налаштували в TypingMind, без окремого налаштування сервера MCP для кожної моделі.

Навіщо використовувати MCP QA-Use MCP Server із TypingMind?

TypingMind — один із найкращих інтерфейсів для чату з великими мовними моделями, адже він об’єднує різні моделі ШІ, промпти, плагіни, агентів ШІ, ключі API та інструменти MCP в одному робочому просторі. Підключивши QA-Use MCP Server, ви зможете використовувати його інструменти MCP з вибраними моделями та впорядковано працювати з чатами в TypingMind.

Як підключити MCP QA-Use MCP Server до TypingMind?

QA-Use MCP Server працює через локальний конектор MCP TypingMind. Це найкращий варіант, коли серверу MCP потрібен доступ до локальних файлів, настільних застосунків, інструментів командного рядка або приватних ресурсів на вашому комп’ютері.

Які інструменти надає MCP QA-Use MCP Server у TypingMind?

QA-Use MCP Server надає інструменти MCP (13), які можна ввімкнути на сторінці «Плагіни» в TypingMind і використовувати в чаті або призначати агентам ШІ.

Чи потрібно передавати свої ключі API в TypingMind, щоб використовувати MCP QA-Use MCP Server?

Ні. TypingMind орієнтований насамперед на локальну роботу й дає змогу зберігати контроль над постачальниками моделей, ключами API, промптами та конфігурацією MCP. Якщо QA-Use MCP Server потребує автентифікації, під час створення підключення додайте потрібні заголовки, налаштування OAuth або локальну конфігурацію для цього сервера MCP.

Getting Started Guide

Complete guide to setting up and using QA-Use MCP server

Testing Workflows

Common testing workflows and best practices

Tool Reference

Detailed documentation for all available MCP tools

aaa_test

Generate a structured test scenario using the AAA (Arrange-Act-Assert) framework

Схожі сервери MCP

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇