Skip to main content

Connect agents and chat clients with MCP

Experimental
Experimental

qa mcp, its tools and their answers may change without notice. Tell us what your agent got wrong in GitHub issues. qa mcp isn't in the latest release on PyPI yet: see Installation.

qa mcp serves QA-Board's results to coding agents (Claude Code, Codex, Cursor...) and chat clients (Claude Desktop, VS Code's chat, Open WebUI...) over the Model Context Protocol. Ask "Is my commit better than main?" or "How did the nightly do this week?": the agent compares the runs with the reference's, looks at the outputs that changed most, and answers with the links to the pages that show it, so you can check.

It answers questions, it doesn't mirror the HTTP API: scripts keep using qaboard.runs(url) and the HTTP API.

Connect your agent​

Install qa with the MCP extra, sign in once, then add the server to your client:

pip install "qaboard[mcp]"
qa auth login https://qaboard.example.com
Open WebUI, or another client of your QA-Board server

Your QA-Board server can also serve MCP itself, at https://<your-qaboard>/mcp, for chat clients that only connect to remote servers, such as a self-hosted Open WebUI: nothing to install. An admin turns it on and registers the client (Connect MCP clients); then connect it from a chat's tools. QA-Board asks you once to allow the app, which then reads QA-Board as you, with read-only tokens. Its tools are the same, without check_gate.

Claude Code
claude mcp add qaboard -e QABOARD_URL=https://qaboard.example.com -- qa mcp

Start it from your project's checkout: check_gate reads its qaboard.yaml.

Claude Desktop

In Settings → Developer → Edit Config, add to claude_desktop_config.json:

{
"mcpServers": {
"qaboard": {"command": "qa", "args": ["mcp"], "env": {"QABOARD_URL": "https://qaboard.example.com"}}
}
}

Give the full path of qa if Claude Desktop doesn't find it (which qa).

VS Code, Cursor, Codex

VS Code, in .vscode/mcp.json:

{"servers": {"qaboard": {"command": "qa", "args": ["mcp"], "env": {"QABOARD_URL": "https://qaboard.example.com"}}}}

Cursor takes the same in .cursor/mcp.json, under mcpServers. Codex: codex mcp add qaboard -- qa mcp.

qa mcp uses your credentials, like qa: what qa auth login saved, or QABOARD_TOKEN. A token with only the read scope is enough, and it's what we recommend for agents: create one in the web app, Settings → Tokens. It only sends them to your QA-Board server: links to other servers need a qa auth login there, and image servers on other hosts get no token.

Without a commit, the tools use the commit checked out where qa mcp runs if it has results, else the project's latest commit with results, and say which. Remote clients (qa mcp --http) get the project's latest commit with results.

What to ask​

  • "Did my change improve the detector? Check with QA-Board before saying so."
  • "How did my tuning from yesterday go? Which values were best?" The agent starts from what you ran.
  • "Prepare a tuning of the threshold from 0.1 to 0.5 on the night batch." You get a link to the form, filled in.
  • "Review https://qaboard.example.com/group/repo/commit/abc123?batch=ci for me." Paste any commit page: the agent reads the project, commit, label and reference from the URL.
  • "Why did runs fail on my last commit? Are the failures new?"
  • "Show me where the output images differ from the reference on the worst test."
  • "How did psnr evolve on main for the nightly label this month? Which commits made it drop?"

Clients that show MCP prompts offer three procedures as commands: did_my_change_help, review_results and nightly_report (in Claude Code: /mcp__qaboard__did_my_change_help).

What the agent sees​

