mcp-llm-eval
v0.9.3MCP server that packages LLM evaluation gates as reusable CI/CD primitives
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
run_evaluation
Run an LLM evaluation: load a dataset, query models via streaming, score responses with an LLM-as-judge, and return per-question scores, aggregate summary, and pass/fail status.
| Parameter | Type | Description |
|---|---|---|
dataset_path * | string | Path to the JSON evaluation dataset file. |
models * | array | Models to evaluate. |
judge | object | Judge configuration (optional). |
output_dir | string | Directory to save results JSON files. |
tracing | object | Optional tracing configuration. |
check_thresholds
Check evaluation results against quality gate thresholds. Returns pass/fail per metric and overall gate status.
| Parameter | Type | Description |
|---|---|---|
results_path * | string | Path to an evaluation results JSON file (summary). |
thresholds * | object | Quality gate thresholds. |
list_evaluations
List past evaluation runs in a directory. Returns metadata for each run: timestamp, dataset, models, pass/fail, and cost.
| Parameter | Type | Description |
|---|---|---|
results_dir * | string | Directory containing evaluation result files. |
get_evaluation
Retrieve the full details of a specific evaluation run: per-question per-model scores, responses, and judge reasoning.
| Parameter | Type | Description |
|---|---|---|
results_path * | string | Path to a specific evaluation result file. |
compare_runs
Compare two evaluation runs and detect regressions. Flags metrics that worsened beyond configurable tolerance.
| Parameter | Type | Description |
|---|---|---|
baseline_path * | string | Path to baseline evaluation summary JSON. |
current_path * | string | Path to current evaluation summary JSON. |
tolerance | object | Per-metric regression tolerance. |
evaluate_retrieval
Run retrieval metrics (recall@k, precision@k, MRR, nDCG@k) against a labelled dataset with a configurable retrieval adapter. Returns per-query metrics, dataset-level aggregate, and p50/p95 retrieval latency.
| Parameter | Type | Description |
|---|---|---|
corpus_path * | string | Path to JSONL corpus file. |
dataset_path * | string | Path to JSONL dataset with relevant_chunk_ids on each entry. |
adapter | string | Retrieval adapter to use (default bm25). |
k | integer | Top-k cutoff for all metrics (default 5). |
output_dir | string | Directory to save results (optional). |
evaluate_rag_end_to_end
Run the full RAG pipeline: retrieve chunks, generate answers using the retrieved chunks as context, and score with context_relevance and citation_faithfulness judges. Returns retrieval metrics, generation metrics, and judge scores per query, plus an aggregate.
| Parameter | Type | Description |
|---|---|---|
corpus_path * | string | |
dataset_path * | string | |
models * | array | Models to evaluate. |
adapter | string | |
judge | object | |
k | integer | |
output_dir | string |
check_retrieval_drift
Compare two retrieval evaluation result files and detect drift. Flags metrics that have regressed beyond configurable tolerance. Takes two result-set paths; does not persist history itself.
| Parameter | Type | Description |
|---|---|---|
baseline_path * | string | |
current_path * | string | |
tolerance | object |
simulate_poisoned_corpus
[STUB - not implemented in v0.5.0] Inject poisoned chunks into a corpus and re-run retrieval evaluation. Returns a clear not-implemented response.
| Parameter | Type | Description |
|---|---|---|
corpus_path * | string | |
dataset_path * | string | |
poisoning_strategy * | string | |
poison_ratio | number |
format_pr_comment
Generate a markdown PR comment from evaluation results. Includes results table, regression details, and threshold status.
| Parameter | Type | Description |
|---|---|---|
summary_path * | string | Path to evaluation summary JSON. |
comparison_path | string | Path to compare_runs output JSON (optional). |
thresholds | object | Quality gate thresholds for pass/fail badges. |