nedal-site-qa-mcp
v1.1.0QA MCP server for any site: test-account logins (API or browser), browser actions, validation scenarios and performance checks
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
qa_sites
List the configured sites, their login mode, roles and UI helpers (no secrets). Run this to see what can be tested.
qa_check_server
Check that a site's test server answers from this machine (network up, host allowed). Run this first.
| Parameter | Type | Description |
|---|---|---|
site | string | Site profile name (sites/<name>.json). Optional when only one site is configured or QA_DEFAULT_SITE is set. |
qa_login
Sign in to a site as one of its dedicated QA accounts (completing an on-screen OTP when the profile allows). browser: true signs in INSIDE a real browser, so the page tools and the API share that one session. headed: true shows the browser window.
| Parameter | Type | Description |
|---|---|---|
role * | string | One of the site's roles — qa_sites lists them. |
browser | boolean | |
headed | boolean | |
site | string | Site profile name (sites/<name>.json). Optional when only one site is configured or QA_DEFAULT_SITE is set. |
qa_whoami
Ask the site who a signed-in QA session is — confirms the session still works and shows the role and permissions.
| Parameter | Type | Description |
|---|---|---|
role * | string | One of the site's roles — qa_sites lists them. |
site | string | Site profile name (sites/<name>.json). Optional when only one site is configured or QA_DEFAULT_SITE is set. |
qa_logout
Close a role's session and its browser.
| Parameter | Type | Description |
|---|---|---|
role * | string | One of the site's roles — qa_sites lists them. |
site | string | Site profile name (sites/<name>.json). Optional when only one site is configured or QA_DEFAULT_SITE is set. |
qa_open
Open a page (a path under the site, or a full URL on an allowed host) in the role's browser. Signs the role in inside the browser first when needed. Returns status, title, time, the API calls it made and any errors.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
role * | string | One of the site's roles — qa_sites lists them. |
site | string | Site profile name (sites/<name>.json). Optional when only one site is configured or QA_DEFAULT_SITE is set. |
qa_fill
Type a value into a field (cleared first, then blurred). Returns what the field really holds afterwards (kept: false = the field filtered or cut it) and the field's own error when the profile can read it.
| Parameter | Type | Description |
|---|---|---|
role * | string | One of the site's roles — qa_sites lists them. |
target * | What to act on: { "field": "<id>" } (the site profile's ui.field), { "selector": "css" }, or { "text": "button or link name" }. Add "nth" (0-based, -1 = last) when several match. A bare string is a CS… | |
value * | string | number | |
site | string | Site profile name (sites/<name>.json). Optional when only one site is configured or QA_DEFAULT_SITE is set. |
qa_select
Pick an option in a native <select> by its visible label (or value) and prove it shows. For custom dropdowns use qa_click.
| Parameter | Type | Description |
|---|---|---|
role * | string | One of the site's roles — qa_sites lists them. |
target * | What to act on: { "field": "<id>" } (the site profile's ui.field), { "selector": "css" }, or { "text": "button or link name" }. Add "nth" (0-based, -1 = last) when several match. A bare string is a CS… | |
label | string | |
site | string | Site profile name (sites/<name>.json). Optional when only one site is configured or QA_DEFAULT_SITE is set. |
value | string |
qa_click
Click a button/link/element (refuses a disabled one), wait for the page to settle, and report where it landed, the API calls and errors it caused.
| Parameter | Type | Description |
|---|---|---|
role * | string | One of the site's roles — qa_sites lists them. |
target * | What to act on: { "field": "<id>" } (the site profile's ui.field), { "selector": "css" }, or { "text": "button or link name" }. Add "nth" (0-based, -1 = last) when several match. A bare string is a CS… | |
site | string | Site profile name (sites/<name>.json). Optional when only one site is configured or QA_DEFAULT_SITE is set. |
qa_upload
Set a local file on a file input (or a field's file input) and report the server calls and the field's error.
| Parameter | Type | Description |
|---|---|---|
file * | string | Absolute path of a local file. |
role * | string | One of the site's roles — qa_sites lists them. |
target * | What to act on: { "field": "<id>" } (the site profile's ui.field), { "selector": "css" }, or { "text": "button or link name" }. Add "nth" (0-based, -1 = last) when several match. A bare string is a CS… | |
site | string | Site profile name (sites/<name>.json). Optional when only one site is configured or QA_DEFAULT_SITE is set. |
qa_read
Read from the page: what = text (default; no target = whole page), value, visible, count, attr, options, field_error ({ field }), page_errors (the profile's alert/toast selector).
| Parameter | Type | Description |
|---|---|---|
role * | string | One of the site's roles — qa_sites lists them. |
attr | string | |
site | string | Site profile name (sites/<name>.json). Optional when only one site is configured or QA_DEFAULT_SITE is set. |
target | What to act on: { "field": "<id>" } (the site profile's ui.field), { "selector": "css" }, or { "text": "button or link name" }. Add "nth" (0-based, -1 = last) when several match. A bare string is a CS… | |
what | string |
qa_screenshot
Screenshot the role's page (or one element) — saved under ~/.site-qa/runs/shots and returned as an image to look at.
| Parameter | Type | Description |
|---|---|---|
role * | string | One of the site's roles — qa_sites lists them. |
full_page | boolean | |
label | string | |
site | string | Site profile name (sites/<name>.json). Optional when only one site is configured or QA_DEFAULT_SITE is set. |
target | What to act on: { "field": "<id>" } (the site profile's ui.field), { "selector": "css" }, or { "text": "button or link name" }. Add "nth" (0-based, -1 = last) when several match. A bare string is a CS… |
qa_network
What went wrong behind the screen in the role's browser: HTTP ≥ 400, failed requests, console errors, page errors — plus the slowest API calls. clear (default true) starts a fresh window afterwards.
| Parameter | Type | Description |
|---|---|---|
role * | string | One of the site's roles — qa_sites lists them. |
clear | boolean | |
site | string | Site profile name (sites/<name>.json). Optional when only one site is configured or QA_DEFAULT_SITE is set. |
qa_request
Call the site's API as the signed-in role (its browser session when it has one, else its token). Good for API-level validation: send bad input, check the status and messages.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
role * | string | One of the site's roles — qa_sites lists them. |
body | object | |
method | string | |
site | string | Site profile name (sites/<name>.json). Optional when only one site is configured or QA_DEFAULT_SITE is set. |
qa_perf_page
Page performance as the role sees it: loads the page `runs` times (first = cold) and reports TTFB, DOM ready, load, LCP, time to network idle, API call count and the slowest calls. budget (e.g. { "load_ms": 3000, "lcp_ms": 2500, "api_ms": 1000 }) turns it into pass/fail.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
role * | string | One of the site's roles — qa_sites lists them. |
budget | object | |
runs | number | |
site | string | Site profile name (sites/<name>.json). Optional when only one site is configured or QA_DEFAULT_SITE is set. |
qa_perf_api
Load-test one API endpoint on the TEST server: `requests` calls with `concurrency` in flight; returns min/p50/p90/p95/p99/max, req/s, status counts and error rate. Capped per site (default 1000 requests, 20 concurrent). Non-GET needs allow_writes: true. role optional (signed-in role's session).
| Parameter | Type | Description |
|---|---|---|
path * | string | |
allow_writes | boolean | |
body | object | |
budget_p95_ms | number | |
concurrency | number | |
method | string | |
requests | number | |
role | string | One of the site's roles — qa_sites lists them. |
site | string | Site profile name (sites/<name>.json). Optional when only one site is configured or QA_DEFAULT_SITE is set. |
qa_run_scenario
Run a test scenario and get pass / fail / blocked per step and per case (blocked = the step could not run; never counted as a pass). Failures get a screenshot; the full report is saved under ~/.site-qa/runs. Scenario: { "name", "role", "steps": [...], "cases": [ {...}, ... ], "stop_on_fail": true }. Each case runs all steps; use {case.<key>} in steps to vary input (validation matrices: one case per value with its expected error). Steps: { "open": "/path" } | { "login": "role" } | { "fill": target, "value" } | { "select": target, "label" } | { "click": target } | { "upload": target, "file" } |…
| Parameter | Type | Description |
|---|---|---|
headed | boolean | |
name | string | |
save_as | string | |
scenario | object | |
site | string | Site profile name (sites/<name>.json). Optional when only one site is configured or QA_DEFAULT_SITE is set. |
qa_scenarios
List a site's saved scenarios (~/.site-qa/scenarios/<site>), or show one with name.
| Parameter | Type | Description |
|---|---|---|
name | string | |
site | string | Site profile name (sites/<name>.json). Optional when only one site is configured or QA_DEFAULT_SITE is set. |