Skip to main content
Glama

Jev Decision MCP

Jev Decision MCP – quality and maintenance score on Glama

A local stdio MCP server exposing one tool, jev_decide, for typed decisions through any SDK-compatible decision API endpoint. Point it at an endpoint with BASE_URL and MODEL; there is no provider preset, host allowlist, or model allowlist. Written in TypeScript with the official MCP SDK and the @typesafe-ai/sdk typed-decision SDK.

Independent community project; not affiliated with the SDK vendor. Licensed under MIT.

Question

Use it for

Result

choice

Choose a label or candidate

Choice, probabilities, confidence

score

Rate a single dimension on 2–10 ordered levels

0-based score, probabilities, legend, confidence

noul

Judge whether a condition holds

Probability of yes, from 0 to 1

Batch independent questions over the same context in one call. Answers retain their question IDs. The MCP returns judgments and token usage; the caller owns thresholds, escalation, and action execution.

Requirements

  • Node.js 22 or newer, with npm available on your PATH.

  • An MCP client that supports local stdio servers.

  • An API key for the decision endpoint you configure (API_KEY). It is required for decision calls only — the tool can be discovered without one.

What "SDK-compatible" means here. Compatibility is the typed-decision contract of the @typesafe-ai/sdk: the endpoint must implement the SystemOne request (POST {BASE_URL}/v1/systemone) that returns typed choice/score/noul answers with probability distributions and usage counts.

Related MCP server: Codex Gemini MCP

Install from npm

The npm package includes the built server. npx downloads it on first use and runs it without cloning or building:

npx -y jev-decision-mcp@0.3.0

Add the following to your MCP client's configuration, replacing the placeholders with your endpoint's values. For clients that use mcpServers JSON:

{
  "mcpServers": {
    "jev": {
      "command": "npx",
      "args": ["-y", "jev-decision-mcp@0.3.0"],
      "env": {
        "API_KEY": "YOUR_API_KEY",
        "BASE_URL": "https://api.example.com/decisions",
        "MODEL": "your-model-name"
      }
    }
  }
}

Alternatively, set API_KEY, BASE_URL, and MODEL in the environment that launches your client and omit env if the client forwards those variables. Restart or reload your client's MCP servers after saving the configuration; the tool appears as jev_decide.

If the host cannot resolve npx, use its platform-specific launcher or absolute path as documented by that host. GUI applications may have a different PATH from your terminal.

The server communicates over stdio; starting it in a terminal waits for an MCP client rather than opening a web page. The npm installation does not read a .env from the caller's working directory.

To install the executable globally instead:

npm install -g jev-decision-mcp@0.3.0

Then use "command": "jev-decision-mcp" with no arguments in your MCP client, and supply the same API_KEY, BASE_URL, and MODEL values.

Install via Glama

Open Jev Decision MCP on Glama to view its README, tool schema, and source. For local installation, use the npm configuration above, or follow the listing's GitHub Repository link to download or clone the source and build it below. Glama lists this as a local stdio server; the listing URL is not an MCP connection endpoint.

Endpoint configuration

BASE_URL and MODEL are required at startup and are fixed for the life of the process; tool calls can override only the model name. There is no runtime preset selector: the server never switches endpoints or credentials per call, and it applies no host or model allowlist beyond URL validation. BASE_URL is a prefix — the SDK appends /v1/systemone to it — so HTTP(S) URLs with custom path prefixes are supported.

Reference endpoints (examples only; no provider is implied or endorsed). These are known SDK-compatible endpoints you can copy into BASE_URL/MODEL with your own API_KEY:

Example

BASE_URL

MODEL

TypeSafe

https://api.typesafe.ai

jev-latest

Liquid

https://api.liquid.ai/decisions

d1-ultra

Two instances to compare endpoints. Configure one instance per endpoint and send the same request to each instance's jev_decide:

{
  "mcpServers": {
    "jev-a": {
      "command": "npx",
      "args": ["-y", "jev-decision-mcp@0.3.0"],
      "env": {
        "API_KEY": "YOUR_FIRST_API_KEY",
        "BASE_URL": "https://api.typesafe.ai",
        "MODEL": "jev-latest"
      }
    },
    "jev-b": {
      "command": "npx",
      "args": ["-y", "jev-decision-mcp@0.3.0"],
      "env": {
        "API_KEY": "YOUR_SECOND_API_KEY",
        "BASE_URL": "https://api.liquid.ai/decisions",
        "MODEL": "d1-ultra"
      }
    }
  }
}

Each instance stays on its own fixed endpoint, so a comparison always shows exactly one endpoint per call.

Connect to Codex

For the npm package, merge this into your Codex config.toml:

[mcp_servers.jev]
command = "npx"
args = ["-y", "jev-decision-mcp@0.3.0"]
env_vars = ["API_KEY", "BASE_URL", "MODEL"]
tool_timeout_sec = 45

Set API_KEY, BASE_URL, and MODEL in the environment that launches Codex; env_vars forwards their existing values to the server. Keep the host tool timeout above JEV_TIMEOUT_MS / 1000. See official Codex MCP configuration.

Build from source

Clone the repository, install its dependencies, and compile the server:

git clone https://github.com/amidabuddha/jev-decision-mcp.git
cd jev-decision-mcp
npm ci
npm run build

You can also download the repository with Code → Download ZIP on GitHub, extract it, and run npm ci and npm run build in the extracted directory.

Copy .env.example to .env in that directory and set API_KEY, BASE_URL, and MODEL, or supply them through your MCP client's environment. The source build reads this .env regardless of its working directory; existing environment variables take precedence. Restart the server after changing it. .env is excluded from Git.

Configure your MCP client to run the built entry point:

{
  "mcpServers": {
    "jev": {
      "command": "node",
      "args": ["/absolute/path/to/jev-decision-mcp/dist/index.js"]
    }
  }
}

Replace the placeholder with your checkout's absolute path. Windows paths can use forward slashes, for example C:/projects/jev-decision-mcp/dist/index.js. If node is not on the client's PATH, use the absolute path to your Node executable.

For Codex, use the same command and args in the TOML example above. Keep env_vars only if you supply the configuration through Codex's environment instead of .env.

To verify your build, run npm run check (type checking and tests with mocked API responses; no network calls). Use npm run dev for local development and rebuild with npm run build after source changes before restarting your MCP client.

Configuration

Set these variables in your MCP client's server environment, or in .env for a source build. Only these four are read:

Variable

Default

Purpose

API_KEY

none

Bearer credential for the configured endpoint; required for decision calls, optional at startup for tool discovery

BASE_URL

none

Absolute http(s) API root prefix (the SDK appends /v1/systemone); required at startup

MODEL

none

Default model name for decision calls; required at startup

JEV_TIMEOUT_MS

30000

Total deadline per call including SDK retries; 1–120000 ms

Required vs optional. BASE_URL and MODEL must be set explicitly at startup; the server exits with a configuration error otherwise and never falls back to SDK or vendor defaults. API_KEY is optional at startup so a client can discover jev_decide without a key; decision calls without it return MISSING_API_KEY. Whitespace-only values count as unset.

Model precedence (highest first): the per-call model argument, then MODEL. A blank or whitespace-only per-call model is rejected with INVALID_INPUT; it can never fall back to a blank or hidden default. A per-call model changes only the model name in the request; the credential and destination stay fixed.

Endpoints are fixed by the operator, not by the tool. The process sends every request to the configured BASE_URL; tool input cannot change the destination, and there is no provider host or model allowlist — BASE_URL accepts any host and any path prefix (including localhost for self-hosting). BASE_URL must be an absolute http:/https: URL without credentials, query, or fragment; values containing ? or # are rejected at startup so no empty query or fragment delimiters can be appended. State and questions are sent to the configured endpoint and may incur API charges. The server does not persist inputs or decisions, and upstream error bodies are not exposed.

