Skip to main content
Glama
QualityMax QA MCP

QualityMax QA MCP

Official
by Quality-Max

QualityMax QA MCP

npm version npm downloads License: MIT Node.js Website Discord Buy Me a Coffee

在编码代理宣布网页更改完成之前,为其提供独立的 QA 证据:扫描页面、检查 UI、生成聚焦的 Playwright 复现,然后审查执行结果。

npx -y @qualitymax/qmax-mcp

这四个本地工具不需要 QualityMax 账户、API 密钥或托管服务。

从有用的结果开始

让支持 MCP 的代理扫描它更改的 URL,或运行本地 CLI:

npx -y @qualitymax/qmax-mcp scan https://example.com --format markdown

报告包含分级摘要、发现的问题、具体的复现步骤和建议的修复。一条命令即可针对已检入、无依赖的测试夹具运行所有四个工具——请参阅可复现演示。

演示流程:scan_url、inspect_page、generate_playwright_repro,然后在人工审批门后运行 run_playwright_test

一次扫描测量什么

所有九项检查都在单次页面加载中运行。传递 checks 以运行子集。

检查

报告内容

console

JavaScript 错误、警告和失败的请求

links

损坏和重定向的链接,最多 maxLinks

accessibility

缺少替代文本、未标记的控件、无名称的交互元素、标题结构

performance

核心 Web 指标:LCP、CLS、TTFB、FCP

seo

标题和元描述

security_headers

CSP、HSTS、X-Content-Type-Options、Referrer-Policy

cookies

缺少 Secure/HttpOnly/SameSite、第三方 Cookie、已知跟踪器、同意前跟踪

mixed_content

HTTPS 页面上的 HTTP 子资源和表单操作,分为浏览器阻止的活动和被动

weight

传输字节、请求数、阻塞渲染的资源、过大和未压缩的资产、第三方成本

scan_url 还返回一个 metrics 块,其中包含测量的核心指标和页面重量明细,包括最慢的请求。该块中明确说明了两个限制,而不是隐藏:不测量 INP,因为它需要真实的用户交互,并且核心指标来自扫描机器上的一次冷加载,而非现场数据。设置 weightBudget 以根据您自己的性能预算进行扫描。

报告的外观

--format markdown 以结果概览开头,因此人类或代理可以在阅读任何发现之前看到问题所在:

等级:🔴 F (0 / 100) · 发现 17 个问题

░░░░░░░░░░░░░░░░░░░░░░░░ 0 / 100

类别

问题

最严重

控制台错误

██░░░░░░░░ 1

🔴 高

无障碍

████████░░ 3

🔴 高

安全标头

██████████ 4

🟠 中

Cookie 和跟踪器

█████░░░░░ 2

🟠 中

页面重量

██████████ 4

🟠 中

每个条都按该次运行中最嘈杂的类别进行缩放,因此最高的条是需要首先修复的内容。当 weight 运行时,测量部分还会归因字节:

script      ████████████████  18 kB
document    ██░░░░░░░░░░░░░░   3 kB
stylesheet  ██░░░░░░░░░░░░░░   1 kB
image       ░░░░░░░░░░░░░░░░  417 B

然后每个发现都附带其严重性、可复制粘贴的复现步骤和建议的修复。使用 --format json 以结构化输出获取相同的数据。

Related MCP server: agent-eyes

代理可以做什么

工具

本地能力

需要审查的边界

scan_url

扫描 URL 以获取控制台、网络、链接、无障碍、SEO、安全标头、Cookie/跟踪器、混合内容、页面重量和核心 Web 指标发现。

它会发出出站请求,并且可以写入截图。

inspect_page

返回页面结构和角色/名称定位器候选,可选地使用 Playwright 存储状态文件来访问需要认证的页面。

它会发出出站请求,并可能读取明确选定的包含凭据的工作区文件。

generate_playwright_repro

编写确定性的、包含在工作区内的 Playwright 复现。

它写入 .qmax-mcp/repros 目录下;覆盖是明确的。

run_playwright_test

执行一个本地 Playwright 测试并返回结构化状态。

它执行代码并写入受控工件;默认情况下,它需要接受一个绑定摘要的 MCP 人工审批提示。

本地服务器不需要账户。托管代理模式 是用于账户支持的 QualityMax 功能的单独可选连接;除非需要该功能,否则不要添加它。

检查已认证的页面

使用 browserContext.storageState() 保存已登录的 Playwright 上下文,将该文件保留在 gitignore 中,并传递其相对于活动工作区的路径:

{
  "url": "https://example.com/account",
  "storageStatePath": "playwright/.auth/user.json"
}

