Author verifiable eval records through a draft→review→revise→submit loop with enforced graders.
Runs on your machine from its package; the steps are below.
At most: moves money, runs code or commands, deletes data, or sends messages for you.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
npx -y @cyanheads/evals-mcp-server
MCP client config
{
"mcpServers": {
"evals": {
"command": "npx",
"args": [
"-y",
"@cyanheads/evals-mcp-server"
]
}
}
}Run
npx -y @cyanheads/evals-mcp-server
MCP client config
{
"mcpServers": {
"evals": {
"command": "npx",
"args": [
"-y",
"@cyanheads/evals-mcp-server"
]
}
}
}Author verifiable eval records through a draft → review → revise → submit loop with server-enforced graders; compile to JSONL/CSV/Inspect/lm-eval via MCP. STDIO or Streamable HTTP.
Build verifiable eval records with server-enforced graders. Draft a record with its own executable grader, revise it field by field, and submit through a gate that requires the gold answer to pass, a negative case to fail, and an independent check to agree. Export to JSONL, CSV, Inspect AI, or lm-evaluation-harness.
| Tool | Description |
|---|---|
evals_describe_schema | Return the required and optional fields plus grader options for a task type. Call before drafting. |
evals_create_draft | Create a draft eval record carrying its own grader; returns the parsed record, a review protocol, and a verification subagent prompt. |
evals_get_record | Read a draft or submitted record by id; the id is stable across submit. |
evals_revise_draft | Apply a surgical set / append / unset patch to a draft by dotted path; re-runs the self-consistency check. |
evals_discard_draft | Delete a draft record by id. Draft-only. |
evals_run_check | Run a grader spec against candidate answers and get PASS/REJECT per candidate, decoupled from any saved record. |
evals_submit_draft | Finalize a draft through the committability gate, then freeze it. |
evals_list_records | Browse and filter records by status, domain, task type, or tag. Returns a compact summary per record. |
evals_export_records | Compile submitted records to JSONL, CSV, Inspect AI, or lm-evaluation-harness and write the artifact under exports/. |
| Resource | Description |
|---|---|
eval://record/{id} | A single draft or submitted record by id — the same payload evals_get_record returns, for resource-capable clients. |
All record data is also reachable through the tool surface — evals_get_record for a single record, evals_list_records to browse. The resource is a convenience mirror for clients that support resources, not the access path.
evals_describe_schema tooltask_type: numeric, exact_answer, set_answer, mcq, regex_answer, json_answer, or free_response.mcq requires choices, and free_response requires llm_rubric.evals_create_draft toolverification and captures (EvalsIDs); mcq requires choices, and free_response requires llm_rubric.draft once its grader runs, and returns the normalized record, a review protocol, a verification-subagent prompt, and what submit still needs. A draft whose gold fails its grader is still saved.grader_unexecutable, task_type_constraint, mcq_choice_mismatch.evals_get_record toolid, which stays stable across submit.not_found points to evals_list_records.evals_revise_draft toolset, append, and unset by dotted path to a draft; task_type and server-owned fields cannot be changed, and arrays are replaced whole or appended, not edited by index.changed entries (op, path, before, after). An unknown path rejects the whole patch.not_found, record_frozen for a submitted id, invalid_patch_path, grader_unexecutable, task_type_constraint, mcq_choice_mismatch.evals_discard_draft tooldraft_id and returns discarded: true.record_frozen; a missing or already discarded id reports not_found.evals_run_check toolcandidates without a saved record; supply gold for exact_match, while target-embedding kinds such as numeric and mcq ignore it.detail, and the resolved reference per candidate. llm_rubric can't be run here.units is documentation only.grader_unexecutable, mcq_choice_mismatch.evals_submit_draft tooldraft_id: gold must PASS, ≥1 negative must be REJECTED, and decorrelated verification must agree. Also checks captures against EVALS_CAPTURE_DIR, rejects duplicate content_hash, and can ask for confirmation via confirm or EVALS_REQUIRE_CONFIRMATION.submitted_at and checksum and returns status: submitted; a refusal leaves the draft intact. free_response records rely on verification alone and carry server_verified: false.not_found, record_frozen, verification_incomplete, grader_failed_on_gold, verification_disagrees_with_gold, missing_negative_case, negative_case_passed, duplicate, decorrelation_violation, capture_unresolved, submit_declined.evals_list_records toolstatus (draft/submitted), domain, task_type, or tag; limit is a positive integer and defaults to 50.shown, cap, totalCount, and truncated.evals_export_records toolsubmitted records, optionally filtered by domain, task_type, or tag, as jsonl (lossless), csv (lossy summary), inspect (Inspect AI), or lm-eval (lm-evaluation-harness).exports/ and returns the path, record count, byte size, and preview.eval://record/{id} resourceid from evals_list_records or a draft/submit response.evals_get_record payload as application/json, or not_found when no record matches.Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.
Eval authoring:
draft → review → surgical-revise → submit loop, with the server both storing records and running each record's own grader to reject what doesn't hold upnumeric, exact_answer, set_answer, mcq, regex_answer, json_answer, free_responsenumeric via math.js, exact_match, set_match, regex, mcq, json_match) run server-side, while llm_rubric relies on recorded independent verificationEVALS_DATA_DIR, with drafts, submitted records, and exports kept separateAgent-friendly output:
evals_create_draft and evals_revise_draft return the parsed record, a per-field review protocol, and a ready-to-paste verification-subagent promptevals_list_records reports shown / cap / total count when the limit is hitreason plus a recovery hintAdd the following to your MCP client configuration file. Set EVALS_DATA_DIR to a writable folder — the server manages drafts/, submitted/, and exports/ under it.
{
"mcpServers": {
"evals-mcp-server": {
"type": "stdio",
"command": "bunx",
"args": ["@cyanheads/evals-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info",
"EVALS_DATA_DIR": "/absolute/path/to/evals-data"
}
}
}
}
Or with npx (no Bun required):
{
"mcpServers": {
"evals-mcp-server": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@cyanheads/evals-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info",
"EVALS_DATA_DIR": "/absolute/path/to/evals-data"
}
}
}
}
Or with Docker:
{
"mcpServers": {
"evals-mcp-server": {
"type": "stdio",
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "MCP_TRANSPORT_TYPE=stdio",
"-v", "evals-data:/usr/src/app/evals-data",
"ghcr.io/cyanheads/evals-mcp-server:latest"
]
}
}
}
For Streamable HTTP, set the transport and start the server:
MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 EVALS_DATA_DIR=./evals-data bun run start:http
# Server listens at http://localhost:3010/mcp
EVALS_DATA_DIR. No external API key is required.git clone https://github.com/cyanheads/evals-mcp-server.git
cd evals-mcp-server
bun install
cp .env.example .env
# edit .env and set EVALS_DATA_DIR
All server configuration is validated at startup via Zod schemas in src/config/server-config.ts.
| Variable | Description | Default |
|---|---|---|
EVALS_DATA_DIR | Root folder for record JSON; the store manages drafts/, submitted/, and exports/ under it. | ./evals-data |
EVALS_REQUIRE_CONFIRMATION | When true, evals_submit_draft requests human confirmation through multi-round input before finalizing. | false |
EVALS_DEFAULT_LICENSE | Default metadata.license applied when a draft omits one (e.g. CC-BY-4.0). | — |
EVALS_CAPTURE_DIR | Directory of framework-written tool-call captures; when set, captures EvalsIDs resolve to full dumps. | — |
MCP_TRANSPORT_TYPE | Transport: stdio or http. | stdio |
MCP_HTTP_PORT | Port for the HTTP server. | 3010 |
MCP_SESSION_MODE | HTTP session mode: auto, stateful, or stateless; stateless is refused because submit confirmation needs a live session. | stateful |
MCP_AUTH_MODE | Auth mode: none, jwt, or oauth. | none |
MCP_LOG_LEVEL | Log level (RFC 5424). | info |
OTEL_ENABLED | Enable OpenTelemetry instrumentation. | false |
See .env.example for the full list of optional overrides.
Submit confirmation expires after 10 minutes and must be repeated if the draft changes. When running more than one instance, use shared storage (STORAGE_PROVIDER_TYPE=filesystem with a shared STORAGE_FILESYSTEM_PATH, supabase, or cloudflare-d1; not cloudflare-kv) and set the same MCP_REQUEST_STATE_KEY (at least 32 bytes) on each.
Build and run:
# One-time build
bun run rebuild
# Run the built server
bun run start:stdio
# or
bun run start:http
Run checks and tests:
bun run devcheck # Lint, format, typecheck, security
bun run test # Vitest test suite
bun run lint:mcp # Validate MCP definitions against spec
docker build -t evals-mcp-server .
docker run --rm -e MCP_TRANSPORT_TYPE=stdio -v evals-data:/usr/src/app/evals-data evals-mcp-server
The Dockerfile defaults to HTTP transport, stateful session mode, and logs to /var/log/evals-mcp-server. Mount record storage at /usr/src/app/evals-data, the default directory owned by the runtime user. OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them.
| Directory | Purpose |
|---|---|
src/index.ts | createApp() entry point — registers tools and the resource, inits the record-store and exporter services. |
src/config | Server-specific environment variable parsing and validation with Zod. |
src/mcp-server/tools | Tool definitions (*.tool.ts). |
src/mcp-server/resources | Resource definitions (*.resource.ts). |
src/services/eval-record | The record schema, draft builder, and submit gate. |
src/services/grader | Deterministic grader DSL execution and the committability check. |
src/services/record-store | On-disk JSON record CRUD, the draft→submitted move, and export writes. |
src/services/exporter | Compiling submitted records to JSONL/CSV/Inspect/lm-eval. |
tests/ | Unit and integration tests mirroring src/. |
See CLAUDE.md/AGENTS.md for development guidelines and architectural rules. The short version:
try/catch in tool logicctx.log for request-scoped logging; records persist to disk via the record-store service, not ctx.statecreateApp() arrays in src/index.tsIssues are welcome. Run checks and tests before submitting:
bun run devcheck
bun run test
Apache-2.0 — see LICENSE for details.