SuperAPIAI Directory

k11techlab-performance-qa-mcp

github.com · AI developer platforms

k11techlab-performance-qa-mcp is an MCP server and CI tool developed by K11 Software Solutions for load and performance testing, using the results as release evidence. It reuses user story flows from API functional tests directly as load scenarios, sets SLOs per endpoint, and determines performance regressions through statistical significance testing, preventing noisy runs from blocking releases or real slowdowns from being missed. It supports Grafana k6 and a built-in Python engine, can also import JMeter results, and reports can be integrated into the k11 Release Gate.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

k11techlab-performance-qa-mcp is a load and performance testing tool oriented toward release decisions, provided as an MCP server and CI tool. The core question it answers is: does this change make the API slower, or cause failures under load? Unlike load testing tools that only produce numbers, it outputs evidence: latency per endpoint against SLOs, and statistically significant regressions compared with a baseline, so that noisy runs do not block releases and real performance degradations are not missed. Reports can be integrated directly into the k11 Release Gate.

Key capabilities

  1. Reuse API tests as load scenarios: scenarios reuse user story flows from k11 API Functional QA (tests/api/*.yaml), including chained calls, saved IDs, fixtures, and authentication, with no need to maintain a second set of scripts.

  2. Ask before load testing: review_perf_plan first reviews the plan and asks questions about decisions that require human input, such as the SLO for each endpoint, peak load and its source, duration and ramp-up, test data, and the comparability of the environment with production. This process is deterministic (no LLM is used); /perf-check stops and waits for answers rather than running with defaults or inventing SLOs out of thin air.

  3. Per-endpoint metrics: p50, p90, p95, p99, max, error rate, 5xx count, and throughput for each METHOD /path/{param}.

  4. Set SLOs per endpoint or pattern: such as p95_ms, p99_ms, error_rate, min_rps, etc.

  5. Meaningful regression determination: a regression is determined only when all of the following conditions are met—slower than baseline by more than tolerance_pct (default 10%); slower than baseline by more than min_delta_ms (default 10 milliseconds), avoiding counting 2 milliseconds to 3 milliseconds as "50% slower"; both runs have at least min_samples requests at that endpoint; and a one-sided Mann-Whitney U test shows the new latency is higher with p < p_value (default 0.01). An error rate increase of more than 1 percentage point is reported separately, and performance improvements are also reported.

  6. Guardrails: do not apply load to production-like environments; data-changing flows run only in environments where writes are allowed; limit virtual users, duration, and request rate; failed requestsAutomatically stops when exceeded.

  7. Two engines: Grafana k6 for heavy load when installed; the built-in Python engine requires no installation and is suitable for quick checks and CI.

  8. JMeter compatible: can import existing JMeter results (.jtl) to get the same SLO checks, regression analysis, and Release Gate evidence without rewriting test plans. Both CSV (with headers) and XML results are supported; each sampler label becomes an endpoint, so it is recommended to name samplers in formats like GET /orders/{id} to match SLO patterns; Transaction Controller samples are skipped, connection failures count as errors, and 5xx responses count as server errors. Since load is generated by JMeter, k11's guardrails do not apply, but analysis, baseline comparison, and reporting are exactly the same as for k6 or built-in engine runs.

Usage

Can be used as a plugin in Claude Code, providing the /perf-check and /perf-baseline commands; it can also be connected to any client as an MCP server. Settings, baselines, and reports for all K11 QA tools are stored in the .qa-mcp/ directory. Environment and authentication come from .qa-mcp/api-test.yaml (shared with API Functional QA), and load settings are in .qa-mcp/perf.yaml. Each virtual user first runs the flow's fixtures once, then repeats: selects a flow by weight, executes its HTTP steps in order (an ID saved in one step is used by the next step), performs cleanup, thinks, and repeats. Database checks are skipped under load because database checks verify correctness rather than speed, and they still run in functional tests.

Report contents

.qa-mcp/perf-report/perf-report.json contains the verdict, per-endpoint metrics and status codes, SLO results, baseline comparison (including p-values), findings, error examples, per-second timeline, and the configuration and engine used. perf-report.md can be used directly in pull requests or CI step summaries. In GitHub Actions, it writes the Markdown report to the step summary and sets the verdict, p95, slo_breaches, and regressions outputs; docs/perf-tests.yml provides an example workflow that saves a baseline on main and compares each pull request.

Use cases and limitations

Suitable for teams that need to verify API performance before release, compare against SLOs per endpoint, and detect statistically significant regressions, especially teams already using k11 API Functional QA or JMeter. Limitations include: production-like environments deny load by default unless both allow_load: true and production_load_acknowledged: true are set in api-test.yaml; other environments require localhost, a test-like name (staging, qa, dev, etc.), or allow_load: true; environments that do not allow writes will reject scenarios containing data-changing calls; the engine should be kept consistent when comparing baselines, and the report will warn when engines differ, with JMeter import results comparing best against JMeter baselines. Secrets are provided via ${ENV:NAME} and do not appear in reports or generated k6 scripts; k6 receives authentication headers through its environment.

The project also includes a demo/shop small order API, which can slow down GET /orders/{id} with --slow-ms 80 and make every fifth call fail with --error-every 5, to simulate a bad release. The tool is part of the K11 QA suite and is MIT licensed. The roadmap includes LLM performance and cost (time to first token, tokens per second, cost per request and per conversation), open model (arrival rate) scenarios and soak testing, and comparison of two branches deployed side by side.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools