QualityMax QA MCP

io.github.Quality-Max由 GitHub 账号 Quality-Max 发布v0.9.2更新于 Oct 24, 2026

Final release; the checks moved to 9lives (9l mcp). Local QA MCP: scan, inspect, repro, run tests.

概览

AI 生成的概览

本地 QA MCP 服务器,可扫描网页、检查 UI 定位器、生成 Playwright 复现脚本并运行一个 Playwright 测试。

可以做什么
提供四个本地工具:scan_url 在一次页面加载上运行九项检查(控制台错误、链接、无障碍、性能/Core Web Vitals、SEO、安全响应头、Cookie 与跟踪器、混合内容、页面体积),返回带评分的报告,包含发现项、复现步骤和修复建议;inspect_page 返回页面结构和按稳定性排序的 role/name 定位器候选;generate_playwright_repro 在 .qmax-mcp/repros 下写入确定性的 Playwright 复现脚本;run_playwright_test 执行一个本地 Playwright 测试并返回结构化状态。扫描结果可与基线对比,报告新增、已修复和未变化的发现项。
适用场景
当编码代理在宣布网页改动完成前需要独立 QA 证据时使用:扫描改动的页面、检查 UI、生成针对性的 Playwright 复现脚本并查看执行结果。也适用于在 CI 中仅对新增发现项进行门禁,以及把发现项转为跟踪系统工单。
运行要求
通过 npx -y @qualitymax/qmax-mcp 以 stdio 在本地运行;需要 Node 22.13.0 或更高版本以及 Playwright Chromium。四个本地工具无需账户或 API 密钥。扫描需要网络访问;默认拒绝私有目标,除非设置 allowPrivateNetwork。访问需登录页面时可选用 Playwright storage-state 文件。托管代理模式是独立功能,需要 QUALITYMAX_API_KEY。
安装前请注意
这是该软件包的最终版本(0.9.2);相关检查已迁移到 9lives,不再计划修复。扫描会发出站外请求,并可能读取显式指定的、包含凭据的 storage-state 文件;发现项可能反映私有账户数据。generate_playwright_repro 会在 .qmax-mcp/repros 下写入文件。run_playwright_test 会执行代码,默认需要针对特定摘要的人工批准;--unattended 标志会授权每次执行而无需人工提示。

安装

在 SourceWeft 中

  1. 打开 控制台中的 QualityMax QA MCP,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

QualityMax QA MCP

[npm version] [npm downloads] [License: MIT] [Node.js] [Website] [Discord] [Listed in awesome-testing] [Listed in awesome-mcp-servers] [Buy Me a Coffee]