ToolAnswers
compareIs this commit better than its reference? Per metric: the medians of the Summary and their change, the median change per test, how many tests got better and worse and whether consistently, the tests that moved most, failed runs (new or not), and the link to the Metrics Diff.
failuresWhy runs failed: the failed runs grouped by the error at the end of their logs, with an excerpt, and whether the same test failed in the reference.
look_at_outputA run's files and their types, the changed ones first; any of them next to the reference's, by its type, like the web app's viewers: images (whole, and where they differ most, in any format the image viewer opens), benchmarks, flame graphs, series such as training curves, test reports (JUnit), Plotly figures, logged media; text files as a diff; the end of the log.
metric_historyMedians per commit on a branch, like the History page, with the biggest steps and the commits that made them.
my_workWhat you ran lately, across projects: your batches and tunings from the web app or a terminal, by project and branch, with run counts, failures, unfinished runs, the default metric and links, and the milestones you saved. Not the CI's runs: in a monorepo most have nothing to do with your work. With a project, it can add the CI's results on your own commits.
prepare_tuningA link that opens a commit's Run Tests / Tuning form filled in: the batches, the values to try, the label. It checks the batch names and counts the runs, and starts nothing: you check the form and start it.
find_resultsProjects, their latest commits with results, labels, run counts and milestones.
runs_tableOne row per run (input, status, the parameters that differ, metrics) as CSV, for the agent's own analyses.
check_gateThe quality gate's verdict, rule by rule, when qa mcp runs on your computer in the project's checkout. It's the verdict CI trusts; compare is the evidence.

The numbers are the server's, the same as the web app's. With each answer, the agent gets the links to the web app pages that show it: give them to the people who review the change.

Tests that moved in the same direction say more than a median: compare counts them and says whether they moved consistently (a sign test, which needs at least 6 tests). QA-Board doesn't know yet how much a metric moves between identical runs, so an agent shouldn't call a small change of a noisy metric, such as a latency, an improvement without repeated runs.

Your work, and new tunings​

Agents in a chat client don't know what you work on: my_work tells them, from what you started yourself. Ask about "my tuning" or "what I ran this week" without links.

To try other values, the agent prepares the tuning and you start it: prepare_tuning gives a link to the commit's Run Tests / Tuning, filled in with the batches, the values and the label. The form shows what the link filled in, and nothing runs until you click start, so you check what the agent asked for, and change what you want, in the form you know (links that fill the form). Then ask the agent how it went.

An agent's own experiments​

Have the agent label its runs, qa --label agent/denoise batch --commit <sha> ci. compare compares them with the reference's CI runs when the reference has none with that label, and says so; to compare two experiments, give the other one as reference (its commit) and reference_label. metric_history with label follows them over commits.

Charts and images in the conversation​

Clients that render MCP Apps (Claude, Claude Desktop, VS Code GitHub Copilot, Microsoft 365 Copilot, Open WebUI, Goose...) show the answers of compare, metric_history and look_at_output in an interactive view: the metrics table with the tests that moved most, charts of metrics over commits, images side by side, tables and curves of the other outputs. Click a test to see its images, a point to open its commit, and Ask about... to send the question to the chat. Other clients, such as Claude Code in a terminal, get the same answer as text, and the agent sees the images.

The view loads nothing from the internet. Images are converted to 8-bit PNG by your server's image server: small differences of high bit-depth outputs may not show, check them in the image viewer.

What agents can't do with it​

  • Change or start anything. Every tool only reads. prepare_tuning gives you a link to the form filled in, and you start it. A coding agent can push its change and run qa --label <name> batch --commit <sha> <batch> (start batches from a terminal).
  • Follow instructions written in your results. Logs, commit messages and inputs' names are shown to the model as quoted data. Keep the agent's other permissions to what the task needs anyway: a log can say anything.
  • Connect from claude.ai or Microsoft 365 Copilot. They reach MCP servers from their own cloud, which can't reach a QA-Board server inside your network, and they register their clients dynamically, which QA-Board doesn't support yet. Clients you host, like Open WebUI, connect to your server's MCP endpoint.
  • Coding agents
    Skills that teach agents to integrate a project and to read results.
  • Quality gate
    The verdict CI trusts, rule by rule.
  • HTTP API
    Results from scripts, in any language.