
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.
概览
AI 驱动的端到端网页测试服务器,让助手编写 YAML 场景并在真实 Chromium 浏览器中执行,再读取失败信息与截图。
- 可以做什么
- 编写并校验 YAML 测试场景,也可由自然语言提示生成
- 在真实浏览器中以拟人化的鼠标键盘操作执行场景
- 截图,并通过 OCR 与图像匹配定位页面元素
- 输出逐步的通过/失败报告,含错误详情与截图
- 运行自愈循环分析失败并提出修复,把成功匹配存入 SQLite 复用
- 适用场景
- 适合助手在开发网页应用时需要真实浏览器验证流程、复现界面缺陷,或维护一套声明式回归场景的场合。也适合由编码助手设计测试、在本机执行的开发工作流。
- 运行要求
- 以本地 Python 进程运行:需安装 aat-devqa 包、Python MCP SDK、Playwright 与 Chromium,以及用于 OCR 的 Tesseract(非英文应用还需语言包)。AI 功能需 ANTHROPIC_API_KEY 或 OPENAI_API_KEY 等提供商密钥,或本地 Ollama;单纯执行场景无需密钥。仅支持桌面环境。
安装
在 SourceWeft 中
- 打开 控制台中的 AWT (AI Watch Tester),将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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):
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 loopauto-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:
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.
The MCP server needs the Python MCP SDK:
Verify what got installed:
You should see Skills (1) awt and MCP servers (1) awt.
Skill only
If you want the skill without the MCP server:
Or copy it by hand, globally or per project:
After installation, the skill auto-triggers on testing-related prompts.
Updating
For hand-copied installations: cd ~/.claude/skills/awt && git pull
Comparison with Other Testing Skills
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 loopfor CI/CD
Supported AI Coding Tools
AWT follows the Agent Skills open standard and works with:
Quick Example
YAML Scenario
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 — Crawl site, analyze DOM, detect features
- Plan — AI generates YAML test scenarios
- Review — User reviews/edits before execution
- Execute — Playwright runs with live screenshots
- Heal — AI analyzes failure → suggests fix → re-tests
AI Providers
Project Structure
Key CLI Commands
System Dependencies
macOS:
Linux (Ubuntu/Debian):
Windows:
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.
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. Plainaat runcontacts no AI provider at all. - A URL you typed, to check it is reachable —
aat doctorandaat startrequest the address you gave them and report whether it answered. http://localhost:<port>, to find your dev server —aat devqaprobes local ports only.- Any endpoint written into your own scenario. A
teardownstep of typeapi_callcalls 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
- Main Repository: github.com/ksgisang/AI-Watch-Tester
- Cloud Demo: ai-watch-tester.vercel.app
- Agent Skills Standard: agentskills.io
License
AGPL-3.0 — see LICENSE file for full text.
Built by AILoopLab.
来源:README.md,提交 d396fa7
工具
0版本历史
3- v1.8.0最新Oct 15, 2026
- v1.7.1Sep 19, 2026
- v1.6.3Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分