Skip to main content
Glama

CI npm node license MCP

Twelve MCP tools for the calls agents get wrong: checking a claim against evidence, screening untrusted text, choosing by meaning, reviewing a patch, and gating "done".

Why Verdict

Agents read, infer, and declare success — and are confidently wrong at exactly the moments that matter. Verdict adds a separate, typed judgment layer over MCP:

  • Fail-closed by default. A malformed model answer is an explicit invalid_response, never a clean pass, an empty ranking, or a quiet no-match.

  • Local-first. Tool calls go to a Jev-compatible endpoint you host — the Verdict app on Apple silicon, or any compatible server. Nothing is sent to a third party unless you configure a provider.

  • Deterministic where it counts. Thresholds, score math, id handling, argument validation, and gate policy live in code; the model only supplies judgments.

  • Bounded inputs. Every tool has explicit caps, so one call cannot silently spend an unbounded amount of context or money.

Verdict advises. Your agent or harness still owns policy.

Related MCP server: jev-kit

Tools

Tool

What it answers

verdict_screen

Is this fetched or pasted text safe to put in context? Injection, substance, relevance.

verdict_verify

Do these claims hold against this evidence?

verdict_noul

How likely is each stated proposition?

verdict_find

Which candidate answers the query — and does any candidate answer it at all?

verdict_rerank

How should every candidate be ordered by relevance?

verdict_classify

Which class from one shared catalog applies to each item?

verdict_decide

Which of 2–6 bounded options best fits the evidence and priorities?

verdict_compare

Do two passages agree, contradict, or discuss different facts?

verdict_extract

Which regex candidate is the verbatim field value?

verdict_audit

Are these extracted values faithful to the source text?

verdict_review

Is this patch actually done, per the request?

verdict_gate

Does the patch pass review and do the "tests pass" claims verify?

Per-tool arguments, output shapes, limits, and failure modes: skills/verdict/reference/tools.md.

Install

npx -y @pymodel/verdict-mcp

Or install the binary:

npm install -g @pymodel/verdict-mcp
verdict-mcp

Requires Node.js 22 or newer and a server that speaks the Jev contract: POST {model, state, questions} → {answers, usage, model}.

Local model with the Verdict app

Verdict is a native macOS menu bar app that runs Decider Flash v1.3 (PPLX 1.3 Flash) on Apple silicon and serves the same contract on loopback. No hosted provider, no API key, nothing leaves the machine.

  1. Launch Verdict with the model files in place.

  2. Read the port from the menu; it defaults to 8012.

  3. Set JEV_API_BASE_URL to http://127.0.0.1:<port>/v1/systemone.

The app also answers /v1/decisions, ignores the request's model field, and reports pplx-decider-flash-v1.3 in every response.

MCP client

{
  "mcpServers": {
    "verdict": {
      "command": "npx",
      "args": ["-y", "@pymodel/verdict-mcp"],
      "env": {
        "JEV_API_BASE_URL": "http://127.0.0.1:8012/v1/systemone"
      }
    }
  }
}

From a source checkout, point the client at the built entry instead:

{
  "mcpServers": {
    "verdict": {
      "command": "node",
      "args": ["/absolute/path/to/verdict-mcp/packages/verdict-mcp/dist/index.js"],
      "env": {
        "JEV_API_BASE_URL": "http://127.0.0.1:8012/v1/systemone"
      }
    }
  }
}

The server speaks MCP over stdio by default. The client key (verdict above) is yours to choose; the tools are always named verdict_*. Any Jev-compatible endpoint works; the Verdict app is the zero-dependency local option.

Configuration

Variable

Purpose

JEV_API_BASE_URL

Required local endpoint URL

JEV_API_KEY

Optional bearer token for the local endpoint

JEV_PROVIDER

Force a provider: local, typesafe, openrouter, cloudflare, or vercel

VERDICT_MCP_MODEL

Model slug for providers that route by model; default jev-latest. The Verdict app ignores it.

VERDICT_MCP_REQUEST_TIMEOUT_MS

Whole-request deadline; default 60000

VERDICT_MCP_MAX_ATTEMPTS

Attempts for 408, 409, 429, and 5xx; default 3

VERDICT_MCP_TRANSPORT

Set to http to start the HTTP transport instead of stdio

HTTP mode

npx -y @pymodel/verdict-mcp --http

The server listens on PORT (default 8080) at /mcp, with a health check at /health. If that port is taken (for example by the Verdict app), set PORT to a free port; startup fails with a clear already in use message instead of crashing. HOST defaults to 127.0.0.1. Binding a non-loopback address requires VERDICT_MCP_AUTH_TOKEN; see the server README for path-token and concurrency settings.

Development

git clone https://github.com/PyModel/verdict-mcp.git
cd verdict-mcp
npm ci
npm run build
npm test

Command

Purpose

npm run build

Build both packages

npm run typecheck

Type-check the workspace

npm test

Offline unit, mock, HTTP, server, and hook suites

npm run test:e2e

Live server test; needs JEV_API_BASE_URL

npm run test:live

Live transport test; needs endpoint and credentials

npm run pack:check

Verify both npm tarballs without publishing

Repository layout:

Path

Purpose

packages/verdict-mcp

MCP server, tools, stdio + HTTP transports

packages/verdict-mcp-agent-tools

Transport layer, question builders, reply validation

Documentation

License

MIT © PyModel LLC. See LICENSE.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides MCP tools that wrap Jev's finite typed judgments to give agents a semantic decision-control layer for task routing, pre-execution risk gating, and completion verification, keeping final execution authority in code.
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Enables MCP-capable coding agents to obtain structured TypeSafe Jev decisions on code, diffs, debugging hypotheses, test failures, and bug reports through six review and triage tools. It returns categorized verdicts, severities, and probabilities rather than explanations or patches, leaving verification to the connected agent.
      6
      1
      MIT