Timeout. JEV_TIMEOUT_MS is the total deadline for one decision call, including automatic SDK retries (individual attempts are capped at 10 seconds). Keep your client's tool timeout above JEV_TIMEOUT_MS / 1000 seconds.

Migrating from 0.1.3. Version 0.1.3 read TYPESAFE_API_KEY and TYPESAFE_DEFAULT_MODEL (default jev-latest) and always sent requests to https://api.typesafe.ai. Rename TYPESAFE_API_KEY to API_KEY and TYPESAFE_DEFAULT_MODEL to MODEL; if you relied on the old default model, set MODEL=jev-latest explicitly. Add BASE_URL=https://api.typesafe.ai to keep the endpoint 0.1.3 used. Finally, update your pinned package configuration to jev-decision-mcp@0.3.0 and restart or reload the host so the new process picks up the renamed variables.

Call the tool

Call jev_decide with the JSON in examples/decision.json. It combines a team choice, a refund yes/no judgment, and an urgency score. Smaller example:

{
  "state": { "request": "Please refund the duplicate charge." },
  "questions": {
    "route": {
      "type": "choice",
      "instructions": "Which team should handle `request`?",
      "criteria": {
        "billing": "Charges, invoices, refunds",
        "technical": "Broken software or integrations",
        "other": "Neither billing nor technical"
      }
    }
  }
}

The response contains model, answers, and usage, both as MCP structured content and JSON text. Jev may round probabilities to two decimal places, so their sum can differ slightly from 1. The server allows the corresponding rounding margin (up to 0.005 per option) and never repairs returned values: everything is passed through exactly as the API sends it, probabilities are never renormalized, and token counts are never invented. A response with null usage counts is an incompatibility and is rejected as INVALID_RESPONSE rather than reporting fabricated zeros. Choice supports 1–255 named options.

The accepted input shapes are unchanged: instructions and descriptions may be strings, JSON objects, or arrays; choice descriptions may be null; noul accepts optional criteria.true and criteria.false descriptions, which may be null. On the request wire the server makes exactly one normalization: a noul criterion description of null is omitted from the outgoing request, and a criteria object with no remaining description is omitted entirely. This is a provider-agnostic canonical omission of unset optional descriptions — some endpoints reject a sent null noul description with HTTP 422 while reading an omitted description as undescribed (observed on the Liquid reference endpoint; omission resolved it). Everything else travels exactly as supplied: non-null noul descriptions, including structured objects and arrays with nested nulls, and all choice and score values, including null choice descriptions.

Supply relevant facts, source text, and policies explicitly: Jev cannot see the caller's conversation or local files. Write complete judgments in instructions; IDs are only response keys. Include a no-match option when appropriate. Questions in one batch cannot see one another's answers. A noul near 0.5 is uncertainty about yes/no, not medium intensity. Confidence does not authorize actions or guarantee correctness; evaluate thresholds on representative data.

Troubleshooting

If the tool does not appear after an update, restart the server and open a fresh client session. The configured server is named jev; its tool is jev_decide. With the two-instance comparison setup both servers expose jev_decide; their server names (jev-a, jev-b) tell the instances apart.

Service/configuration failures are MCP tool errors (isError: true), never invented decisions. Codes include MISSING_API_KEY, INVALID_INPUT, INVALID_RESPONSE, API_ERROR, CONNECTION_ERROR, TIMEOUT, and CANCELLED. Invalid arguments may also be rejected directly by the MCP SDK. Startup fails with a configuration error when BASE_URL or MODEL is missing or malformed; the error names the variable but never echoes values.

References

Available Tools

