Skip to main content
Glama

open-jev-mcp

Every prompt you send to Claude Code or Hermes goes through this pipeline:

prompt ──► local LLM planner (Ollama, JSON-schema output) ──► 2-5 typed questions (noul/choice/score)
       ──► local Open-Jev server (/v1/systemone) ──► calibrated probabilities
       ──► injected as context ──► the main agent decides what to do with it

The pipeline fails open: if Ollama or Jev is down or slow, the prompt goes through unchanged. Failures are logged to ~/.cache/openjev-mcp/errors.log. Each successful run is logged to ~/.cache/openjev-mcp/runs.jsonl with the questions, answers and latencies.

Prompts are sent only to the two localhost services above; nothing leaves your machine. The logs stay local in ~/.cache/openjev-mcp and are git-ignored.

Install

Requires Python 3.10+, uv, Ollama and an NVIDIA GPU (about 10 GB of VRAM is enough for Open-Jev-2B plus qwen3.5:4b). Below, <repo> is where you clone this project.

  1. This project and the planner model:

    git clone https://github.com/yogeshvar/open-jev-mcp <repo> && cd <repo> && uv sync
    ollama pull qwen3.5:4b
  2. Open-Jev with the published 2B checkpoint (the default location is ~/Projects/Open-Jev):

    git clone https://github.com/Zefan-Cai/Open-Jev ~/Projects/Open-Jev && cd ~/Projects/Open-Jev
    uv venv --python 3.12 .venv && uv pip install --python .venv/bin/python -e '.[train]' huggingface_hub
    .venv/bin/hf download ZefanCai/Open-Jev-2B --revision 0c7aa498b1627be8da4acf34c863ff0ee0a92785 --local-dir models/Open-Jev-2B
  3. The server command:

    ln -s <repo>/bin/jev-server ~/.local/bin/jev-server && jev-server start
  4. Claude Code: register the MCP server and add the prompt hook to ~/.claude/settings.json:

    claude mcp add --scope user open-jev -- uv run --quiet --project <repo> openjev-mcp
    { "hooks": { "UserPromptSubmit": [ { "hooks": [
      { "type": "command", "command": "python3 <repo>/hooks/claude_prompt_hook.py", "timeout": 20 } ] } ] } }
  5. Hermes: link the plugin, then enable the plugin and the MCP server in ~/.hermes/config.yaml:

    ln -s <repo>/hermes_plugin/open-jev ~/.hermes/plugins/open-jev
    plugins:
      enabled:
        - open-jev
    mcp_servers:
      open-jev:
        command: uv
        args: [run, --quiet, --project, <repo>, openjev-mcp]
        enabled: true

Related MCP server: local-coder-mcp

Pieces

Path

What it does

openjev_mcp/planner.py

Ollama writes question designs for the prompt. Test it with python3 -m openjev_mcp.planner "your prompt"

openjev_mcp/validate.py

Applies Open-Jev's compile_request rules and the candidate budget

openjev_mcp/pipeline.py

run(prompt) returns the context string or None

openjev_mcp/fallback_questions.json

General questions used when the planner fails but Jev is up

openjev_mcp/server.py

MCP tools: jev_ask, jev_plan, jev_analyze, jev_health

hooks/claude_prompt_hook.py

Claude Code UserPromptSubmit hook (in ~/.claude/settings.json)

hermes_plugin/open-jev/

Hermes pre_llm_call plugin (symlinked to ~/.hermes/plugins/open-jev)

Run the services

ollama pull qwen3.5:4b
jev-server start      # background Open-Jev server; waits until /health is ready
jev-server status     # Jev + Ollama readiness (exit 0 only when Jev is ready)
jev-server stop       # also stops a server started by hand on the same port
jev-server restart
jev-server logs [n]   # follow ~/.cache/openjev-mcp/jev-server.log

bin/jev-server is symlinked into ~/.local/bin. Override with JEV_HOME (default ~/Projects/Open-Jev), JEV_CHECKPOINT, JEV_DEVICE, JEV_PORT and JEV_START_TIMEOUT.

Config (env vars)

OPENJEV_URL (default http://127.0.0.1:8791/v1/systemone), OPENJEV_LLM_URL (http://127.0.0.1:11434), OPENJEV_LLM_MODEL (qwen3.5:4b), OPENJEV_PLAN_TIMEOUT (10 s), OPENJEV_JEV_TIMEOUT (5 s), OPENJEV_MAX_CHARS (6000), OPENJEV_MAX_QUESTIONS (5), OPENJEV_MAX_CANDIDATES (24), OPENJEV_FALLBACK (static or none), OPENJEV_DISABLE=1 (turns the pipeline off).

Tests

OPENJEV_SOURCE=/path/to/Open-Jev python3 -m unittest discover -s tests -v

Available Tools

4 tools
jev_analyzeB

Run the full pipeline (LLM planner -> local Jev) on any text; returns questions, answers and a summary.

Inputs: prompt (required). Returns: result

jev_askC

Ask the local Open-Jev server typed questions about a state.

questions maps question_id -> {"type": "noul"|"choice"|"score", "instructions": str, "criteria": ...}. choice criteria: {label: description, ...}; score criteria: ordered list of level descriptions (2-10, lowest first); noul: no criteria (or {"true": ..., "false": ...}).

Inputs: state (required), questions (required). Returns: result

jev_healthA

Report whether the local Open-Jev server and the Ollama planner model are available.

Inputs: no named parameters. Returns: result

jev_planA

Generate (but do not run) the Jev probe the local LLM planner would write for this prompt.

Inputs: prompt (required). Returns: result

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 4 tools

    Disambiguation4/5

    Most tools are clearly distinct: health checks availability, plan generates a probe, and analyze runs the full pipeline. The slight overlap is between ask and analyze, since both involve asking the Open-Jev server questions, but ask is a direct query about a state while analyze runs the complete planner-to-Jev flow.

    Naming Consistency5/5

    All tool names follow the same jev_<verb> pattern with clear verbs: ask, plan, analyze, and health. This makes the toolset highly predictable and easy for an agent to navigate.

    Tool Count5/5

    Four tools is well-scoped for this focused server. Each tool covers a meaningful operation without redundancy or unnecessary surface area.

    Completeness4/5

    The core workflows are covered: checking health, inspecting a generated plan, asking direct questions, and running the full analysis pipeline. A minor gap is that there is no explicit tool to run a previously generated probe exactly, though analyze effectively covers the end-to-end use case.

    Maintenance

    ActivitySlowing
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Provides Claude Code with local-first multimodal semantic search across documents, code, images, and video, plus multi-engine web research with active counter-evidence hunting and source-verified, extract-only briefings.
      4
      AGPL 3.0
    • A
      license
      A
      quality
      C
      maintenance
      Enables frontier coding agents to delegate routine probabilistic judgments to TypeSafe Jev, providing calibrated triage signals for failures, attempts, completion, context ranking, findings, risk, and generic evidence-grounded questions.
      7
      MIT