[!IMPORTANT] These checks now ship in 9lives. From 9lives v0.4.0, 9l scan and 9l inspect run the same nine page checks and locator inspection, and 9l mcp gives coding agents scan_url, inspect_page and generate_playwright_repro next to its run, heal, assess and confirm tools: one local server, no account. qmax.run no longer hosts this project; see 9lives.run and Check the page you changed. New features and fixes land in 9lives-runner; open issues moved there. 0.9.2 is the final release of this package: it stays installable but receives no further fixes (9lives-runner#100).

Give a coding agent independent QA evidence before it declares a web change done: scan the page, inspect the UI, generate a focused Playwright repro, then review the execution result.

bash
npx -y @qualitymax/qmax-mcp

The four local tools require no QualityMax account, API key, or hosted service.

Documentation · Hosted MCP setup · Local demo

This package provides four standalone local tools. Hosted workspace access is a separate authenticated connection; use the hosted MCP setup when you need platform projects and workflows.

Start with a useful result

Ask an MCP-enabled agent to scan the URL it changed, or run the local CLI:

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

The report includes a graded summary, findings, concrete reproduction steps, and suggested fixes. One command exercises all four tools against a checked-in, dependency-free fixture — see the reproducible demo.

[The demo flow: scan_url, inspect_page, generate_playwright_repro, then run_playwright_test behind a human approval gate]

What one scan measures

All nine checks run off a single page load. Pass checks to run a subset.

CheckWhat it reports
consoleJavaScript errors, warnings, and failed requests
linksBroken and redirecting links, up to maxLinks
accessibilityMissing alt text, unlabelled controls, nameless interactive elements, heading structure
performanceCore Web Vitals: LCP, CLS, TTFB, FCP
seoTitle and meta description
security_headersCSP, HSTS, X-Content-Type-Options, Referrer-Policy
cookiesMissing Secure/HttpOnly/SameSite, third-party cookies, known trackers, tracking before consent
mixed_contentHTTP subresources and form actions on an HTTPS page, split into browser-blocked active and passive
weightTransfer bytes, request count, render-blocking resources, oversized and uncompressed assets, third-party cost

Names must match exactly. An unrecognised name is rejected with the supported list rather than skipped, so a typo cannot quietly turn a check off and still return a score.

scan_url also returns a metrics block with the measured vitals and the page-weight breakdown, including the slowest requests. Two limits are stated in that block rather than hidden: INP is not measured, because it needs real user interaction, and vitals come from one cold load on the scanning machine, not from field data. Set weightBudget to scan against your own performance budget.

What the report looks like

--format markdown opens with the shape of the result, so a human or an agent can see where the problems are before reading a single finding:

Grade: 🔴 F (0 / 100) · 17 issues found

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

CategoryIssuesWorst
Console errors██░░░░░░░░ 1🔴 high
Accessibility████████░░ 3🔴 high
Security headers██████████ 4🟠 medium
Cookies and trackers█████░░░░░ 2🟠 medium
Page weight██████████ 4🟠 medium

Each bar is scaled to the noisiest category in that run, so the tallest bar is the thing to fix first. When weight runs, the measurements section also attributes the bytes:

script      ████████████████  18 kBdocument    ██░░░░░░░░░░░░░░   3 kBstylesheet  ██░░░░░░░░░░░░░░   1 kBimage       ░░░░░░░░░░░░░░░░  417 B

Then every finding follows with its severity, a copy-pasteable reproduction, and a suggested fix. Use --format json for the same data as structured output.

What the agent can do

ToolLocal capabilityBoundary to review
scan_urlScan a URL for console, network, telemetry-SDK, link, accessibility, SEO, security-header, cookie/tracker, mixed-content, page-weight, and Core Web Vitals findings, optionally using a Playwright storage-state file.It makes outbound requests, may read an explicitly selected workspace file containing credentials, and can write a screenshot.
inspect_pageReturn page structure and role/name locator candidates, optionally using a Playwright storage-state file for authenticated pages.It makes outbound requests and may read an explicitly selected workspace file containing credentials.
generate_playwright_reproWrite a deterministic, workspace-contained Playwright repro.It writes below .qmax-mcp/repros; overwrites are explicit.
run_playwright_testExecute one local Playwright test and return structured status.It executes code and writes controlled artifacts; by default it requires an accepted, digest-bound MCP human-approval elicitation.

The local server does not require an account. Hosted proxy mode is a separate, opt-in connection for account-backed QualityMax capabilities; do not add it unless that capability is needed.

Scan or inspect an authenticated page

Both tools read a Playwright storage-state file. Producing that file is the on-ramp, so here are the two shortest ways.

From a browser you log into yourself — no code, and it works against any login, including SSO and MFA:

bash
npx playwright codegen --save-storage=playwright/.auth/user.json https://example.com/login

Sign in in the window that opens, then close it. Playwright writes the state to that path on exit.

From a login your test suite already automates — repeatable, and the one to use in CI:

js
// scripts/save-storage-state.mjs — run with: node scripts/save-storage-state.mjsimport { chromium } from 'playwright';
const browser = await chromium.launch();const page = await browser.newPage();
await page.goto('https://example.com/login');await page.getByLabel('Email').fill(process.env.APP_USER);       // never hardcodeawait page.getByLabel('Password').fill(process.env.APP_PASSWORD);await page.getByRole('button', { name: 'Sign in' }).click();await page.waitForURL('**/account');                             // wait for the session, not a timeout
await page.context().storageState({ path: 'playwright/.auth/user.json' });await browser.close();

Read the credentials from the environment rather than writing them into the script, and gitignore the output — playwright/.auth/ is the conventional location and Playwright's own scaffolding already ignores it. A session expires, so regenerate the file when scans start coming back as though logged out; a scan of a protected page that suddenly reports a login form is the usual symptom.

Then pass the path relative to the active workspace:

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

scan_url and inspect_page load the state into a throwaway browser context before the first navigation and require acknowledgePrivateContent:true as explicit consent that the result may contain private page content. The path must resolve to a regular file inside the workspace; absolute paths, traversal, symlink escapes, and files over 10 MB are rejected. The state path and credential values are not returned, but findings or inspected page structure may reflect private account data. Treat both the state file and the tool result accordingly, and use a dedicated state file containing only the credentials needed by the inspected application. Playwright storage state covers cookies, local storage, and optionally IndexedDB; it does not persist session storage.

Compare a scan against a previous one

scan_url is documented for use after a change, which makes it a comparison: scan, change something, scan again, decide. Pass baseline — a previous scan result, or a workspace-relative path to one — and the response carries a delta reporting which findings are new, fixed, and unchanged, plus a one-line verdict.

json
{  "url": "https://example.com/",  "baseline": "artifacts/scan-main.json"}

Each finding carries a stable id derived from its category, message, and URL or selector, so the same problem hashes the same across runs. Severity and occurrence count are excluded from that identity on purpose: a finding that is reclassified, or seen four times instead of three, is still the same finding.

In CI this is what makes a gate usable. Failing on findingCount > 0 stops working the moment a page has one known-benign finding, whereas failing on "nothing new since the last green run" keeps working:

bash
qmax-mcp scan https://example.com/ --format json --out scan.jsonqmax-mcp scan https://example.com/ --baseline artifacts/scan-main.json --fail-on-new

--fail-on-new exits 1 when the scan finds anything absent from the baseline, and 2 when it was passed without --baseline. Persist the last main-branch result as the baseline artifact.

Turn findings into tracker tickets

format: "issue" renders each finding as a self-contained Markdown block — summary, numbered steps, expected result, actual result, environment — ready to paste into a tracker without rewriting it as prose. minSeverity limits the export to what is worth filing.

bash
qmax-mcp scan https://example.com/ --format issue --min-severity medium

Blocks are separated by HTML comments, which render as nothing, so pasting one does not carry the report's own structure into the ticket. A finding collapsed from several occurrences files as one ticket that states the frequency, rather than as several identical tickets.

Get ranked locators without an MCP client

inspect prints the same result as the inspect_page tool: every control with a ready-to-paste Playwright locator ranked by how durable its source is, a per-control stability verdict, and a page-level testability score.

bash
qmax-mcp inspect https://example.com/qmax-mcp inspect http://localhost:3000/ --allow-private-network --format json --out locators.json

The Markdown report leads with the testability verdict, then the locator table, best handle first, with the caveats that make a fragile or none verdict actionable. --format json returns the full structure for programmatic consumers — a script choosing selectors for a generated spec, or a selector-healing tool such as 9lives picking the anchor to re-find a control by.

Add it to your coding agent

Copy a ready-made, no-credential configuration and the accompanying instruction file for your client:

The agent setup guide explains the expected approval surfaces and has a generic stdio configuration. The root AGENTS.md is the portable instruction: collect evidence, report unresolved failures, and request approval before mutating files or executing supplied code unless the server explicitly advertises unattended mode.

Unattended automation

For a trusted, isolated automation environment where no human can answer MCP elicitations, start the server with the explicit --unattended flag:

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

For Codex TOML, use args = ["-y", "@qualitymax/qmax-mcp", "--unattended"]. This process-start opt-in authorizes every run_playwright_test call handled by that server; it is intentionally not available as a tool argument or environment variable. The server advertises the active mode to the agent, prints an UNATTENDED startup warning, and returns approval.mechanism: "unattended-cli-opt-in-v1" with each execution. The exact test is still snapshotted and digest-checked, and the existing workspace, environment, timeout, cancellation, and output controls remain active.

Adjacent QualityMax tools

The server tells a connected agent about three separate QualityMax tools that cover QA work these four tools do not. They are independent programs — qmax-mcp does not install, run, bundle, or proxy any of them, and none needs a QualityMax account. The agent is instructed to name one only when its trigger is present, once, and to leave the decision to run it with you.

ToolUsageCommandReach for it when
9lives (MIT)[PyPI downloads]uv tool install 9lives, then 9l heal <spec>A Playwright spec that used to pass is red after a change and the failure looks like drift. Heal the locator instead of weakening the assertion.
qualitymax-grader (Apache-2.0)[npm downloads]npx qualitymax-grader <spec>A spec is about to be committed, or a suite is judged on test quality rather than on passing. Offline A-F grade, no model or network.
free-qa-skills (Apache-2.0)[skills.sh installs]install from skills.shThe QA request is about a repository rather than a running URL, or the agent has no MCP server available.

Together with the local tools they form one loop: scan_url finds the failure, generate_playwright_repro writes the spec, qualitymax-grader scores it before it lands, run_playwright_test executes it under the server's selected authorization mode, and 9lives heals it when a later change makes it drift.

Safety and honest limits

  • Local scanning is networked. Private targets are denied by default; allowPrivateNetwork: true is only deliberate caller-side consent for a narrow loopback target.
  • Generated repros stay in a controlled workspace directory. Test runs use a minimal environment and controlled artifact directory.
  • By default, run_playwright_test uses MCP form elicitation before execution. The server displays the target, side effects, and a SHA-256 digest to the client, and runs only after the client returns an accepted human approval for that exact digest. Clients without form-elicitation support fail closed; a bare caller-supplied boolean is not accepted as proof. --unattended is the explicit process-level exception for isolated automation and permits supplied code to run with the local user's filesystem and network permissions without another human prompt.
  • Read the full MCP safety contract and security threat model before publishing or enabling hosted capabilities.

Architecture

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

The launch comparison records dated, first-party capability references for TestSprite, BrowserStack, mabl, and Momentic. It is a factual boundary comparison, not a ranking.

Hosted proxy mode

The local tools are the open, local-first layer. Hosted QualityMax is an explicit proxy for workspace-backed project, test-case, script, and observability workflows:

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

Only configure the proxy when a hosted-only capability is needed. The bearer credential is sent only to the pinned https://app.qualitymax.io/api/mcp/ endpoint; endpoint overrides and redirects are refused.

Support and responsible disclosure

Use GitHub Issues for non-sensitive usage and documentation support. Do not report vulnerabilities in a public issue; follow the repository security policy. The launch checklist includes the owner checks required before any public announcement.

Development

The runtime requires Node 22.13.0 or newer.

bash
npm installnpx playwright install chromiumnpm run checknpm run demo

npm run demo starts a dependency-free local fixture, prints a Markdown quality receipt by default, and leaves its generated repro and Playwright artifacts under .qmax-mcp/ for inspection. Use npm run demo -- --format json for a machine-readable receipt.

Candidate work after 0.4.0 — and the boundaries it has to respect — is recorded in the roadmap. It is a direction, not a delivery commitment; shipped changes are listed in the changelog.

Package and release metadata

Where the package is listed, where it deliberately is not, and what each channel accepts is recorded in the distribution channel inventory.

server.json is the canonical MCP Registry manifest. npm run validate:registry checks it against the official schema without publishing anything. Use npm run version:sync -- <semver> to move every public metadata surface — package.json, package-lock.json, server.json, smithery.yaml and src/metadata.ts — together; npm run check verifies they agree and fails on drift, and npm publish is restricted to the provenance-backed release workflow. The release workflow and rollback procedure are documented in the release runbook.

License

MIT — Copyright (c) 2026 QualityMax.

来源:README.md,提交 9a65230

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

3
  1. v0.9.2最新Oct 13, 2026
  2. v0.9.1Oct 12, 2026
  3. v0.9.0Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分