nedal-site-qa-mcp

v1.1.0
nedal-site-qa-mcp Checked 5 days ago Published 1 month ago

QA 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.

ParameterTypeDescription
sitestringSite 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.

ParameterTypeDescription
role *stringOne of the site's roles — qa_sites lists them.
browserboolean
headedboolean
sitestringSite 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.

ParameterTypeDescription
role *stringOne of the site's roles — qa_sites lists them.
sitestringSite 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.

ParameterTypeDescription
role *stringOne of the site's roles — qa_sites lists them.
sitestringSite 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.

ParameterTypeDescription
path *string
role *stringOne of the site's roles — qa_sites lists them.
sitestringSite 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.

ParameterTypeDescription
role *stringOne 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
sitestringSite 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.

ParameterTypeDescription
role *stringOne 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…
labelstring
sitestringSite profile name (sites/<name>.json). Optional when only one site is configured or QA_DEFAULT_SITE is set.
valuestring

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.

ParameterTypeDescription
role *stringOne 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…
sitestringSite 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.

ParameterTypeDescription
file *stringAbsolute path of a local file.
role *stringOne 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…
sitestringSite 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).

ParameterTypeDescription
role *stringOne of the site's roles — qa_sites lists them.
attrstring
sitestringSite profile name (sites/<name>.json). Optional when only one site is configured or QA_DEFAULT_SITE is set.
targetWhat 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…
whatstring

qa_screenshot

Screenshot the role's page (or one element) — saved under ~/.site-qa/runs/shots and returned as an image to look at.

ParameterTypeDescription
role *stringOne of the site's roles — qa_sites lists them.
full_pageboolean
labelstring
sitestringSite profile name (sites/<name>.json). Optional when only one site is configured or QA_DEFAULT_SITE is set.
targetWhat 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.

ParameterTypeDescription
role *stringOne of the site's roles — qa_sites lists them.
clearboolean
sitestringSite 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.

ParameterTypeDescription
path *string
role *stringOne of the site's roles — qa_sites lists them.
bodyobject
methodstring
sitestringSite 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.

ParameterTypeDescription
path *string
role *stringOne of the site's roles — qa_sites lists them.
budgetobject
runsnumber
sitestringSite 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).

ParameterTypeDescription
path *string
allow_writesboolean
bodyobject
budget_p95_msnumber
concurrencynumber
methodstring
requestsnumber
rolestringOne of the site's roles — qa_sites lists them.
sitestringSite 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" } |…

ParameterTypeDescription
headedboolean
namestring
save_asstring
scenarioobject
sitestringSite 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.

ParameterTypeDescription
namestring
sitestringSite profile name (sites/<name>.json). Optional when only one site is configured or QA_DEFAULT_SITE is set.