Model Context Protocol · Jev AI
Jev MCP: Typed Decision Tools for AI Agents
Give Claude Code, Cursor, Codex, and custom MCP hosts a fast System One judgment layer. Call Jev over MCP for routing, tool guardrails, completion checks, and rubric scoring with calibrated probabilities.
Three MCP tool primitives
What your agent can ask Jev over MCP
Route & classify
Pick one option from up to 255 labels (model tier, queue, intent, or tool family) and inspect per-option probabilities.
route: "fast_model" (p=0.91)Rate quality & risk
Evaluate code changes, retrieved chunks, or customer replies on an ordered rubric from 2 to 10 levels.
risk_score: 0.24 · confidence: 0.93Gate risky actions
Run calibrated true/false checks before destructive shell commands, deletes, billing changes, or external sends.
requires_approval: noul=0.97Quickstart setup
Build and register a Jev MCP server in 2 minutes
Wrap the hosted Jev AI REST endpoint in a 30-line stdio MCP server, then register it in Claude Code, Cursor, or any MCP-compatible host.
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
import { z } from "zod";
const server = new McpServer({ name: "jev-mcp", version: "1.0.0" });
server.tool(
"jev_decide",
"Run typed choice, score, or noul decisions on a state using the Jev AI API",
{
state: z.string().describe("Context or payload the decision evaluates"),
questions: z.record(z.any()).describe("Map of typed Jev questions"),
model: z.string().default("typesafe/jev-1.14"),
},
async ({ state, questions, model }) => {
const res = await fetch("https://thejevai.com/v1/systemone", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.JEV_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ model, state, questions }),
});
const data = await res.json();
return {
content: [{ type: "text", text: JSON.stringify(data, null, 2) }],
};
}
);
await server.connect(new StdioServerTransport());{
"mcpServers": {
"jev": {
"command": "npx",
"args": ["tsx", "./jev-mcp-server.ts"],
"env": {
"JEV_API_KEY": "jev_live_your_api_key"
}
}
}
}High-leverage MCP patterns
- Pre-tool guardrail: check delete, deploy, or payment actions before execution.
- Context compaction: score tool outputs to keep facts and drop noise in long sessions.
- Model routing: dispatch simple prompts to fast models and hard tasks to reasoning models.
- Done-check verifier: verify whether an agent actually satisfied acceptance criteria.
FAQ
Jev MCP questions
What is Jev MCP?+
Jev MCP is the pattern of exposing TypeSafe’s Jev System One decision model as Model Context Protocol (MCP) tools so coding agents and LLM hosts like Claude Code, Cursor, and Codex can request fast, typed choice, score, and noul decisions with calibrated probabilities.
Why give an MCP agent a decision model when it already has an LLM?+
Generative LLMs are optimized for writing code and prose, not calibrated probability gates. Offloading repetitive classification, destructive-action guardrails, and sub-task routing to Jev cuts latency, removes JSON parsing failures, and supplies numeric confidence scores.
Which API endpoint and key does a Jev MCP server use?+
Point your MCP server to POST https://thejevai.com/v1/systemone with a Bearer API key created in your Jev AI workspace (/settings/apikeys). Keep the key in your local MCP environment config, never in client-side code.
Can I use Jev with agents without running a separate MCP server?+
Yes. You can either expose Jev through an MCP server (best when sharing typed tools across Claude Desktop, Cursor, and custom MCP clients) or install the lightweight Jev Agent Skill documented on /ai-agents.
Can I switch models inside Jev MCP without changing my tool schema?+
Yes. Because Jev AI uses one unified System One schema, your MCP tool accepts typesafe/jev-1.14 by default and can switch to cloudflare/clef-flash or other supported decision models by passing a different model ID.