AWT (AI Watch Tester)

io.github.ksgisang由 GitHub 帳號 ksgisang 發布v1.8.0更新於 Oct 28, 2026

AI-powered E2E testing MCP server. Detects and auto-fixes UI bugs via DevQA Loop and Vision AI.

已驗證STDIO僅桌面瀏覽器自動化開發者工具

概覽

AI 產生的概覽

AI 驅動的端對端網頁測試伺服器,讓助理撰寫 YAML 情境並在真實 Chromium 瀏覽器中執行,再讀取失敗資訊與截圖。

可以做什麼
  • 撰寫並驗證 YAML 測試情境,也可由自然語言提示產生
  • 在真實瀏覽器中以擬人化的滑鼠鍵盤操作執行情境
  • 截圖,並透過 OCR 與影像比對定位頁面元素
  • 輸出逐步的通過/失敗報告,含錯誤詳情與截圖
  • 執行自癒迴圈分析失敗並提出修正,把成功比對結果存入 SQLite 重複使用
適用情境
適合助理在開發網頁應用時需要真實瀏覽器驗證流程、重現介面問題,或維護一套宣告式回歸情境的場合。也適合由編碼助理設計測試、在本機執行的開發工作流程。
執行需求
以本機 Python 程序執行:需安裝 aat-devqa 套件、Python MCP SDK、Playwright 與 Chromium,以及用於 OCR 的 Tesseract(非英文應用還需語言包)。AI 功能需 ANTHROPIC_API_KEY 或 OPENAI_API_KEY 等供應商金鑰,或本機 Ollama;單純執行情境不需金鑰。僅支援桌面環境。
安裝前請注意
AI 相關指令會把頁面文字或截圖及情境傳送給所選 AI 供應商,並按次產生費用。測試會用真實瀏覽器造訪你指定的網站,並可能呼叫 teardown 步驟中寫入的端點,請只對自有網站與資料使用。它會在專案中寫入設定、執行紀錄、截圖、學習資料庫與稽核日誌,並在家目錄保存元素圖片。核准須在終端直接確認,代理無法代為批准。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 AWT (AI Watch Tester),將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

AWT — Eyes and Hands for Your AI Coding Tool

Your AI coding tool is smart. But it can't see or click a web page. AWT gives it a real browser — so it can test, find bugs, and fix them without you lifting a finger.

[License: AGPL-3.0] [Agent Skills]

Works without AI API — write YAML scenarios manually and run aat run. No API key needed. AI coding tools make it easier, but are not required.


What is AWT?

AWT is the execution engine for AI-powered E2E testing. Your AI coding tool designs the tests; AWT runs them in a real browser with Playwright.

How it works in Skill Mode (no extra AI API key needed):

You: "Test the login flow on https://mysite.com"
Your AI coding tool:  → Writes 5 YAML scenarios (30 steps)  → Runs: aat run scenarios/  → Reads failure: "Step 4: Dashboard text not visible"  → Reads screenshot + source code  → Fixes src/pages/login.js:23  → Re-runs: aat run scenarios/  → All 5 scenarios pass ✓

Key capabilities:

  • Execute tests in a real browser with human-like mouse/keyboard interaction
  • See — take screenshots, detect elements via OCR and image matching
  • Report — step-by-step pass/fail with error details and screenshots
  • Self-heal (CLI mode) — aat loop auto-fixes failures with its own AI
  • Learn — successful matches stored in SQLite, getting faster over time

Installation

Install the aat command first — every route below drives it:

bash
pip install aat-devqapython -m playwright install chromium

Claude Code plugin (recommended)

This repository is a plugin bundle. It ships the awt skill and the MCP server that exposes the aat_* tools, so one install gives you both.

bash
claude plugin marketplace add ksgisang/awt-skillclaude plugin install ai-watch-tester@awt

The MCP server needs the Python MCP SDK:

bash
pip install "mcp[cli]>=1.0.0"

Verify what got installed:

bash
claude plugin details ai-watch-tester@awt

You should see Skills (1) awt and MCP servers (1) awt.

Skill only

If you want the skill without the MCP server:

bash
npx skills add ksgisang/awt-skill --skill awt -g

Or copy it by hand, globally or per project:

bash
git clone https://github.com/ksgisang/awt-skill.git /tmp/awt-skillcp -r /tmp/awt-skill/skills/awt ~/.claude/skills/awt   # or .claude/skills/awtrm -rf /tmp/awt-skill

