Evals Mcp Server

io.github.cyanheads由 GitHub 帳號 cyanheads 發布v0.1.6更新於 Oct 28, 2026

Author verifiable eval records through a draft→review→revise→submit loop with enforced graders.

已驗證STDIO僅桌面資料與分析AI 與機器學習

概覽

AI 產生的概覽

本機 MCP 伺服器,透過草稿、審閱、修訂、提交的循環,搭配伺服器強制執行的評分器來撰寫可驗證的評測記錄,再匯出成常見基準格式。

可以做什麼
  • 查詢任務類型所需欄位與評分器選項
  • 建立、讀取、逐欄修訂與刪除帶有可執行評分器的草稿記錄
  • 用評分器對候選答案執行檢查並取得 PASS/REJECT 結果
  • 通過提交關卡:標準答案必須通過、至少一個負例必須被拒絕、獨立驗證須一致
  • 依狀態、領域、任務類型或標籤瀏覽與篩選記錄
  • 將已提交記錄匯出為 JSONL、CSV、Inspect AI 或 lm-evaluation-harness 檔案
適用情境
適合在建置或整理評測資料集時使用,希望每筆記錄在收錄前都由評分器實際檢核,而不是只憑助理的宣稱。也適合需要把已提交記錄編譯成 JSONL、CSV、Inspect AI 或 lm-eval 產物的團隊。
執行需求
透過 npx 或 bunx 在本機執行(Bun 1.4.0 以上或 Node.js 24 以上),也可使用 Docker 映像。需要一個可寫入的目錄並在 EVALS_DATA_DIR 指定;不需要外部 API 金鑰。選用設定包含傳輸方式(stdio 或 HTTP)、HTTP 主機/連接埠/路徑、驗證模式、日誌等級、預設授權、擷取目錄與提交確認。
安裝前請注意
記錄會寫入 EVALS_DATA_DIR 下的磁碟檔案,提交後記錄即被凍結且無法修改,刪除動作會移除草稿。匯出會在 exports 目錄寫入檔案。將 EVALS_REQUIRE_CONFIRMATION 設為 true 後,提交前會要求人工確認,確認於 10 分鐘後或草稿變更後失效。自由回答類記錄僅依賴已記錄的驗證,並標記為 server_verified: false。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Evals Mcp Server,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

@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.

9 Tools • 1 Resource


Overview

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.

Tools

ToolDescription
evals_describe_schemaReturn the required and optional fields plus grader options for a task type. Call before drafting.
evals_create_draftCreate a draft eval record carrying its own grader; returns the parsed record, a review protocol, and a verification subagent prompt.
evals_get_recordRead a draft or submitted record by id; the id is stable across submit.
evals_revise_draftApply a surgical set / append / unset patch to a draft by dotted path; re-runs the self-consistency check.
evals_discard_draftDelete a draft record by id. Draft-only.
evals_run_checkRun a grader spec against candidate answers and get PASS/REJECT per candidate, decoupled from any saved record.
evals_submit_draftFinalize a draft through the committability gate, then freeze it.
evals_list_recordsBrowse and filter records by status, domain, task type, or tag. Returns a compact summary per record.
evals_export_recordsCompile submitted records to JSONL, CSV, Inspect AI, or lm-evaluation-harness and write the artifact under exports/.

Resources

ResourceDescription
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.

Capability reference

evals_describe_schema tool

  • Accepts task_type: numeric, exact_answer, set_answer, mcq, regex_answer, json_answer, or free_response.
  • Returns the gold shape, grader kinds, required/optional fields, and authoring notes from static schemas; mcq requires choices, and free_response requires llm_rubric.

evals_create_draft tool

  • Accepts a record with its grader and discrimination cases, plus optional verification and captures (EvalsIDs); mcq requires choices, and free_response requires llm_rubric.
  • Saves the record as a 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.
  • Typed errors: grader_unexecutable, task_type_constraint, mcq_choice_mismatch.

evals_get_record tool

  • Reads a draft or submitted record by id, which stays stable across submit.
  • Returns the full grader, discrimination cases, and verification evidence; not_found points to evals_list_records.

evals_revise_draft tool

  • Applies set, 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.
  • Re-validates the record and grader before writing, then returns the record plus changed entries (op, path, before, after). An unknown path rejects the whole patch.
  • Typed errors: not_found, record_frozen for a submitted id, invalid_patch_path, grader_unexecutable, task_type_constraint, mcq_choice_mismatch.

evals_discard_draft tool

  • Deletes a draft by draft_id and returns discarded: true.
  • A submitted record reports record_frozen; a missing or already discarded id reports not_found.

evals_run_check tool

  • Runs a grader against one or more candidates without a saved record; supply gold for exact_match, while target-embedding kinds such as numeric and mcq ignore it.
  • Returns PASS/REJECT, detail, and the resolved reference per candidate. llm_rubric can't be run here.
  • Numeric grading accepts only finite real values; unit-bearing, complex, nonfinite, and non-scalar candidates are rejected. units is documentation only.
  • Typed errors: grader_unexecutable, mcq_choice_mismatch.

