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 分