decisions-mcp
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., "@decisions-mcp Is this support ticket about billing, and how urgent is it? 'Charged twice.'"
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.
decisions-mcp
An MCP server that gives Claude Code a decide tool for quick, cheap
decisions that need no text generation: picking the next state of a workflow
from a known set of transitions, estimating how likely a claim is given some
facts, or rating something on a scale. It calls a decision model API, which
returns typed answers with probabilities, bills input tokens only, and is much
faster than a chat model.
Two backends are supported:
Provider | Format | Endpoint |
|
| |
| TypeSafe Jev, native or via OpenRouter |
|
Any gateway that speaks the OpenAI /v1/decisions format (for example an
internal LLM gateway) works with the openai provider.
Data only goes to the base URL you configure. There is no default URL and no fallback to another provider. The server never logs evidence, questions, answers or the API key.
Install
Requires uv (it fetches Python ≥ 3.11 if needed).
The package is on PyPI, so Claude Code can run it straight from there with
uvx decisions-mcp; nothing to clone. To run from a checkout instead:
git clone https://github.com/daniel-munoz/decisions-mcp.git && cd decisions-mcp
uv syncand use uv run --directory /path/to/decisions-mcp decisions-mcp as the command
in the examples below.
Related MCP server: jev-agent-mcp
Configure
All settings are environment variables, set in the MCP server config (keep the API key out of anything you commit):
Variable | Required | Meaning |
| yes |
|
| yes | No default. e.g. |
| yes | Sent as |
| no | Default |
| no | Default |
If the configuration is missing or invalid, the server still starts and the
decide tool returns an error saying what to fix.
Claude Code
Internal gateway (data stays inside the network):
claude mcp add decisions --scope user \
-e DECISIONS_PROVIDER=openai \
-e DECISIONS_BASE_URL=https://llm-gateway.internal.example/v1 \
-e DECISIONS_API_KEY="$LLM_GATEWAY_API_KEY" \
-- uvx decisions-mcpOpenAI:
claude mcp add decisions --scope user \
-e DECISIONS_PROVIDER=openai \
-e DECISIONS_BASE_URL=https://api.openai.com/v1 \
-e DECISIONS_API_KEY="$OPENAI_API_KEY" \
-- uvx decisions-mcpJev, TypeSafe's native API:
claude mcp add decisions --scope user \
-e DECISIONS_PROVIDER=jev \
-e DECISIONS_BASE_URL=https://api.typesafe.ai/v1/systemone \
-e DECISIONS_MODEL=jev-latest \
-e DECISIONS_API_KEY="$JEV_API_KEY" \
-- uvx decisions-mcpJev via OpenRouter (not yet tested against the live service):
claude mcp add decisions --scope user \
-e DECISIONS_PROVIDER=jev \
-e DECISIONS_BASE_URL=https://openrouter.ai/api \
-e DECISIONS_API_KEY="$OPENROUTER_API_KEY" \
-- uvx decisions-mcpThe decide tool
Input: evidence (text or a JSON object) and a list of questions, each of
type predicate (yes/no), choice (pick one of choices) or score (one of
2–10 ordered levels). Output: answers keyed by question name, for example
{
"provider": "openai",
"model": "gpt-6-luna",
"answers": {
"is_complaint": {"type": "predicate", "probability": 0.97},
"topic": {"type": "choice", "choice": "billing", "confidence": 0.9,
"probabilities": {"billing": 0.93, "delivery": 0.02, "account": 0.05}},
"urgency": {"type": "score", "score": 1.7, "label": "high", "confidence": 0.6,
"probabilities": {"low": 0.05, "medium": 0.2, "high": 0.75}}
},
"usage": {"input_tokens": 162}
}The server tells Claude when the tool fits, how to write good questions and options, and to fall back to its own judgment when answers are uncertain.
Development
uv run pytest # tests (no network)
uv run python scripts/smoke.py # one real call to the configured providerDesign and plan: docs/superpowers/specs/ and docs/superpowers/plans/.
License
MIT, see LICENSE.
Available Tools
1 tooldecideA
Answer typed questions about some evidence with a fast decision model. Returns probabilities, not text. Batch all questions about the same evidence into one call.
Question types:
predicate: yes/no. Returns
probabilitythat the condition holds. e.g. {"name": "ready_to_merge", "type": "predicate", "instructions": "Do the facts show that all required checks passed?"}choice: pick one option. Returns
choice,probabilitiesper option andconfidence. e.g. {"name": "next_state", "type": "choice", "instructions": "Which state should the workflow move to next?", "choices": [{"value": "review", "description": "A human must look at it."}, {"value": "approve"}, {"value": "reject"}, {"value": "other", "description": "None of the above fits."}]}score: place it on an ordered scale. Returns
label(most likely level),score(probability-weighted 0-based level index),probabilitiesper level andconfidence. e.g. {"name": "urgency", "type": "score", "instructions": "How urgent is this issue?", "levels": [{"label": "low"}, {"label": "medium"}, {"label": "high"}]}
Writing good questions:
instructionsis one specific question or condition.Choices are mutually exclusive and cover every case; add an "other" or "none" choice when the set may be incomplete. Give each a one-line description when the value alone is ambiguous.
Levels are ordered from low to high (2-10 of them).
nameis unique per call (letters, digits, _ or -); answers are keyed by it.
evidence is plain text or a JSON object with everything the decision depends on.
Inputs: evidence (required), questions (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
There is only one tool, so there is no possibility of misselection against a sibling tool. The three internal question types (predicate, choice, score) are clearly discriminated within the description, and the tool handles them through one uniformly shaped batch call.
A single lowercase verb name `decide` matches the server's purpose (decisions-mcp) and reads as a clean action verb. The `name` field convention for individual questions (letters, digits, `_`, `-`) is also documented explicitly.
The domain is a single stateless inference endpoint, so one tool is the honest surface rather than a thin wrapper hiding missing operations, and batching mitigates the one-call limit. It is slightly under-gunned only in that there is no introspection or capability/model-listing call.
The surface covers the stated purpose well: three question types plus batching cover most decision queries over evidence. Gaps are minor — no way to request rationales/explanations, no model or version metadata, and no calibration feedback loop.
Maintenance
Related MCP Connectors
Calibrated judgments for text: yes/no probabilities, picks from your options, or scores.
Typed-question decisions from Jev: classify, moderate, route models and guard tool calls.
Typed AI decisions for agents: classify, route, screen evidence, score and batch-label text.
Deterministic contextual decision arbitration and action routing for autonomous software. Takes current state, context, or intent plus caller-supplied candidate actions, state transitions, routes, refusals, escalations, tools, or models and returns a deterministic ordered candidate field. Also provides persistent machine representations for memory, retrieval, indexing, and downstream coherence measurement.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI coding agents to make fast, zero-output-token decisions by evaluating context, diffs, logs, or options through the OpenRouter Decisions API using TypeSafe Jev, returning calibrated probabilities for binary, categorical, or scoring questions.123 npm4MIT
- AlicenseAqualityCmaintenanceEnables coding or reasoning agents to request structured judgments from TypeSafe's Jev model at decision points, including choices, scores, claim verification, and code reviews, with probabilities and confidence returned as data.511 npmMIT
- AlicenseAqualityCmaintenanceEnables agents to call typed code-review and content-moderation decision tools, returning structured verdicts, probabilities, and confidence-gated actions.2MIT
- AlicenseNot gradedqualityBmaintenanceEnables Claude Code or any MCP client to ask TypeSafe's Jev for calibrated, typed judgments (probabilities, choices, scores) instead of prose, with local caching and cost tracking.1MIT