After installation, the skill auto-triggers on testing-related prompts.

Updating

bash
claude plugin update ai-watch-tester@awt          # pluginnpx skills add ksgisang/awt-skill --skill awt -g -y  # skill only

For hand-copied installations: cd ~/.claude/skills/awt && git pull

Comparison with Other Testing Skills

Featurewebapp-testingplaywright-skillAWT
Scenario formatPython scriptsPython scriptsDeclarative YAML
No-code test creationNoNoYes
Natural language → testNoNoYes
Self-healing loopNoNoYes (DevQA Loop)
Auto-fix on failureNoNoYes (AI → PR)
Visual matching (OpenCV + OCR)NoNoYes (OpenCV + OCR)
Pattern learningNoNoYes (SQLite)
Server lifecycle mgmtYesYesYes (aat dashboard)
Multiple AI providersNoNoYes (5 providers)
Human-like interactionNoNoYes (Bezier mouse)
Approval modesNoNoYes (manual/branch/auto)
Cost optimizationN/AN/A$0.02–0.05/test
Live screenshotsNoScreenshot onlyYes (WebSocket stream)
Multi-language OCRNoNoYes (10+ languages)
Offline supportNoNoYes (Ollama)
Cost trackingNoNoYes (per-call logging + aat cost)
Source code analysisNoNoYes (Skill-exclusive)
Scenario cachingNoNoYes (same spec = no re-call)
Browser test overlayNoNoYes (live step progress)
Dependency orderingNoNoYes (depends_on field)
Skill Mode (no extra AI cost)NoNoYes
Canvas/Flutter OCR fallbackNoNoYes (auto)
Platform auto-detectionNoNoYes (7 frameworks)
Structured failure diagnosisNoNoYes (AI-independent)
Multi-document YAMLNoNoYes (--- separator)
Strict validationNoNoYes (aat validate --strict)

When to use each:

  • webapp-testing — Quick one-off Playwright scripts for simple page checks
  • playwright-skill — When you need fine-grained Playwright API control
  • AWT Skill Mode — Your AI coding tool designs tests, AWT executes them. No extra AI API key needed.
  • AWT CLI Mode — Standalone automated testing with aat generate + aat loop for CI/CD

Supported AI Coding Tools

AWT follows the Agent Skills open standard and works with:

ToolStatus
Claude CodeSupported
CursorCompatible
CodexCompatible
Gemini CLICompatible
AmpCompatible
ClineCompatible
AiderCompatible
WindsurfCompatible
Roo CodeCompatible
PearAICompatible
AntigravitySupported

Quick Example

YAML Scenario

yaml
id: "SC-001"name: "User Login"tags: ["auth", "login"]depends_on: ["SC-000"]steps:  - step: 1    action: navigate    value: "{{url}}/login"    description: "Go to login page"
  - step: 2    action: find_and_type    target:      text: "Email"      match_method: ocr    value: "[email protected]"    humanize: true    description: "Enter email"
  - step: 3    action: find_and_click    target:      text: "Login"    description: "Click login button"
  - step: 4    action: assert    assert_type: text_visible    expected:      - type: text_visible        value: "Welcome back"    description: "Verify login success"

Natural Language (in Claude Code)

"Login to mysite.com with [email protected], then check if the dashboard loads"

AWT converts this to a YAML scenario and executes it automatically.

5-Step DevQA Workflow

Scan → Plan → Review → Execute → Heal  ↑                                 |  └─── Loop back on failure ────────┘
  1. Scan — Crawl site, analyze DOM, detect features
  2. Plan — AI generates YAML test scenarios
  3. Review — User reviews/edits before execution
  4. Execute — Playwright runs with live screenshots
  5. Heal — AI analyzes failure → suggests fix → re-tests

AI Providers

ProviderVisionCostOffline
Claude (default)YesMediumNo
OpenAI (GPT-4o)YesHigherNo
Gemini (default: free)YesFree tierYes
DeepSeekNoLowNo
OllamaNoFreeYes

Project Structure