inspect_page 在首次导航之前将状态加载到其一次性浏览器上下文中。路径必须解析为工作区内的常规文件;拒绝绝对路径、路径遍历、符号链接逃逸和超过 10 MB 的文件。不会返回状态路径和凭据值,但会返回检查的页面结构,该结构本身可能包含私有账户数据。请相应处理状态文件和工具结果,并使用仅包含被检查应用程序所需凭据的专用状态文件。Playwright 存储状态涵盖 Cookie、本地存储以及可选的 IndexedDB;它不会持久化会话存储。

将其添加到您的编码代理

为您的客户端复制一份现成的、无需凭据的配置以及随附的指令文件:

代理设置指南 解释了预期的审批界面,并提供了通用的 stdio 配置。根目录下的 AGENTS.md 是可移植的指令:收集证据、报告未解决的失败,并在修改文件或执行提供的代码之前请求批准,除非服务器明确宣传无人值守模式。

无人值守自动化

对于可信、隔离的自动化环境,其中没有人能回答 MCP 提示,请使用显式的 --unattended 标志启动服务器:

{
  "mcpServers": {
    "qmax": {
      "command": "npx",
      "args": ["-y", "@qualitymax/qmax-mcp", "--unattended"]
    }
  }
}

对于 Codex TOML,使用 args = ["-y", "@qualitymax/qmax-mcp", "--unattended"]。此进程启动时的选择加入授权该服务器处理的每次 run_playwright_test 调用;它有意不作为工具参数或环境变量提供。服务器向代理通告活动模式,打印 UNATTENDED 启动警告,并在每次执行时返回 approval.mechanism: "unattended-cli-opt-in-v1"。确切的测试仍然会被快照和摘要检查,现有的工作区、环境、超时、取消和输出控制仍然有效。

相邻的 QualityMax 工具

服务器会告知连接的代理三个独立的 QualityMax 工具,这些工具覆盖了这四个工具未涵盖的 QA 工作。它们是独立的程序——qmax-mcp 不会安装、运行、捆绑或代理其中任何一个,并且它们都不需要 QualityMax 账户。代理被指示仅在其触发条件出现时提及一个,并且只提及一次,然后由您决定是否运行它。

工具

使用情况

命令

适用场景

9lives (MIT)

PyPI downloads

uv tool install 9lives, then 9l heal <spec>

一个曾经通过的 Playwright 规格在变更后变红,且失败看起来像是漂移。修复定位器,而不是削弱断言。

qualitymax-grader (Apache-2.0)

npm downloads

npx qualitymax-grader <spec>

规格即将提交,或套件以测试质量而非通过与否来评判。离线 A-F 评分,无需模型或网络。

free-qa-skills (Apache-2.0)

skills.sh installs

install from skills.sh

QA 请求针对的是仓库而非运行中的 URL,或代理没有可用的 MCP 服务器。

它们与本地工具共同构成一个循环:scan_url 发现失败,generate_playwright_repro 编写规格,qualitymax-grader 在规格落地前进行评分,run_playwright_test 在服务器选定的授权模式下执行它,而 9lives 在后续变更导致漂移时进行修复。

安全与诚实的边界

  • 本地扫描基于网络。私有目标默认被拒绝;allowPrivateNetwork: true 仅是对狭窄回环目标的调用方明确同意。

  • 生成的复现文件保存在受控的工作区目录中。测试运行使用最小化环境和受控的产物目录。

  • 默认情况下,run_playwright_test 在执行前使用 MCP 表单引导。服务器向客户端显示目标、副作用和 SHA-256 摘要,并且仅在客户端返回针对该确切摘要的已接受人工批准后才运行。不支持表单引导的客户端默认失败关闭;仅由调用方提供的布尔值不被接受为证明。--unattended 是面向隔离自动化的显式进程级例外,允许提供的代码以本地用户的文件系统和网络权限运行,无需再次人工提示。

  • 在发布或启用托管能力之前,请阅读完整的 MCP 安全契约 和 安全威胁模型。

架构

Agent-to-local-server and optional-cloud boundary

发布对比 记录了 TestSprite、BrowserStack、mabl 和 Momentic 的带日期的一手能力参考。这是一个事实性的边界对比,而非排名。

托管代理模式

本地工具是开放、本地优先的层。托管 QualityMax 是面向工作区支持的项目、测试用例、脚本和可观测性工作流的显式代理:

QUALITYMAX_API_KEY="<your-api-key>" npx -y @qualitymax/qmax-mcp proxy

仅在需要仅托管能力时才配置代理。Bearer 凭据仅发送到固定的 https://app.qualitymax.io/api/mcp/ 端点;端点覆盖和重定向均被拒绝。

支持与负责任披露

对于非敏感的使用和文档支持,请使用 GitHub Issues。请勿在公开 issue 中报告漏洞;请遵循仓库的安全策略。发布检查清单 包含任何公开公告前所需的所有者检查。

开发

运行时要求 Node 22.13.0 或更高版本。

npm install
npx playwright install chromium
npm run check
npm run demo

