mcp-llm-eval

v0.9.3
mcp-llm-eval Checked 5 hours ago Published 28 days ago

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

ParameterTypeDescription
dataset_path *stringPath to the JSON evaluation dataset file.
models *arrayModels to evaluate.
judgeobjectJudge configuration (optional).
output_dirstringDirectory to save results JSON files.
tracingobjectOptional tracing configuration.

check_thresholds

Check evaluation results against quality gate thresholds. Returns pass/fail per metric and overall gate status.

ParameterTypeDescription
results_path *stringPath to an evaluation results JSON file (summary).
thresholds *objectQuality gate thresholds.

list_evaluations

List past evaluation runs in a directory. Returns metadata for each run: timestamp, dataset, models, pass/fail, and cost.

ParameterTypeDescription
results_dir *stringDirectory containing evaluation result files.

get_evaluation

Retrieve the full details of a specific evaluation run: per-question per-model scores, responses, and judge reasoning.

ParameterTypeDescription
results_path *stringPath to a specific evaluation result file.

compare_runs

Compare two evaluation runs and detect regressions. Flags metrics that worsened beyond configurable tolerance.

ParameterTypeDescription
baseline_path *stringPath to baseline evaluation summary JSON.
current_path *stringPath to current evaluation summary JSON.
toleranceobjectPer-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.

ParameterTypeDescription
corpus_path *stringPath to JSONL corpus file.
dataset_path *stringPath to JSONL dataset with relevant_chunk_ids on each entry.
adapterstringRetrieval adapter to use (default bm25).
kintegerTop-k cutoff for all metrics (default 5).
output_dirstringDirectory 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.

ParameterTypeDescription
corpus_path *string
dataset_path *string
models *arrayModels to evaluate.
adapterstring
judgeobject
kinteger
output_dirstring

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.

ParameterTypeDescription
baseline_path *string
current_path *string
toleranceobject

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.

ParameterTypeDescription
corpus_path *string
dataset_path *string
poisoning_strategy *string
poison_rationumber

format_pr_comment

Generate a markdown PR comment from evaluation results. Includes results table, regression details, and threshold status.

ParameterTypeDescription
summary_path *stringPath to evaluation summary JSON.
comparison_pathstringPath to compare_runs output JSON (optional).
thresholdsobjectQuality gate thresholds for pass/fail badges.