evals_submit_draft tool

  • Finalizes by draft_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.
  • On success, freezes the record with 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.
  • Typed errors: 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 tool

  • Filters by status (draft/submitted), domain, task_type, or tag; limit is a positive integer and defaults to 50.
  • Returns summaries (id, status, task_type, domain, tags, timestamps), newest-first, with shown, cap, totalCount, and truncated.

evals_export_records tool

  • Exports submitted records, optionally filtered by domain, task_type, or tag, as jsonl (lossless), csv (lossy summary), inspect (Inspect AI), or lm-eval (lm-evaluation-harness).
  • Writes under exports/ and returns the path, record count, byte size, and preview.

eval://record/{id} resource

  • Reads id from evals_list_records or a draft/submit response.
  • Returns the evals_get_record payload as application/json, or not_found when no record matches.

Features

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:

  • A 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 up
  • Seven task types: numeric, exact_answer, set_answer, mcq, regex_answer, json_answer, free_response
  • A grader serialized with each record; deterministic kinds (numeric via math.js, exact_match, set_match, regex, mcq, json_match) run server-side, while llm_rubric relies on recorded independent verification
  • A submit gate: the gold must pass its own grader, ≥1 negative must be rejected, and a recorded decorrelated verification must agree with the gold
  • Plain JSON files under EVALS_DATA_DIR, with drafts, submitted records, and exports kept separate

Agent-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 prompt
  • Draft and revise responses report pass/reject results for each positive and negative case
  • evals_list_records reports shown / cap / total count when the limit is hit
  • The submit gate fails with a typed reason plus a recovery hint

Getting started

Add 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.

json
{  "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):

json
{  "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:

json
{  "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:

sh
MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 EVALS_DATA_DIR=./evals-data bun run start:http# Server listens at http://localhost:3010/mcp

Prerequisites

  • Bun v1.4.0 or higher (or Node.js v24+).
  • A writable directory for EVALS_DATA_DIR. No external API key is required.

Installation

  1. Clone the repository:
sh
git clone https://github.com/cyanheads/evals-mcp-server.git
  1. Navigate into the directory:
sh
cd evals-mcp-server
  1. Install dependencies:
sh
bun install
  1. Configure environment:
sh
cp .env.example .env# edit .env and set EVALS_DATA_DIR

Configuration

All server configuration is validated at startup via Zod schemas in src/config/server-config.ts.

VariableDescriptionDefault
EVALS_DATA_DIRRoot folder for record JSON; the store manages drafts/, submitted/, and exports/ under it../evals-data
EVALS_REQUIRE_CONFIRMATIONWhen true, evals_submit_draft requests human confirmation through multi-round input before finalizing.false
EVALS_DEFAULT_LICENSEDefault metadata.license applied when a draft omits one (e.g. CC-BY-4.0).—
EVALS_CAPTURE_DIRDirectory of framework-written tool-call captures; when set, captures EvalsIDs resolve to full dumps.—
MCP_TRANSPORT_TYPETransport: stdio or http.stdio
MCP_HTTP_PORTPort for the HTTP server.3010
MCP_SESSION_MODEHTTP session mode: auto, stateful, or stateless; stateless is refused because submit confirmation needs a live session.stateful
MCP_AUTH_MODEAuth mode: none, jwt, or oauth.none
MCP_LOG_LEVELLog level (RFC 5424).info
OTEL_ENABLEDEnable 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.

Running the server

Local development

  • Build and run:

    sh
    # One-time buildbun run rebuild
    # Run the built serverbun run start:stdio# orbun run start:http
  • Run checks and tests:

    sh
    bun run devcheck   # Lint, format, typecheck, securitybun run test       # Vitest test suitebun run lint:mcp   # Validate MCP definitions against spec

Docker

sh
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.

Project structure

DirectoryPurpose
src/index.tscreateApp() entry point — registers tools and the resource, inits the record-store and exporter services.
src/configServer-specific environment variable parsing and validation with Zod.
src/mcp-server/toolsTool definitions (*.tool.ts).
src/mcp-server/resourcesResource definitions (*.resource.ts).
src/services/eval-recordThe record schema, draft builder, and submit gate.
src/services/graderDeterministic grader DSL execution and the committability check.
src/services/record-storeOn-disk JSON record CRUD, the draft→submitted move, and export writes.
src/services/exporterCompiling submitted records to JSONL/CSV/Inspect/lm-eval.
tests/Unit and integration tests mirroring src/.

Development guide

See CLAUDE.md/AGENTS.md for development guidelines and architectural rules. The short version:

  • Handlers throw, framework catches — no try/catch in tool logic
  • Use ctx.log for request-scoped logging; records persist to disk via the record-store service, not ctx.state
  • Register new tools and resources in the createApp() arrays in src/index.ts
  • The server is the source of truth — validate inputs, run the grader as a hard gate, and never admit a record on assertion alone

Contributing

Issues are welcome. Run checks and tests before submitting:

sh
bun run devcheckbun run test

License

Apache-2.0 — see LICENSE for details.

來源:README.md,提交 3695f99

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

4
  1. v0.1.6最新Oct 13, 2026
  2. v0.1.5Oct 7, 2026
  3. v0.1.4Sep 22, 2026
  4. v0.1.3Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分