testgen-eval
This server exposes a single tool, generate_test_suite, to generate structured test suites from software requirements by delegating to the testgen service.
Generate test suites from requirements: Provide a requirement or user story and receive a structured test suite covering functional, negative, boundary, security, and usability test cases.
Pass extra instructions: Optionally supply guidance (e.g.,
'focus on security and boundary cases') to steer the kinds of tests generated.Select the Claude model: Optionally specify which Claude model to use for generation.
Integrate via MCP protocol: The tool is callable by any MCP client, treating
testgenas an external service; it can also be explored standalone (e.g., via@modelcontextprotocol/inspector) without the full eval pipeline.
Note: Requires
testgen serveto be running locally athttp://127.0.0.1:8000.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@testgen-evalGenerate test suite for user registration with email verification."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
testgen-eval
An agent that tests another agent. testgen
generates test suites from requirements using Claude; testgen-eval calls it
over MCP, runs a deterministic gate plus an LLM-judge pass against a written
quality rubric, and reports back what's good, what's weak, and what's
outright broken.
npm run batch -- sample-requirements.json out/
open out/report.htmlWhy this exists
This is the second half of a two-project pair built to practice things a single CLI tool doesn't force you to learn: MCP as a real client/server boundary, spec-driven development (writing down what "good output" means before building the thing that judges it), and — the part most worth a second look — a framework for agents that evaluate other agents. As LLM agents show up more in test automation, "how do you know the agent's output is actually trustworthy" becomes the real question, and this project is a concrete answer.
testgen-eval doesn't reimplement testgen. It treats it as an external
service, reachable only through the MCP tool generate_test_suite — the
same constraint a real third-party client would have.
Related MCP server: Swagger Testcase MCP
How it works
flowchart TD
R[Requirement + instructions] --> MCP[MCP client]
R --> CLS[Classifier]
MCP -->|generate_test_suite| TG[testgen HTTP API] --> TS[(TestSuite)]
CLS -->|"security/NFR-sensitive?"| SENS[(sensitivity verdict)]
TS --> GATE{Gate<br/>deterministic}
GATE -->|fail| REJECT[Rejected - reported, not judged]
GATE -->|pass| JUDGE[Judge - LLM, one call]
SENS --> JUDGE
JUDGE --> REPORT[Report<br/>markdown / json / html]
REJECT --> REPORT
REPORT --> SUMMARY[Batch summary<br/>pass rate, avg score, worst offenders]Each requirement goes through the same five stages (full breakdown in ARCHITECTURE.md):
MCP client spawns
testgen-eval's own MCP server and callsgenerate_test_suite— the only way this harness talks totestgen.Classifier — a separate, small LLM call judging whether the requirement is security/NFR-sensitive (auth, payments, PII, rate limiting). Runs concurrently with generation; the result feeds the gate check below rather than being decided ad hoc.
Gate — plain TypeScript, no LLM. Rejects a suite only if it's genuinely unusable (empty IDs, cases with no steps, an empty feature name). A suite that passes the gate is usable; it isn't necessarily good.
Judge — one structured LLM call scoring a gate-passed suite against ten quality criteria (concreteness, realism, duplication, whether
instructionswere actually reflected, missing security coverage for sensitive requirements, scenario conflation, and more) — see SPEC.md for the full rubric and the reasoning behind it.Report + batch summary — every requirement gets its own report (markdown, JSON, or HTML); a full batch also gets one aggregate summary (gate pass rate, average score, worst offenders, and any pipeline failures called out separately from low scores).
What "good" means
The rubric lives in SPEC.md, not in this README, because it's meant to be read on its own and argued with. The short version: the gate only protects against a test case being non-actionable — a tester literally can't execute it. Everything about completeness, realism, or polish is a scored quality signal, never a rejection reason.
Setup
Requires testgen running locally — this harness calls it, it doesn't embed
it:
cd ../testgen
.venv\Scripts\activate # macOS/Linux: source .venv/bin/activate
testgen serve # stays up at http://127.0.0.1:8000Then, in testgen-eval:
npm installBoth testgen and testgen-eval read ANTHROPIC_API_KEY from the
environment.
Usage
Run a batch through the full harness
npm run batch -- <requirements.json> [outDir]requirements.json is a JSON array:
[
{
"requirement": "Users must be able to reset their password via an emailed link.",
"instructions": "focus on security and boundary cases"
},
{ "requirement": "Users can toggle dark mode from the settings screen." }
](sample-requirements.json in this repo is a ready-to-run example.)
Each run writes three things to outDir (defaults to out/):
File | What it is |
| One line per requirement, appended as it completes — survives a crash mid-batch. |
| The aggregate: gate pass rate, average score, worst offenders, pipeline errors. |
| One self-contained page: stat strip, error banner, and a full scorecard per requirement. Open it in a browser. |
A pipeline failure on one requirement (a timeout, a malformed response)
doesn't abort the batch — it's isolated, logged into results.jsonl and the
error banner, and the rest of the batch keeps going.
Try just the MCP server
The harness's own MCP server (generate_test_suite) can also be driven
directly, without the eval pipeline around it — useful for seeing the
protocol itself:
npx @modelcontextprotocol/inspector tsx src/index.tsProject structure
src/
testgenClient.ts testgen's HTTP API client
server.ts the MCP server and its one tool
index.ts MCP server entrypoint (stdio transport)
harness/
mcpClient.ts MCP client - reuses one connection across a batch
classifier.ts requirement sensitivity classification
gate.ts deterministic structural checks
judge.ts LLM-judge quality scoring
report.ts per-requirement report (markdown / json / html)
batch.ts aggregate batch summary (markdown / json / html)
htmlPage.ts assembles the two html fragments into report.html
htmlEscape.ts XSS-safe escaping for LLM-sourced content
run.ts orchestrates everything, loops over a batchDevelopment
npm testCovers everything deterministic — gate.ts, report.ts's and batch.ts's
renderers — offline, no API calls. classifier.ts, judge.ts,
mcpClient.ts, and run.ts call real LLMs/APIs, so they're smoke-tested by
hand rather than covered by the automated suite.
Roadmap
Resume a partially-completed batch instead of always starting over.
Model test layer (UI vs API) in
testgenso type-coverage can become a real scored criterion instead of an informational one (see SPEC.md).Additional input sources beyond a hand-written JSON file.
Related
testgen— the agent under test.SPEC.md — what "good" means for a generated test suite.
ARCHITECTURE.md — the harness's components and the decisions behind them.
License
MIT
Available Tools
1 toolgenerate_test_suiteGenerate test suiteA
Generate a structured test suite (functional, negative, boundary, security, usability cases) from a requirement or user story, using the testgen tool. Requires testgen serve to be running locally.
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Claude model to use (defaults to testgen's configured default). | |
| requirement | Yes | The requirement or user story to generate test cases for. | |
| instructions | No | Extra guidance, e.g. 'focus on security and boundary cases'. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden of disclosing behavior. It mentions that the tool uses an external process (`testgen`) and requires a local server, but does not state whether the operation is read-only, destructive, or has side effects. Some behavioral gaps remain.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two sentences, front-loaded with the core action, and contains no unnecessary words. Every sentence provides value: the first defines the tool's output, the second specifies the prerequisite.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the low complexity (3 parameters, no nested objects, no output schema), the description covers the main purpose, listed test types, and the external tool dependency. The return format is implied but not explicit, which is acceptable for a straightforward generation tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents all parameters. The description adds minimal extra meaning beyond the schema (e.g., 'from a requirement or user story' aligns with the 'requirement' parameter). Baseline score 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool generates a structured test suite from a requirement or user story, listing specific test types (functional, negative, etc.). The verb 'generate' and resource 'test suite' are unambiguous, and the mention of using the 'testgen tool' further clarifies the action.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description explicitly notes the prerequisite: 'Requires `testgen serve` to be running locally.' This provides essential context for when the tool can be used. Although no sibling tools exist to differentiate, the usage context is clear.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
1 tool update
v0.1.0- First observed
generate_test_suite
TDQS
Only one tool exists, so there is no risk of confusion between tools. The agent will correctly select generate_test_suite for its intended purpose.
The single tool name 'generate_test_suite' follows a clear verb_noun pattern, which is a common and predictable convention. Consistency is not an issue with only one tool.
The server has only one tool, which is on the lower end of the acceptable range. While it might be sufficient for a very focused purpose (generating test suites), the scope feels thin compared to typical servers in this domain.
The tool provides a single operation for test suite generation. Missing are related operations like listing, updating, or exporting suites, but for a narrowly scoped 'eval' server, it may be acceptable. However, obvious gaps exist for a full test management workflow.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
MCP server exposing the Backtest360 engine API as tools for AI agents.
An MCP server that provides access to Testiny projects, test cases and test runs
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
MCP server for AI access to SmartBear tools, including BugSnag, Reflect, Swagger, PactFlow, QTM4J.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceThis MCP server provides a tool to generate manual test cases in Markdown or CSV format from documentation files and custom rules. It supports text and PDF inputs and can leverage LLM sampling to automate the creation of detailed test scenarios.-
- AlicenseAqualityFmaintenanceMCP server for API test case generation from Swagger/OpenAPI specs. Parses Swagger 2.0 and OpenAPI 3.x, generates test cases across 8 categories (positive, negative, boundary, auth, security, idempotency, pagination, business logic), and exports to Postman, TestRail, Allure, k6, pytest, Gherkin, and CSV. Supports internal corporate APIs with auth headers. Auto-saves export files to your working di10142MIT
- AlicenseBqualityAmaintenanceAI-native Model Context Protocol (MCP) server for TestRail. Lets Claude, Cursor, Windsurf, and other AI assistants browse projects, create and update test cases, kick off test runs, and record results through natural-language conversation — with strongly-typed tool schemas and per-project custom field validation that helps LLMs generate valid TestRail requests on the first try.271,23633Apache 2.0
- FlicenseNot gradedqualityDmaintenanceLocal MCP server that exposes fixed tools for GPT, Claude, and Gemini while routing to any OpenAI-compatible chat completions backend with independent configuration per target.1-
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/nishant20/testgen-eval'
If you have feedback or need assistance with the MCP directory API, please join our Discord server