jev-mcp
Provides a baseline adapter in the evaluation harness for comparing JEV judgments against OpenAI models, supporting logprobs-based probability extraction and verbalized probabilities.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@jev-mcpEvaluate this ticket: is it urgent, and which team should handle it?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
JEV MCP · Structured Judgments & LLM Evaluation
Connect JEV to MCP clients and compare its judgments against general-purpose LLMs using shared datasets and measurable accuracy.
Agents are good at producing text and bad at producing answers you can branch on. Ask one "is this
ticket urgent?" and you get back a sentence you then have to parse, with no number attached — no way
to tell a confident yes from a coin flip. This server exposes TypeSafe's Jev classifier as a single
MCP tool that returns typed answers with probabilities, so the agent gets 0.94 and moves on.
agent ──── evaluate ────▶ jev-mcp ──── POST /v1/systemone ────▶ TypeSafe
(stdio) (this) (Jev)
◀─── typed JSON ─── ◀─── probabilities ────────
jev-eval ── same question ─▶ JEV ─┐
─▶ LLM ─┴─▶ Brier · calibration · McNemarTwo halves: an MCP server that exposes the classifier to your agents, and an evaluation harness that tells you whether it is actually beating whatever you were using before.
Requirements
Node.js 20 or newer
A TypeSafe API key from console.typesafe.ai
Related MCP server: QuReDec MCP Server
Install
Not published to npm yet, so install from the repository:
npm install -g github:arunav25/jev-mcpOr clone it, which is what you want if you plan to run the evaluation harness:
git clone https://github.com/arunav25/jev-mcp.git
cd jev-mcp && npm install && npm linkThe bare name
jev-mcpon npm belongs to an unrelated project. This package publishes as@arunav25/jev-mcp; until it is published, use one of the commands above.
Then point your agents at it. The key has to be in your environment before you run this, because agents launch the server without your shell, so its value is written into each client's config:
export TYPESAFE_API_KEY=sk-...
jev-mcp installThat registers the server with Claude Code, Claude Desktop and Codex, skipping any that aren't installed. Restart Claude Desktop afterwards. To see what it would do first:
jev-mcp install --dry-run
jev-mcp install --client codex # or limit it to oneAny MCP client that speaks stdio will do. Run jev-mcp doctor to get the exact launch command, then:
{
"mcpServers": {
"jev": {
"command": "/usr/local/bin/node",
"args": ["/usr/local/lib/node_modules/@arunav25/jev-mcp/src/cli.js", "serve"],
"env": { "TYPESAFE_API_KEY": "sk-..." }
}
}
}Using it
One tool, evaluate. Give it the material to judge and one or more questions:
{
"state": {
"subject": "Payouts failing",
"body": "Help! My payouts have been failing for 3 days."
},
"questions": {
"is_urgent": {
"type": "noul",
"instructions": "Does the sender need a response today rather than this week?"
},
"department": {
"type": "choice",
"instructions": "Which team should own this ticket?",
"criteria": {
"billing": "Payments, payouts, refunds, invoices",
"technical": "Bugs, outages, API errors",
"sales": "Pricing and plan changes",
"unclear": "Not enough information to route"
}
}
}
}Back comes the answer under the same keys you used:
{
"model": "jev-latest",
"answers": {
"is_urgent": { "type": "noul", "noul": 0.94 },
"department": {
"type": "choice",
"choice": "billing",
"probabilities": { "billing": 0.88, "technical": 0.09, "sales": 0.02, "unclear": 0.01 },
"confidence": 0.81
}
}
}Question types
Type | Criteria | Returns |
| optional |
|
| required map of option → description or |
|
| required ordered array of 2+ level descriptions |
|
Getting good answers
stateis the only thing a question can see. Put every fact the decision rests on there.Question keys aren't sent to the model. Calling one
urgentexplains nothing — the instructions have to define what urgent means here.One judgment per question. Two decisions in one set of instructions blur the distribution.
Questions in a call can't see each other's answers. They run together over the same state. If step two depends on step one, make two calls.
Give
choicean escape hatch when the input might match nothing.scorelevels have to describe real situations. A bare 1–5 scale gives the model nothing to anchor on.0.5 on a
noulmeans uncertain, not "medium amount of the thing you asked about". Andconfidencemeasures how concentrated the distribution is, not whether the answer is right.
Malformed questions are caught here, before the request goes out — a choice with no criteria or a
score with one level comes back as a message the agent can fix, not a 422 and a wasted round trip.
Measuring whether it's actually better
jev-eval is a harness for answering "which one is more accurate?" with a number that survives
scrutiny. It exists because the usual version of that comparison — run ten inputs through both, eyeball
the outputs — cannot detect anything. Here is the arithmetic:
Effect to detect | Disagreement rate | Labelled items needed |
90% → 92% (2 points) | 15% | 2,941 |
90% → 92% (2 points) | 25% | 4,904 |
85% → 90% (5 points) | 20% | 626 |
80% → 90% (10 points) | 25% | 194 |
70% → 85% (15 points) | 30% | 103 |
80% power, α = 0.05, paired McNemar. Run jev-eval power --from 0.9 --to 0.92 for your own numbers.
A two-point gap over ten calls is three orders of magnitude short of conclusive. Any ranking drawn from it is a coin flip wearing a number.
The loop
jev-eval init datasets/urgency --question "Does this message need a response today rather than this week?"
# put your real items in datasets/urgency/items.jsonl, one JSON object per line:
# {"id": "t-001", "state": {"subject": "...", "body": "..."}}
jev-eval label datasets/urgency --rater arunav # never shows you a model's answer
jev-eval label datasets/urgency --rater mohib # a second rater bounds what's resolvable
jev-eval agreement datasets/urgency # Cohen's kappa between the two
jev-eval run datasets/urgency --system jev --run jev
jev-eval run datasets/urgency --system openai:model=gpt-4o-mini,mode=logprobs --run llm
jev-eval compare datasets/urgency -a jev -b llmBoth systems are asked the identical question — it lives in the dataset's config.json, not in the
command — and compare scores them only on items both covered, so the per-item difficulty cancels.
The harness scores noul (binary) questions only. choice and score questions work through the
MCP server but have no scoring path here yet — comparing them needs different metrics (macro-F1 and
a confusion matrix; MAE and rank correlation respectively).
What it reports
Brier score and log loss — proper scoring rules, computed on the probability itself rather than on which side of 0.5 it fell. This is the headline, not accuracy.
Calibration (ECE + reliability table) — of the things it called 0.9, how many happened? A model that is 85% accurate and honest about it beats one that is 87% accurate and says 0.99 every time.
AUC — ranking quality, independent of any threshold.
Accuracy, precision, recall, F1 at 0.5 and at the best available threshold.
95% bootstrap intervals on every one, seeded so a rerun reproduces exactly.
McNemar's test on the paired decisions — exact binomial below 25 discordant pairs, where the chi-square approximation misleads.
When an interval spans zero, the report says so in those words and tells you how many more items you would need. "No difference detected" is a result; "System A won" from a 10-item sample is not.
Getting a probability out of a general LLM
The baseline adapter has two modes, and the choice matters more than the model does:
mode=logprobsconstrains the reply to one token and reads the distribution overYes/No. This is the fair comparison — a real probability, not a stated one.mode=verbalizedasks the model to say a number. Convenient, and reliably badly calibrated: models pile up on 0.8/0.9/0.95. Use it to reproduce what a hand-rolled comparison actually measures, and read its ECE knowing part of the gap is the interface, not the model.
The Anthropic adapter is verbalized-only, since the Messages API exposes no logprobs.
Before trusting any of it
Run jev-eval agreement first. If two people labelling the same items score κ below about 0.6, the
question is ambiguous and no amount of data will separate the systems — the ceiling on what an eval
can resolve is how consistently humans can answer it. Fix the question, then collect labels.
Commands
Command | What it does |
| Run the MCP server over stdio. This is what agents invoke. |
| Register with Claude Code, Claude Desktop and Codex. |
| Show the resolved key status, endpoint, launch command and config path. |
| Evaluation harness — see above. |
Environment
Variable | Purpose |
| Required. |
| Override the API host. Useful for staging and tests. |
| Only for the eval harness' baseline adapter. |
| Only for the eval harness' baseline adapter. |
Every TYPESAFE_* variable in your shell is carried into the client configs by install.
Behaviour worth knowing
429,529and transport failures are retried four times with jittered exponential backoff, and aRetry-Afterheader is always honoured over the computed delay.401and422fail straight away — retrying a bad key or a bad request only wastes time.Response bodies are capped at 8 MB.
stdoutcarries the MCP protocol and nothing else; all diagnostics go tostderr.The Claude Desktop config is written via a temp file and a rename, so a failed write can't truncate a file that also holds your own preferences. Every other key in it is preserved.
Development
npm install
npm test # node:test, no test runner dependency
node src/cli.js doctor
node bin/eval.js --helpLicense
MIT — see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
A paid remote MCP for HyperFrames, built to return verdicts, receipts, usage logs, and audit-ready J
A paid remote MCP for Equibles, built to return verdicts, receipts, usage logs, and audit-ready JSON
Evidence-readiness MCP server: validate, audit, and score briefs, memos, and evidence packs.
A paid remote MCP for Skybridge, built to return verdicts, receipts, usage logs, and audit-ready JSO
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP server for Tru8 Evidence Research that enables AI agents to submit claims or URLs and receive source-traced evidence organized by tier and type with element decomposition and relationship mapping.350 PyPIMIT
- AlicenseNot gradedqualityDmaintenanceEnables to run structured QuReDec decision briefs from inside MCP-compatible clients, submitting questions and receiving evidence-backed recommendations with citations.24 PyPIMIT
- AlicenseAqualityAmaintenanceProvides MCP tools to verify logical expressions and retrieve decision statistics, with verdicts VALID, INVALID, or UNDECIDED.2AGPL 3.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to cross-verify candidate claims against caller-supplied source texts, flagging hallucinations, numerical drift, entity mismatches, contradictions, and unverified assertions. It returns sentence-level verdicts with matched evidence snippets and machine-readable factual grounding confidence scores, exposed over MCP stdio, HTTP REST, and A2A discovery routes.MIT