k11 Performance QA
OfficialIntegrates with GitHub Actions by writing the Markdown performance report to the step summary and setting outputs such as verdict, p95, SLO breaches, and regressions; supports workflows that save baselines on main and compare pull requests.
Integrates with Grafana k6 as an optional load-testing engine for heavy load generation, while keeping SLO checks, baseline comparisons, and performance reports consistent with the builtin engine.
k11 Performance QA: MCP server and CI tool
Load testing that answers a release question: did this change make the API slower, or break it under load?
Most load-testing tools give you numbers. This one gives you evidence: per-endpoint latency against your SLOs, and regressions against a baseline that are statistically significant, so a noisy run doesn't block a release and a real slowdown doesn't slip through. The report feeds straight into the k11 Release Gate.
Your API tests become load scenarios. Scenarios reuse the user-story flows from k11 API Functional QA (
tests/api/*.yaml): chained calls, saved IDs, fixtures and auth. No second set of scripts to maintain.Per-endpoint metrics: p50, p90, p95, p99, max, error rate, 5xx count and throughput for every
METHOD /path/{param}.SLOs per endpoint or pattern (
p95_ms,p99_ms,error_rate,min_rps, …).Regressions that mean something: slower than the baseline by more than a tolerance and a minimum number of milliseconds and significant (one-sided Mann-Whitney U test).
Guardrails: no load on production-like environments, data-changing flows only where writes are allowed, caps on virtual users, duration and request rate, and an automatic stop when too many requests fail.
Two engines: Grafana k6 when it's installed, for heavy load; a builtin engine (Python, no install) for quick checks and CI.
Already on JMeter? Import your existing JMeter results (
.jtl) and get the same SLO checks, regressions and Release Gate evidence, without rewriting a single test plan.
Quick start
pip install k11-performance-qa-mcp # or: uvx k11-performance-qa-mcp
k11-performance-qa-mcp init # writes .qa-mcp/perf.yaml
k11-performance-qa-mcp baseline # on main: run and save the baseline
k11-performance-qa-mcp run # on a branch: run, compare, write the reportIn Claude Code, as a plugin with the /perf-check and /perf-baseline commands:
/plugin marketplace add K11-Software-Solutions/k11techlab-performance-qa-mcp
/plugin install performance-qa@k11-performance-qaOr as an MCP server in any client:
{ "mcpServers": { "performance-qa": { "command": "uvx", "args": ["k11-performance-qa-mcp"] } } }Related MCP server: k6-loadtest-mcp
Configure
All K11 QA tools keep their settings, baselines and reports in
.qa-mcp/. What each file is for, and what to commit.
Environments and auth come from .qa-mcp/api-test.yaml (shared with API Functional QA). Load settings live in .qa-mcp/perf.yaml:
environment: staging
engine: auto # k6 if installed, else builtin
profile: { vus: 10, duration: 2m, ramp_up: 20s, think_time_ms: 200 }
scenarios:
browse:
flows:
- { flow: tests/api/view_order.yaml, weight: 3 } # 3x more often
- tests/api/cancel_order.yaml
slos:
"GET /orders/{id}": { p95_ms: 250, error_rate: 0.01 }
"POST /orders": { p95_ms: 600 }
"*": { p95_ms: 800, error_rate: 0.02 }
regression: { metric: p95, tolerance_pct: 10, min_delta_ms: 10, min_samples: 30, p_value: 0.01 }
guardrails: { max_vus: 50, max_duration: 10m, max_rps: 200, abort_error_rate: 0.5 }Each virtual user runs a flow's fixtures once, then repeats: pick a flow by weight, run its HTTP steps in order (IDs saved by one step feed the next), run its cleanup, think, repeat. Database checks are skipped under load; they check correctness, not speed, and still run in your functional tests.
Already using JMeter?
Keep your test plans. Run them as usual, then import the results file:
jmeter -n -t checkout.jmx -l results.jtl # your existing JMeter run
k11-performance-qa-mcp import results.jtl --env staging --save-baseline # on main
k11-performance-qa-mcp import results.jtl --env staging # on a branch: compare, reportCSV results (JMeter's default, with the header row) and XML results both work. Each sampler label becomes an endpoint, so name samplers like GET /orders/{id} to match your SLO patterns. Transaction Controller samples are skipped (they sum their children), connection failures count as errors, and 5xx responses are server errors. Since JMeter generated the load, k11's guardrails don't apply; the analysis, baseline comparison and report are exactly the same as for a k6 or builtin run.
How a regression is decided
For each endpoint, the run is compared with the saved baseline on the configured metric (p95 by default). It's a regression only when all of these hold:
it's slower by more than
tolerance_pct(default 10%);it's slower by more than
min_delta_ms(default 10 ms), so 2 ms → 3 ms isn't "50% slower";both runs have at least
min_samplesrequests for that endpoint;a one-sided Mann-Whitney U test says the new latencies are higher with p <
p_value(default 0.01).
A rise in the error rate of more than 1 percentage point is reported separately. Improvements are reported too.
What the report contains
.qa-mcp/perf-report/perf-report.json holds the verdict, per-endpoint metrics and status codes, SLO results, the baseline comparison (with p-values), findings, error examples, a per-second timeline and the profile and engine used. perf-report.md is ready for a pull request or CI step summary. Findings:
Finding | Release Gate rule | Default outcome |
5xx responses under load |
| block |
An SLO missed |
| block |
Run aborted (too many failures) |
| block |
Significant regression vs baseline |
| needs a person |
Run refused by guardrails / didn't start |
| needs a person |
No baseline, or too few samples |
| note |
Tools (MCP)
Tool | What it does |
| Environments (and whether load is allowed, and why), scenarios and their flows, SLOs, guardrails, the engine that will run, saved baselines |
| Run a scenario; returns the verdict, findings, per-endpoint latency and the baseline comparison; writes the report |
| Save the last completed run (or a fresh run) as the baseline |
| Analyse a JMeter results file (CSV or XML) like a run: SLOs, baseline comparison, report |
| The last report, or one endpoint's detail: percentiles, status codes, SLOs, comparison, error examples |
| Write a starter |
Command line
k11-performance-qa-mcp run [--scenario S] [--env E] [--vus N] [--duration 2m] [--ramp-up 20s] [--max-rps N]
[--engine auto|k6|builtin] [--no-compare] [--fail-on any|slo|regression|never]
k11-performance-qa-mcp baseline [same options] | baseline --from-last-run
k11-performance-qa-mcp import FILE.jtl [--scenario S] [--env E] [--save-baseline] [--no-compare] [--fail-on ...]
k11-performance-qa-mcp initIn GitHub Actions it writes the Markdown report to the step summary and sets verdict, p95, slo_breaches and regressions outputs. See docs/perf-tests.yml for a workflow that saves the baseline on main and compares every pull request with it.
Safety
No production load: environments named like production are refused unless they set both
allow_load: trueandproduction_load_acknowledged: trueinapi-test.yaml. Other environments need a local host, a test-like name (staging,qa,dev, …) orallow_load: true.Writes follow API Functional QA's rules: a scenario with data-changing calls is refused on an environment that doesn't allow writes, before any request is sent.
Caps:
max_vus,max_durationandmax_rps; the run stops when the error rate passesabort_error_rate.Secrets come from
${ENV:NAME}and never appear in reports or the generated k6 script; k6 receives auth headers through its environment.
Engines
builtin | k6 | |
Install | none | install k6 (or set |
Load | up to a few hundred requests per second | thousands per second |
Checks | status and value checks from the flow | status codes (value checks run in functional tests) |
Fixtures and auth | yes | yes (prepared in Python, handed to k6) |
Database cleanup steps | yes | no; use a disposable test database |
Keep the engine the same between a baseline and the runs compared with it; the report warns when they differ. JMeter imports are a third source and compare best with JMeter baselines.
Demo
demo/shop is a small order API with switches to simulate a bad release: --slow-ms 80 slows GET /orders/{id}, --error-every 5 makes every fifth call fail.
python demo/shop/server.py --port 8080 &
cd demo/shop && SHOP_URL=http://127.0.0.1:8080 SHOP_TOKEN=test-token k11-performance-qa-mcp baseline --scenario browse
# restart the server with --slow-ms 80, then:
SHOP_URL=http://127.0.0.1:8080 SHOP_TOKEN=test-token k11-performance-qa-mcp run --scenario browse
# ❌ regression: GET /orders/{id}: p95 32.1 → 92.1 ms (+186.9%, p=0.0000)Part of the K11 QA suite
Playwright QA · Selenium QA · API Contract QA · API Functional QA · LLM Assure · Performance QA · Release Gate · Release Readiness Agent
Development
python -m venv .venv && .venv/Scripts/pip install -e ".[dev]" # bin/pip on macOS/Linux
pytest # statistics, guardrails, real load against the demo shop, CLI, MCP; the k6 test runs when k6 is installedRoadmap
LLM performance and cost: time to first token, tokens per second, cost per request and per conversation.
Open-model (arrival-rate) scenarios and soak tests.
Comparing two branches deployed side by side.
Built by K11 Software Solutions. MIT licensed.
Available Tools
6 toolsget_reportGet reportA
The last run's report. With endpoint ('GET /orders/{id}'), that endpoint's full detail: latency percentiles, status codes, SLO results, baseline comparison and example errors.
Inputs: endpoint.
import_jmeter_resultsImport JMeter resultsA
Analyse an existing JMeter results file (.jtl, CSV with a header row or XML) inside the project exactly like a run of our own: per-endpoint latency (endpoints are sampler labels; name them 'GET /orders/{id}'), SLOs, the baseline comparison and findings, written to .qa-mcp/perf-report/ for the Release Gate. scenario defaults to 'jmeter'; use the same scenario and environment for the baseline and later imports. save_as_baseline=True stores these results as the baseline instead of comparing.
Inputs: path (required), scenario, environment, compare_baseline, +1 more.
init_perf_configCreate performance configB
Write a starter .qa-mcp/perf.yaml (scenario, profile, SLOs, regression settings, guardrails). Environments and auth stay in .qa-mcp/api-test.yaml.
Inputs: overwrite.
perf_configPerformance configC
Environments (and whether load is allowed and why), scenarios with their flows, SLOs, regression settings, guardrails, the engine that would run (k6 if installed, else builtin) and the saved baselines.
Inputs: no named parameters.
run_load_testRun load testA
Run a load test and write .qa-mcp/perf-report/ (JSON evidence for the Release Gate, Markdown, samples). Returns the verdict, findings (server errors, SLO breaches, statistically significant regressions), per-endpoint latency (p50/p95/p99), errors and throughput, and the baseline comparison. Overrides (vus, duration like '30s', ramp_up, max_rps, engine 'k6'|'builtin') are still capped by the guardrails. Refused on production-like environments and when data-changing flows target a read-only environment.
Inputs: vus, engine, max_rps, ramp_up, +4 more.
save_baselineSave baselineB
Save the baseline later runs are compared with. from_last_run=True uses the last completed run's samples (.qa-mcp/perf-report/samples.json); otherwise runs the scenario now and saves it. Do this on main or a release you trust, not on the branch under test.
Inputs: vus, duration, scenario, environment, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
The core actions (perf_config read, save_baseline, run_load_test, import_jmeter_results, get_report) each have a clearly distinct purpose, and the descriptions clearly separate the two producers of reports (native run vs. JMeter import) and the report reader. The main risk is the pair perf_config vs. init_perf_config, which both concern .qa-mcp/perf.yaml and differ only by 'read current' vs. 'write starter' — an agent could plausibly pick the wrong one.
All names are snake_case and mostly follow verb_noun (save_baseline, run_load_test, import_jmeter_results, get_report, init_perf_config). The exception is perf_config, which is a noun phrase rather than an action verb, creating a minor deviation but still readable.
Six tools is well within the sweet spot for a performance QA workflow, and each one covers a distinct lifecycle step (init config, inspect config, run, import, baseline, report). Nothing appears redundant or missing at the count level.
The surface covers the full workflow: initialize config, inspect config, execute or import a run, store a baseline, and retrieve the report. Minor gaps exist — no explicit baseline listing/comparison across runs, no config update/delete, and no way to prune reports — but agents can work around these via init_perf_config and repeated runs.
Maintenance
Related MCP Connectors
End-to-end API testing — generate and run tests from OpenAPI, curl, Postman, or real user traffic.
Load test your app on a real server from your agent. Get p95, errors and what ran out first.
Load & browser performance testing — drive MaxoPerf from your AI agent with your API key.
Load testing and synthetic monitoring platform: test with Playwright, Browser Bot, or Protocol Bots.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceConverts non-functional requirements and code into secure, traceable JMeter performance tests with coverage analysis, plan generation, execution, and GitHub draft PRs.8 npmMIT
- AlicenseAqualityDmaintenanceTurns natural-language API descriptions into runnable k6 load tests, executes them, and returns structured performance metrics for AI-assisted reporting.5MIT
- AlicenseAqualityCmaintenanceEnables LLM agents to run self-healing JMeter performance tests via natural language, from environment setup to capacity discovery and SLO verdict reporting.121MIT
- AlicenseNot gradedqualityBmaintenanceEnables evaluating AI applications, inspecting reliability evidence, and gating releases from development and CI workflows.33Apache 2.0