New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@speakeasy-api/docs-mcp-eval

Package Overview
Dependencies
Maintainers
9
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@speakeasy-api/docs-mcp-eval

Evaluation and benchmarking harness for docs-mcp search quality metrics

latest
Source
npmnpm
Version
0.21.0
Version published
Weekly downloads
0
Maintainers
9
Weekly downloads
 
Created
Source

@speakeasy-api/docs-mcp-eval

Evaluation and benchmarking harness for Speakeasy Docs MCP.

Beta. Part of the docs-mcp monorepo.

Installation

npm install -g @speakeasy-api/docs-mcp-eval

Eval Types

Search-Quality Eval (run)

Measures retrieval quality metrics (MRR, NDCG, precision, latency) by driving the MCP server directly via stdio JSON-RPC.

docs-mcp-eval run --cases ./cases.json \
  --server-command "docs-mcp-server --index-dir ./index"
  • Recall@K — fraction of expected chunks found in the top-K results
  • MRR (Mean Reciprocal Rank) — how early the first relevant result appears
  • Precision@K — fraction of top-K results that are relevant
  • Delta reports — side-by-side comparison between evaluation runs

See docs/eval.md for the full search-quality eval specification.

Agent Eval (agent-eval)

End-to-end evaluation that spawns an AI coding agent with docs-mcp tools, runs it against a prompt, and evaluates assertions on the output. Validates the full stack — from search quality to how well a real model uses the tools.

Supports multiple agent providers:

ProviderFlagBackendPrerequisites
Anthropic--provider anthropic@anthropic-ai/claude-agent-sdkANTHROPIC_API_KEY
OpenAI Codex--provider openaicodex exec --json (CLI spawn)OPENAI_API_KEY + codex on PATH
Auto (default)--provider autoDetected from envWhichever key is set
# Claude (default when ANTHROPIC_API_KEY is set)
docs-mcp-eval agent-eval --suite acmeauth

# OpenAI Codex
docs-mcp-eval agent-eval --suite dub-go --provider openai

# Custom scenario file
docs-mcp-eval agent-eval --scenarios ./my-scenarios.json --docs-dir ./my-docs

Supports contains, not_contains, matches, and script assertions, per-scenario docs sources (local path or git clone), auto-built index caching, and trend comparison against prior runs.

See docs/agent-eval.md for the full agent eval specification.

License

AGPL-3.0

FAQs

Package last updated on 27 Oct 2026

Related posts