Borrowing it
Nothing to install: this file belongs to gleanwork/mcp-server-tester. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/gleanwork/mcp-server-tester/main/AGENTS.mdgit clone --depth 1 https://github.com/gleanwork/mcp-server-testerWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/gleanwork/mcp-server-tester/agents-md)<a href="https://agentmods.dev/instructions/gleanwork/mcp-server-tester/agents-md"><img src="https://agentmods.dev/badge/instructions/gleanwork/mcp-server-tester/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/gleanwork/mcp-server-tester/agents-md"><img src="https://agentmods.dev/badge/instructions/gleanwork/mcp-server-tester/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.07248 | $0.07248 |
| Opus 5.5 | $0.02899 | $0.02899 |
| Sonnet 5.5 | $0.01450 | $0.01450 |
| Haiku 4.5 | $0.00725 | $0.00725 |
Grade A, and why
mcp-server-tester AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 402 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
This file provides guidance to coding agents when working with code in this repository.
Project Overview
@gleanwork/mcp-server-tester is a Playwright-based testing and evaluation framework for Model Context Protocol (MCP) servers. It provides Playwright fixtures for automated testing and data-driven eval datasets with optional LLM-as-a-judge scoring.
Common Commands
# Build (includes UI reporter build)
npm run build
# Unit tests (Vitest)
npm test # Run all unit tests
npm run test:watch # Watch mode
npm test -- src/mcp/clientFactory.test.ts # Run single test file
npm test -- -t "creates client" # Run tests matching pattern
# Integration tests (Playwright)
npm run test:playwright
# Code quality
npm run typecheck # TypeScript validation
npm run lint # ESLint
npm run lint:fix # Auto-fix lint issues
npm run format # Prettier formatting
npm run format:check # Check formatting
Architecture
Core Modules (src/)
config/-MCPConfigtypes and Zod validation for stdio/HTTP transports,protocolMatrix()mcp/- Client factory (createMCPClientForConfig), fixtures (MCPFixtureApi), protocol selection (protocol.ts), wire tap, and response normalization. Built on the MCP TypeScript SDK v2 (@modelcontextprotocol/client).mcp/connection.tsis the one record of what MST knows about a client it created (requested protocol, connection target for raw probes, wire tap, owned undici agent); read it withconnectionOf(client), and add new per-connection facts there rather than in a new side tableskills/- Agent Skills over MCP (SEP-2640): wire schemas, entry validation, and a skills client (the SDK has no skills API yet)auth/- OAuth 2.1 with PKCE (PlaywrightOAuthClientProvider) and static token utilities.auth/grants/holds connectors and refresh grants: connector lookup and grant grouping (connectors.ts), sign-in, refresh and revocation (grants.ts), and the built-in credential storemst/credential-store/local(localStore.ts). A run stages and renews connector tokens inevals/connectorServers.tsassertions/- Unified assertion architecture (see below)evals/- Dataset types, loader, and runner (uses validators internally).evals/caseExecution.tsis the only place a case runs: every path (themstclient on a Playwright test's connection, an eval's client, a customexecuteCase) returns a typedCaseExecution(completedorfailed), and the runner reads its fields instead of inspectingresponse.caseExecution.golden.test.tspins the resultingEvalCaseResultfor every path.evals/grading.tsgrades a case'sassertionsblock: it decides once whether the evidence can support tool-call assertions (toolEvidenceGap), builds thetoolCallTraceview, resolves judge settings (including the eval config's judges), then calls the validators. Desktop clients (Cowork, ChatGPT) run batches throughevals/desktopBatch.ts(lease, per-case reset policy, failure diagnosis before a reset, client-native session ledger, redaction, cleanup) and share one MCP readiness rule (isMcpServerReadyinevals/mcpReadiness.ts); a new desktop client supplies only prepare, one case, reset, an optional diagnose and dispose. macOS Swift controllers build and run throughevals/nativeHelper.ts, which owns their environment policyllm/-resolveLLMEndpoint(): the one place MST's own LLM calls (SDK client, judges) get their base URL and credential, including gateway bearer tokens andMST_LLM_AUTH_COMMAND. New LLM consumers resolve through it rather than reading*_API_KEYthemselves. Seedocs/llm-gateways.mdevals/runFormat.ts- Themst.run/v1run directory: run IDs, paths, the writer and the Zod schemasschema/run/v1/is generated from (npm run schema:generate)judge/- LLM-as-a-judge.llmJudge.tsis the one core (prompt, verdict parser, output guard); each provider inJUDGE_PROVIDER_KINDS(anthropic,vertex-anthropic,anthropic-agent-sdk,openai,google) is a completion adapter mapped injudgeClient.ts.judge/agentic/holds agentic judges (agenticJudge,agenticPairwiseJudge), which run an agent over a workspace of the trial's evidence on theclaude-agentorcodexruntime, andstagedPairwiseJudge(stagedJudge.ts), which runs a staged judge: a serialized bundle of files, prepare programs and agent stages.builtinJudges.tshas the built-inrubricjudgeproxy/- The dry-run proxy (dryRunProxyServer()), which a connector'slaunchputs in front of a vendor server to let reads through and block writes, and simulated writes (simulatedWrites.ts), which answer blocked writes with a success reply when an eval config setssimulateWritesevals/environments/- Where trials are collected (ADR 0004): theenvkind's built-inslocal(builtinEnvironments.ts) anddocker(docker.ts: containers from the Linux Cowork image indocker/cowork-linux/, one per Docker context at a time, over the Docker CLI;dockerContainers.tsremoves them when MST exits or its process is gone;mst env setup dockerbuilds the image), the channel helpermachineEnvironment(channel.ts), themst.shard/v1messages (protocol.ts), the coordinator's sharded collect (shardedCollect.ts), the worker behind the hiddenmst collect(collect.ts), and the run-widelimits(limiter.ts)plugins/- ESLint-style plugins: thePluginshape and validation (plugin.ts), the process-wide extension table keyed by<namespace>/<kind>/<name>(names parsed and kind-checked inplugin.tsandextensions.ts), where each kind's lookup (next to its built-ins) adds them under bare names (extensions.ts), and the loader (loadPlugins.ts).evals/evalPlugins.tsloads an eval's plugins and checks it only references namespaces it loads. Domain terms are inCONTEXT.md; decisions indocs/adr/spec/- Conformance check registry (checks/core.ts,checks/modern.ts,checks/skills.ts), raw probe channel, and cross-era checksreporters/- The run report UI (React) and the MCP Playwright reporter, which reports evals only: each Playwright run's eval results are amst.run/v1run (a variant per project) with the same reportmst runwrites (evals/runReport.ts). Tests and conformance checks are in Playwright's own reporter.reporters/channel.tsowns every attachment the reporter reads (names, payload types, read-side Zod schemas). Write withattachReporterData(testInfo, { kind, data }), nevertestInfo.attach('mcp-...')directlycli/- The CLI, shipped asmstandmcp-server-tester(the same binary):init,generate,login,token,auth,datasets,judges,run,grade,batch,cowork,open, and the hiddencollectthat a worker runs
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 8d ago Changed · +1 lines · +111 tokens per session 31427966ef71
- 10d ago Changed · -16 tokens per session 7467e8be15b2
- 13d ago Changed · +26 tokens per session b855b022e25e
- 14d ago Changed · +53 lines · +535 tokens per session 59b2cfdd8835
- 16d ago Changed · +1 lines · +174 tokens per session b9f756d98aa2
- 17d ago Changed · +3 lines · +473 tokens per session 9257d78e76d4
- 18d ago Changed · +6 tokens per session 95291147f3d7
- 19d ago Changed · +1 lines · +145 tokens per session e8acef7e31aa
- 20d ago Changed · -8 lines · +59 tokens per session d96b390b75c1
- 21d ago First seen · 351 lines · 5,735 tokens per session scan A dacb8b85691e
mcp-server-tester AGENTS.md is an instructions file published in the GitHub repository gleanwork/mcp-server-tester (19 stars, last pushed yesterday), licensed MIT. It adds 7,248 tokens to every session, about $0.0290 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
deno copilot-instructions.md
Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.