awt-skill/                      # ← this repository is the plugin folder├── .claude-plugin/│   ├── plugin.json             # Plugin manifest│   └── marketplace.json        # Marketplace entry for this one plugin├── .mcp.json                   # Declares the bundled MCP server├── skills/│   └── awt/                    # ← Skill content (installed by npx skills)│       ├── SKILL.md            # Main skill definition│       ├── references/│       │   ├── scenario-schema.md  # Full YAML schema reference│       │   ├── cli-reference.md    # CLI command reference│       │   └── config-reference.md # Configuration options│       └── templates/│           ├── scenario-template.yaml│           └── config-template.yaml├── mcp/│   ├── server.py               # MCP server — the 12 aat_* tools│   └── requirements.txt├── server.json                 # MCP Registry entry├── README.md├── LICENSE├── CONTRIBUTING.md└── package.json

Key CLI Commands

CommandDescription
aat doctorCheck environment (Python, Playwright, Tesseract, AI)
aat initInitialize project + AI setup + environment check
aat setupConfigure AI provider and API key
aat generateAI-generate scenarios (with cost estimate + caching)
aat run --learnExecute tests + learn from fixes (always use --learn)
aat loopSelf-healing DevQA loop
aat costView AI API usage costs
aat validate --strictValidate YAML + quality checks
aat learn platform -p <key> -t <tip>Add platform-specific tip

System Dependencies

macOS:

bash
brew install [email protected] tesseractpipx install aat-devqaplaywright install chromium

Linux (Ubuntu/Debian):

bash
sudo apt install python3.12 python3.12-venv tesseract-ocrpipx install aat-devqaplaywright install chromium

Windows:

bash
winget install Python.Python.3.12choco install tesseractpip install aat-devqaplaywright install chromium

After install, run aat doctor to verify everything works.

OCR language packs. Tesseract installs English only. If you test an app in another language, install that language's pack too — otherwise text assertions that fall back to OCR report not visible on page for text that is plainly there. aat doctor names any missing pack.

bash
brew install tesseract-lang                 # macOS, all languagessudo apt install tesseract-ocr-kor          # Linux, one language

What this plugin runs, sends, and fetches

Everything below is in this repository in readable source. Nothing is minified, compiled, or downloaded at install time.

Runs on your machine. mcp/server.py starts under python3 and does one thing: it builds an argument list and runs the aat command you installed with pip install aat-devqa, as a subprocess. It never runs a shell, so nothing it receives is re-parsed as a command. aat in turn drives a local Chromium through Playwright and, for OCR, the local tesseract binary.

Writes to disk. Under your project: .aat/ (config, run history, screenshots, the SQLite learning database, the append-only audit log) and reports/. Under your home directory: ~/.awt/templates/<host>/ for the element images AWT saves so it can find a target again after a selector breaks.

Sends over the network. There is no telemetry and no analytics. Every destination below is either one you named yourself or the single call AWT makes on its own, which is listed first so it is not buried:

  • api.github.com, once a day, by AWT itself. The CLI asks for the latest release so it can print a hint when a newer one exists. No request body, no account, no machine id, no version string, nothing about what you are testing; the request is identical for every user. It times out after 3 seconds and every failure is swallowed, so blocking the host breaks nothing. This is the only call AWT initiates.
  • The site you are testing. Chromium loads the URL in your scenario. That is the whole point of the tool, and no other site is contacted by a test run.
  • An AI provider, only for the commands that need one — aat generate, aat loop, aat devqa, and Vision matching. The request carries the page text or screenshot and your scenario. You choose the provider and supply the key; with Ollama the request never leaves your machine. Plain aat run contacts no AI provider at all.
  • A URL you typed, to check it is reachable — aat doctor and aat start request the address you gave them and report whether it answered.
  • http://localhost:<port>, to find your dev server — aat devqa probes local ports only.
  • Any endpoint written into your own scenario. A teardown step of type api_call calls exactly the URL you put in the YAML, which is how test data gets cleaned up after a run.

PRIVACY.md names the file and line behind each of these.

Fetches at runtime. Nothing. The plugin downloads no code after install.

Approval. aat run asks for confirmation by reading /dev/tty directly, so a piped stdin cannot answer for you, and every attempt is recorded in .aat/audit.log. There is no --auto-approve flag and no way for an AI agent to supply the approval on your behalf. Scenario edits that an AI proposes are not written to your files in the default manual mode.

Links

License

AGPL-3.0 — see LICENSE file for full text.

Built by AILoopLab.

來源:README.md,提交 d396fa7

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

3
  1. v1.8.0最新Oct 15, 2026
  2. v1.7.1Sep 19, 2026
  3. v1.6.3Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分