Runs MCP evals with mst, covering config checks, small runs, reading pass rates, comparing variants, handling failures, resuming, regrading, Docker, and CI.
Ships in mcp-server-tester. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
mst run runs an eval config: every case on its variant's client and model, then the graders. This skill is about running it and reading the result. To write the dataset or the eval config, use write-mcp-eval. To decide whether a judge's verdicts can be trusted, use calibrate-mcp-judge.
Every command below is npx mst ... in a project that has @gleanwork/mcp-server-tester installed.
npx mst run --config eval.json --dry-run
--dry-run loads the config, its plugins and its datasets, and prints the eval's name, output directory, datasets, variants and runner as JSON. It catches unknown keys, plugins and config-level extension names that don't resolve, datasets that don't load, a case that sets client options its variant's desktop app can't take, and a --variant or --case the config doesn't have. A case's own plugin judge is checked only for its namespace: a misspelt judge name in a loaded plugin fails when the run grades. Fix what it reports before you spend tokens.
Then check the credentials the run needs:
npx mst clients lists each client's install, credentials and setup. For example, api with Anthropic needs ANTHROPIC_API_KEY, and codex-cli needs OPENAI_API_KEY (a Codex sign-in is not enough).auth.accessTokenEnv names an environment variable. Connector servers need mst auth --config eval.json once.A server that lists tools that aren't annotated read-only stops the run when it starts (MST can't see these servers' writes), unless a connector's dry-run proxy guards it or the config accepts its writes with "writes": { "<label>": "unguarded" }. The write-mcp-eval skill's references/eval-configs.md has the write modes.
Keep keys out of the config. Put them in a file and pass --secrets-file run.env (JSON or dotenv). Results replace values named as credentials (*_TOKEN, *_KEY, ...). A local run also reads the environment. A worker in Docker or another runner doesn't inherit this machine's environment, so put what its client and servers need in the secrets file.
Decide now whether you may resume, regrade or label this run later. Each needs the run's full transcripts, which MST redacts by default, so set "redactStoredResponses": false in the eval config before you run (Step 5).
A full run costs money and time, and with many trials or a desktop client it can run for a long time. Start with one case and one trial:
npx mst run --config eval.json --case search-recent-docs --trials 1
npx mst run --config eval.json --filter-tag smoke --max-cases 3
npx mst run --config eval.json --variant baseline
--case, --filter-tag, --max-cases, --trials and --variant make a partial run. A partial run is compared only with partial runs narrowed the same way, and never becomes the eval's latest run. When the small run looks right, run the whole config:
npx mst run --config eval.json --secrets-file run.env
mst run prints one row per variant:
!, and the output says what to do: set "run": { "trials": N } in the eval config and run it again, or add cases when more trials won't help. Believe the range, not the point.pricing.better, worse or unclear, with the cases that regressed or improved. No change is shown when the config changed between the runs (sameConfig: false).It prints the run's directory and the report's mst open command. It exits 1 when any case failed or is incomplete (Step 4). Open the report for everything else:
npx mst open .mcp-test-results/my-eval/runs/20261007T182504Z-7f3c2a # the run mst run printed
npx mst open .mcp-test-results/my-eval # that eval's latest full run
A bare mst open opens the newest full, graded run. A partial run, a --no-grade run or a regrade of an older run never becomes the latest, so open it by its directory.
The report's sections are Result (each variant clearly better, clearly worse or unclear against the baseline), Variants compared, What differs (each variant's setup next to the baseline's), Case by case (every trial's transcript and scores) and Why trials failed. Read the failing trials' transcripts before you change anything: the client may have called the right tool with the wrong arguments, or not called a tool at all.
mst open opens the report in the user's browser. An agent reads the run's files instead, in .mcp-test-results/<eval name>/runs/<run-id>/: summary.json has the per-variant totals, results.json every case result, transcripts/<variant>/<case-id>/<trial>.json what the client did in each trial, and scores/<grader>/<variant>/<case-id>/<trial>.json each grader's score and reasoning. Without "redactStoredResponses": false, transcripts have no answers or tool outputs. A run ID's last six characters (7f3c2a) are its short form, which every command below accepts.
A trial ends one of two ways:
setup, network, provider, client-app, workspace, collection or deadline). It is not a failed trial. Its case is incomplete: neither passed nor failed, and left out of the pass rates.mst run says how to finish incomplete cases. The usual causes:
MCP server not ready, so no trial was sent. Before a batch's first trial, MST connects to each server and lists its tools, with retries after 10 s and 30 s. A server that never connects or lists no tools blocks its batch. Check the server's command or URL and its token, then finish the run.503 or a rate limit. Finish the run.To finish a run, resume it in a runner (--resume <run> --runner docker, Step 5). A run collected locally can't be resumed locally: run its incomplete cases again with --case.
Both need the run's full transcripts. Set this in the eval config before the run you want to resume or regrade:
"redactStoredResponses": false
The default redacts answers and tool outputs from stored files. A redacted run can't be resumed, graded again or labeled on mst label's page.
npx mst run --config eval.json --resume 7f3c2a --runner docker # collect only the missing trials
npx mst grade 7f3c2a --config eval.json # grade the stored transcripts with today's graders
npx mst grade 7f3c2a.g2 --config eval.json --resume # run only the judges that failed to run
run --resume collects only the trials that are missing or ended in a retryable infrastructure failure, then grades the whole run again. Only a runner collects trials, so a run collected locally needs --runner, or run its cases again with --case.grade runs no client. It grades the stored transcripts with the config's assertions and judges as they are now, and writes a new run, <run-id>.g2, then .g3. Use it after you change a judge, a threshold or an assertion.--no-grade collects without grading, for grading later or somewhere else: mst run --config eval.json --no-grade, then mst grade.grade --resume keeps every verdict the run has and runs only the judges that timed out or failed. It refuses when the judges changed. Grade in full then.--runner docker runs trials in containers from MST's Linux images: the ChatGPT image for chatgpt and codex-app, else the Claude Desktop image. Build the image once with mst runner setup docker --config eval.json. --runner-option shards=4 splits cases over four containers. Each Docker context runs one Claude Desktop container at a time, so four cowork shards run side by side only with four contexts (--runner-option contexts=a,b,c,d).--detach runs the coordinator on a machine a plugin runner creates, so your machine can go offline. It needs --runner, a result store other machines reach (--results gs://bucket/prefix), secrets in --secrets-file, and for connector servers a shared credential store (--store). Follow it with mst runs list, mst runs watch <id> and mst runs logs <id>, each with the same --config and --results. mst runs cancel <id> stops it and keeps what it collected.mst batch --config-dir ./evals --workers 2 runs every eval config in a directory, and exits 1 when any failed. --skip-existing skips configs whose result store already has a completed run.--secrets-file, written from the CI's secrets. When trials run in Docker or another runner, its workers get the file's values, not the CI machine's environment.mst run exits 1 when a case fails or is incomplete, so an infrastructure failure fails the job too. An eval whose cases pass only some of the time fails some jobs: set trials and passThreshold on those cases rather than retrying the job.--results gs://bucket/prefix, or results.store in the config). The previous run is then the store's newest one, so a fresh CI machine still compares with the last run..mcp-test-results/<eval name>/runs/<run-id>/report/ as an artifact to read it later.--dry-run costs nothing and catches most config errors.unclear, add trials in the config or add cases. --trials on the command line makes a partial run that isn't compared with full runs."redactStoredResponses": false before the run, not after.mst grade grades the stored transcripts again without paying for the clients.run, grade, batch, open, runs and env setupWhat SKILL.md sets; muted values are Claude Code's defaults
/mcp-server-tester:run-mcp-evalfrom mcp-server-tester
npx claudepluginhub gleanwork/mcp-server-tester --plugin mcp-server-tester6 skills in this plugin
/calibrate-mcp-judgeDecide how far to trust an LLM judge in an MST eval by measuring it against your own labels. Covers choosing a judge that can be checked, collecting a run to label, labeling trials with mst label, measuring the judge with mst judges check, reading TPR, TNR, kappa and unknown, improving a judge without fitting it to the labels, and when a calibration goes stale. Use when asked whether a judge is accurate or can be trusted, to calibrate or validate a judge, to label trials, to check judge agreement, or when judge scores look wrong./mcp-tester-guideReference for @gleanwork/mcp-server-tester (MST) 2.0, the Playwright-based testing and evaluation framework for MCP servers, with the `mst` CLI. Covers which skill to use for a task, the vocabulary (test, eval, case, client, variant, trial, assertion, judge), entry points, server config and auth, clients, judges, plugin names, CLI commands, what 1.x names became, and common mistakes. Use when working on MCP server tests or evals, or reading or upgrading code that uses MST./optimize-mcp-tool-metadataImprove an MCP server's tool metadata (tool names, descriptions, input schema descriptions) with measured evidence, using `mst optimize` (start, evidence, try, finish), runToolOptimization from @gleanwork/mcp-server-tester/evals, or `mst run` with tool-metadata variants. Use when asked to improve tool descriptions, fix tools a model misses or over-uses, optimize tool discoverability, or compare description rewrites. Produces a recommendation with the exact metadata to apply; never edits the server or the dataset unless asked./write-mcp-evalWrite evals for MCP servers with @gleanwork/mcp-server-tester (MST). An eval gives a client and model the cases of a dataset (an input, what is expected, and assertions) and grades each trial's transcript. Run the cases in a Playwright test with runEvalDataset on the api client, or with `mst run` and an eval config that compares variants (servers, client, model, system prompt, tool metadata). Use when asked to write evals, eval datasets or eval configs, to test whether a model picks the right tools, or to compare MCP server setups./write-mcp-testWrite Playwright tests for MCP servers with @gleanwork/mcp-server-tester (MST). A test calls a server's tools (or sends any MCP request) directly through MST's fixtures and checks the result with its matchers, with no client or model involved. Use when asked to write MCP tests, test MCP tools, check tool responses, errors, schemas or snapshots, run conformance checks, or turn tool checks from a JSON file into tests.Other plugins' skills for the same job