2. The system at a glance¶
MCP in one page¶
The Model Context Protocol (MCP) is an open standard for giving AI applications tools. An MCP server is a program that offers a set of named tools, each with a description and typed parameters; an MCP client (Claude Code, Claude Desktop, Cursor and many others) connects to it and lets the model call those tools.
That matters for testing because a model on its own can only write text that looks like a test. With the right tools it can open the page and check that a locator matches exactly one element, call the API and read the response, query the test database, listen to a Kafka topic, run the suite and read the failures. The tools do the checking; the model does the reasoning and the writing.
Every K11 server works the same way:
- It runs locally, started by your MCP client over standard input/output. No hosted service, no account.
- It works on your project folder (
QA_MCP_ROOT, or the current directory), reading settings from.qa-mcp/. - It also has a command line for CI that writes the same reports as the MCP tools, so the evidence from a run in Claude Code and a run in CI is the same.
- Most come as a Claude Code plugin that adds slash commands for the common workflows (
/story-to-test,/heal-tests,/security-check…).
The pieces¶
flowchart TB
A[Release Readiness Agent, in Claude Code]
subgraph Evidence["Producing evidence"]
UI[UI and mobile: Playwright · Selenium · Appium QA] ~~~ API[APIs: Contract · Functional · Security QA]
INT[Integration QA: Kafka, consumers, jobs] ~~~ PERF[Performance QA]
LLM[LLM Assure] ~~~ J[Your own tests: JUnit XML]
UI ~~~ INT ~~~ LLM
end
QA[(.qa-mcp/ reports)]
G[Release Gate: policy → verdict]
CI[GitHub Action: one comment per PR]
A --> Evidence --> QA --> G --> CI
| Layer | Tools | What they produce |
|---|---|---|
| UI | Playwright QA, Selenium QA, Appium QA | Tests from user stories with verified locators; self-healing of broken locators, with an audit report (heal-report.json) |
| API | API Contract QA | Which consumers a contract change breaks, and why (contract-report.json) |
| API Functional QA | Multi-step API flows with database checks, negative tests from the spec (api-test-report.json) |
|
| API Security QA | OWASP API Security Top 10 tests as real test users, plus scanner results judged against a baseline (security-report.json) |
|
| System | Integration QA | Flows across APIs, Kafka messages, consumers, dead-letter queues, batch jobs and databases (integration-report.json) |
| Performance QA | Load tests from your API flows, SLOs per endpoint, statistically significant regressions (perf-report.json) |
|
| AI | LLM Assure | Red-team assessments of chatbots, RAG apps and agents against the OWASP Top 10 for LLM applications (assessment.json) |
| Decision | Release Gate | One verdict from all of the above under your policy (release-decision.json) |
| Release Gate Action | The gate on every pull request, as a comment | |
| Release Readiness Agent | The whole process from Claude Code: plan, gather in parallel, decide, explain |
You don't need all of them. The gate works with whatever evidence you have, including nothing but the JUnit files your existing tests already write.
How evidence flows¶
- You describe your system once in
.qa-mcp/: environments, test users, the test database, who consumes your API, your release policy. Several tools share the same settings. - Each tool tests and writes a report to a known folder in
.qa-mcp/: Markdown for people, JSON as evidence. - Release Gate reads every report it finds, recognising each by its content, checks it is fresh, applies the policy, and writes one decision with every reason and the SHA-256 of every evidence file.
- In CI, test jobs upload their reports, and the gate job downloads them back into
.qa-mcp/and posts the decision on the pull request.
Appendix A describes every file in .qa-mcp/.
Design principles¶
The same principles run through all the tools; knowing them makes the tools predictable.
Verify, don't guess. A locator is returned only after it is checked to match exactly one element. A healed locator is applied only if the test passes with it. A contract change is "breaking" only if a rule says so, and it names the rule.
Ask before you build. Before generating tests from a story or a load plan, the tools list what a careful tester would ask, and the agent asks you instead of guessing (Chapter 4).
Deterministic where it matters. The release decision, contract classification, security verdicts and story reviews use rules, not a model. The same input gives the same output, so results can be tested and audited. Models write and reason; rules decide.
Safe by default. Nothing writes to production. Environments with production-like names are refused for data-changing tests and load. Secrets come from environment variables and are masked in every report. Tools that edit code (healing) default to a dry run.
Honest results. An inconclusive result is reported as inconclusive, not as a pass. A security test whose control request failed doesn't count as passed; a load test with too few samples isn't compared with the baseline.