npm run demo 启动一个无依赖的本地夹具,默认打印 Markdown 质量回执,并将其生成的复现文件和 Playwright 产物保留在 .qmax-mcp/ 下以供检查。使用 npm run demo -- --format json 获取机器可读的回执。

0.4.0 之后的候选工作——以及其必须遵守的边界——记录在路线图中。它是一个方向,而非交付承诺;已发布的变更列在变更日志中。

包与发布元数据

包在何处列出、刻意不在何处列出,以及每个渠道接受什么,均记录在分发渠道清单中。

server.json 是规范的 MCP Registry 清单。npm run validate:registry 在不发布任何内容的情况下,对照官方模式检查它。使用 npm run version:sync -- <semver> 将所有公开元数据面——package.json、package-lock.json、server.json、smithery.yaml 和 src/metadata.ts——一起更新;npm run check 验证它们是否一致,并在漂移时失败,而 npm publish 仅限于基于来源的发布工作流。发布工作流和回滚程序记录在发布运行手册中。

许可证

MIT — 版权所有 (c) 2026 QualityMax。

Available Tools

4 tools
generate_playwright_reproGenerate Playwright ReproA
Destructive

Generate a minimal Playwright test from a scan finding, URL, or plain-English goal and write it below the approved workspace directory .qmax-mcp/repros. outputPath must be relative; existing files require overwrite:true after review. No outbound network request is made by generation.

Inputs: url (required), goal, finding, testName, +2 more.

inspect_pageInspect PageA
Read-only

Read page structure through outbound browser network requests and return headings, forms, buttons, links, inputs, role/name selectors, and data-testid candidates. storageStatePath may name a workspace-relative Playwright storage-state file for authenticated pages; its credentials are loaded into the throwaway browser context and never returned. Because returned page content may be private, authenticated inspection also requires acknowledgePrivateContent:true as explicit caller consent. Does not intentionally modify the target or local filesystem. allowPrivateNetwork:true is limited to deliberate loopback development targets.

Inputs: url (required), viewport, includeForms, storageStatePath, +3 more.

run_playwright_testRun Playwright TestA
Destructive

Execute supplied local Playwright code or a local test file. This is a code-execution and artifact-writing boundary: qmax-mcp first requires an MCP human-approval elicitation bound to the exact test digest. The runner may make outbound network requests requested by the test.

Inputs: code, headed, baseUrl, browser, +4 more.

scan_urlScan URLA

Inspect a URL with outbound browser and HTTP network requests for console errors, links, accessibility, Core Web Vitals, SEO, security headers, cookie and tracker privacy, mixed content, and page weight. storageStatePath may name a workspace-relative Playwright storage-state file so the checks can run on an authenticated page; its credentials are loaded into the throwaway browser context and never returned. Because returned findings may reflect private content, authenticated scans also require acknowledgePrivateContent:true as explicit caller consent. This may write a local screenshot artifact when screenshot:true. Set format:"markdown" for a shareable graded report, or format:"issue" to render each finding as a self-contained ticket block (summary, steps, expected, actual, environment) ready to paste into a tracker; minSeverity filters that export. baseline takes a previous scan result, or a workspace-relative path to one, and adds a delta reporting which findings are new, fixed, and unchanged — use it to answer whether a change introduced anything rather than comparing two results by eye. allowPrivateNetwork:true is limited to deliberate loopback development targets.

Inputs: url (required), checks, format, baseline, +8 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 4 tools

    Disambiguation4/5

    scan_url and inspect_page both involve browser access but are clearly differentiated: scan_url is a full quality audit with findings and reports, while inspect_page returns structural selectors and page elements. generate_playwright_repro creates tests and run_playwright_test executes them, so overall tool boundaries are clear, though one could initially confuse scan_url with inspect_page.

    Naming Consistency5/5

    All tools consistently use a verb_object snake_case pattern: scan_url, inspect_page, generate_playwright_repro, run_playwright_test. There are no vague generic verbs or mixed conventions, making the intent of each tool predictable from its name.

    Tool Count5/5

    Four tools is well within the ideal 3-15 range and each tool represents a distinct high-level QA workflow: auditing a URL, inspecting page structure, generating a reproduction, and executing a test. The count feels appropriately scoped rather than thin or bloated.

    Completeness4/5

    The core QA workflow is covered: scan a URL for issues, inspect page structure, generate a Playwright reproduction, and run Playwright tests. Minor gaps exist such as managing or listing generated repro artifacts, but these do not create dead ends for the server's apparent purpose.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables AI coding agents to see, measure, and verify web pages through a real Chrome browser, including screenshots, responsive layout and accessibility audits, pixel diffing against baselines, secure logins, and deployed-fix verification.
      27
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables coding agents to verify application changes by running browser workflows, executing independent state assertions, and producing replayable evidence.
      3 npm
      MIT