Skip to main content
Glama

jev-flash-router

npm version License: MIT Node.js MCP OpenRouter

Zero-token-output decision router MCP server powered by TypeSafe Jev.

AI coding agents waste hundreds of reasoning tokens just deciding which file to edit, which route to pick, or whether a diff breaks tests. jev-flash-router evaluates context, code diffs, logs, or planning options and returns calibrated probabilities in ~150ms — with $0.00 output token cost.


Features

  • ~150ms decisions — Lightning-fast evaluation via OpenRouter Decisions API

  • Zero output token cost — output_tokens: 0 on every call

  • TypeSafe Jev — Powered by the cutting-edge typesafe/jev-latest model

  • MCP-native — Works seamlessly with Cursor, Windsurf, Claude Desktop, and Claude Code

  • Zero-config — Run via npx or build locally from source

  • Three decision formats — noul (binary), choice (categorical), score (rubric)


Related MCP server: Jev MCP Server

Quick Start

1. Get an OpenRouter API Key

Obtain an API key from OpenRouter with access to the Jev model.

2. Client Setup

{
  "mcpServers": {
    "jev": {
      "command": "npx",
      "args": ["-y", "jev-flash-router"],
      "env": {
        "OPENROUTER_API_KEY": "sk-or-v1-YOUR-ACTUAL-API-KEY"
      }
    }
  }
}

Option B: Run from Local Source (Cloned Repository)

{
  "mcpServers": {
    "jev": {
      "command": "node",
      "args": ["/path/to/jev-flash-router/dist/index.js"],
      "env": {
        "OPENROUTER_API_KEY": "sk-or-v1-YOUR-ACTUAL-API-KEY"
      }
    }
  }
}

To automatically configure your AI agent (Antigravity IDE, Cursor, Claude Code) with the Master Jev Skill so it proactively uses zero-token decisions:

npx -y jev-flash-router install-skill

Option C: GUI Client Setup (Manual Field Entry)

  • Server name: jev

  • Executable command: node (or npx)

  • Arguments: /path/to/jev-flash-router/dist/index.js (or -y\njev-flash-router)

  • Environment: OPENROUTER_API_KEY=sk-or-v1-YOUR-ACTUAL-API-KEY


MCP Client Configuration

Cursor

Go to Settings → Features → MCP Servers → Add New MCP Server:

{
  "mcpServers": {
    "jev": {
      "command": "node",
      "args": ["/path/to/jev-flash-router/dist/index.js"],
      "env": {
        "OPENROUTER_API_KEY": "sk-or-v1-YOUR-ACTUAL-API-KEY"
      }
    }
  }
}

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "jev": {
      "command": "node",
      "args": ["/path/to/jev-flash-router/dist/index.js"],
      "env": {
        "OPENROUTER_API_KEY": "sk-or-v1-YOUR-ACTUAL-API-KEY"
      }
    }
  }
}

Windsurf

Add to your Windsurf MCP configuration:

{
  "mcpServers": {
    "jev": {
      "command": "node",
      "args": ["/path/to/jev-flash-router/dist/index.js"],
      "env": {
        "OPENROUTER_API_KEY": "sk-or-v1-YOUR-ACTUAL-API-KEY"
      }
    }
  }
}

Installation for Developers

Clone and Run Locally

git clone [https://github.com/Ravinder82/jev-flash-router.git](https://github.com/Ravinder82/jev-flash-router.git)
cd jev-flash-router
npm install
npx tsc --types node && chmod +x dist/index.js

API Reference

Tool: evaluate_decision

Evaluates context and returns calibrated probabilities.

Parameter

Type

Required

Description

state

string

Yes

Context, code diff, error log, or task description

question

string

Yes

Targeted question (e.g., "Will this change cause a breaking API error?")

type

string

Yes

Decision format: "noul", "choice", or "score"

criteria

object

Yes

Criteria map matching the chosen type

Criteria Examples

noul (binary yes/no):

{
  "true": "breaks existing callers",
  "false": "backward compatible"
}

choice (categorical):

{
  "option1": "use caching",
  "option2": "recompute",
  "option3": "defer"
}

score (ordered rubric):

[
  "critical",
  "warning",
  "info"
]

Cost and Performance

Metric

Value

Latency

~150ms

Output tokens

0

Output cost

$0.00

Input cost

~$0.042 / 1M tokens

Model

typesafe/jev-latest


License

MIT

Available Tools

1 tool
evaluate_decisionA

Zero-token-output decision engine powered by TypeSafe Jev. Evaluates context, code diffs, logs, or planning options and returns calibrated probabilities. Use this BEFORE generating long reasoning plans or multi-file edits to pick optimal paths.

Inputs: type (required), state (required), criteria (required), question (required), +1 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 1 tool

    Disambiguation5/5

    There is only one tool, so there is no possibility of an agent confusing it with another. Its purpose is stated clearly and does not overlap with anything else in the set.

    Naming Consistency4/5

    The single tool name uses a clear snake_case verb_noun format: evaluate_decision. With only one tool there is no broader naming pattern to compare against, so it cannot earn a full 5.

    Tool Count3/5

    One tool is acceptable for a narrowly scoped decision engine, but the surface feels thin for a server named as a 'router.' It is on the borderline: useful but unlikely to cover a real workflow by itself.

    Completeness3/5

    The core evaluation/probability function is present and well described, but there is no follow-up mechanism to apply the decision or inspect routing outcomes. The description implies integration with planning, yet the server stops at returning probabilities.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      C
      maintenance
      Enables coding agents to obtain probabilistic decisions from Jev AI via OpenRouter for classification, scoring, and validation, with tools like jev_check, jev_classify, jev_score, and jev_evaluate.
      5
      3
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables 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.
      5
      13 npm
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Enables AI agents to obtain typed judgments from TypeSafe's Jev System One models, including yes/no probabilities, multiple-choice selections with distributions, and rubric-based scores, directly usable in code.
      5
      2
      AGPL 3.0