1 tool
jev_decideAsk Jev for typed decisions (Decision API at https://api.typesafe.ai)A
Read-only

Evaluate supplied context using the configured decision models via the API at https://api.typesafe.ai. Batch independent, narrow questions in one call: choice selects a provided label; score returns a position on 2–10 ordered levels (0-based); noul returns probability of yes, not intensity. Supply relevant evidence and full instructions; question IDs are not sent to the model. Include an other/none choice when appropriate. Questions cannot use each other's answers. Returns raw judgments, probabilities, confidence for choice/score, and token usage. Use caller-defined policies for uncertainty. This sends the supplied state and questions to the Decision API at https://api.typesafe.ai and may incur API charges. It does not execute selected actions.

NameRequiredDescriptionDefault
modelNoOptional model override; defaults to the configured MODEL. Changes only the model name, never the credential or destination.
stateYesRelevant source text or JSON context; include evidence, definitions and policies needed for the questions.
questionsYesNamed independent questions over the same state. IDs are not model instructions; write each full judgment in instructions.

Output Schema

NameRequiredDescription
modelYes
usageYes
answersYes

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already mark this read-only, open-world and non-destructive, and the description substantially exceeds them: it states the payload is sent to an external API, that API charges may apply, that question IDs are never sent to the model, and that the call returns raw judgments, probabilities, confidence and token usage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Dense but front-loaded, with the mode semantics appearing before the caveats. Slightly marred by repeating the API URL already present in the title and once more mid-paragraph, which is wasted space in an otherwise information-rich description.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex nested-input tool with an output schema, the description covers the important things an agent must know: remote destination, charge implications, mode semantics, batching constraints, and that no actions are executed. Credential/authentication setup is only implied by the 'configured models' wording, which is the one remaining gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real semantics the schema cannot express: choice selects from supplied labels, score maps onto 2–10 ordered levels starting at 0, and noul returns probability of yes rather than intensity. It also clarifies that IDs are not model instructions and that model only overrides the model name, not the credential or destination.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Evaluate supplied context using the configured decision models') and enumerates the three judgment modes (choice, score, noul) with their exact semantics. An agent can tell precisely what the call produces without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete operational guidance: batch independent narrow questions in one call, include an other/none choice when appropriate, use caller-defined policies for uncertainty, and questions cannot use each other's answers. It also disclaims behavior ('does not execute selected actions'). There is no sibling tool to route against, so a when-not-to-use clause is the only missing piece.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

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

  1. 1 tool updatev0.1.4
    • Changedjev_decide1 field changed
      • changedInput schema / properties / model / description
        Previous value: -"Optional TypeSafe model override; defaults to the configured model or jev-latest."New value: +"Optional model override; defaults to the configured MODEL. Changes only the model name, never the credential or destination."
  2. 1 tool updatev0.1.0
    • First observedjev_decide

TDQS

A4.4/5.0

Scored across 1 tool

Disambiguation5/5

With only one tool, there is no possibility of selecting the wrong tool or confusing overlapping purposes. The single tool's multi-mode parameters are internally coherent.

Naming Consistency5/5

A single tool name cannot introduce inconsistency across a set. 'jev_decide' is clear and follows a predictable prefix_verb convention.

Tool Count3/5

The server exposes only one tool, which is thin for a general decision-evaluation surface. However, the tool supports multiple decision types and batching, so it is not an extreme mismatch.

Completeness4/5

The tool covers choice, score, and yes/no probability judgments with batching, which addresses the core decision API. Auxiliary operations like model discovery, configuration, or history are absent but may be outside scope.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • -
    license
    Not graded
    quality
    Not graded
    maintenance
    A production-ready TypeScript MCP server providing basic tools (add, echo, timestamp), resources (server info, greetings, data access), and prompt templates (analyze, code-review, summarize). Serves as a foundation for building custom MCP servers with extensible architecture.
    430 npm
    -
  • A
    license
    B
    quality
    C
    maintenance
    A TypeScript-based MCP server that provides tools to interact with local Codex and Gemini CLIs via stdio transport. It enables users to execute prompts through the ask_codex and ask_gemini tools, supporting custom models and timeout configurations.
    1
    8 npm
    6
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Turn your typed TypeScript functions into an MCP server — tool, resource, and prompt schemas inferred from your types and JSDoc. No schema library, no decorators, no boilerplate.
    7 npm
    MIT