Skip to main content

JEV Memory MCP (jev-memory-mcp)

JEV Memory — Different models. Shared experience. Growing capability.

jev-memory-mcp is the public, zero-dependency Model Context Protocol (MCP) access layer and thin Python SDK for JEV Memory. It connects MCP-compatible AI coding clients (Claude Desktop, Cursor, Windsurf, Cline, Claude Code) to your JEV Memory service so verified engineering experience is recalled, validated, and inherited across sessions and models.

Important Architecture Note: This package contains only the public MCP stdio bridge, CLI, and Python client SDK. Core graph formation, structural evolution, and graph storage live exclusively on your JEV Memory backend service—you must provide a reachable JEV_MCP_ENDPOINT and JEV_MCP_API_KEY.

Why JEV Memory?

Stop letting AI agents re-solve the same multi-step engineering problems from scratch. JEV Memory stores execution-verified experience nodes in a lifecycle-governed graph (CANDIDATE -> VERIFIED -> MATURE -> CORE), keeps retrieval read-only, and updates trust/maturity only through explicit verification feedback.

Benchmark Scope (Transparent Disclosure)

In our controlled 100-task evaluation against Basic RAG using the same base model and budget:

  • Overall completion (100 tasks): JEV V3.3 75% vs Basic RAG 77%
  • Complex multi-step tasks (34 tasks): JEV V3.3 67.6% vs Basic RAG 52.9%

JEV Memory is not a universal replacement for RAG on simple document lookup, and model parameter differences must not be treated directly as cost savings. Its strength is reusable, execution-verified engineering workflows on complex recurring tasks.

Installation

Requires Python 3.9+ (zero third-party runtime dependencies).

uvx jev-memory-mcp --version

Option B: Install with pip

pip install jev-memory-mcp
jev-memory-mcp --version

Quick Start & Connection Check

Set your JEV Memory service endpoint and Bearer API key as environment variables (never hardcode keys in committed files):

export JEV_MCP_ENDPOINT="https://your-jev-service.example.com/mcp"
export JEV_MCP_API_KEY="your-bearer-token"

# Verify /health, Bearer authentication, and tools/list
jev-memory-mcp --check

To print a ready-to-paste MCP client configuration snippet:

jev-memory-mcp --print-config --endpoint "https://your-jev-service.example.com/mcp"

MCP Client Configuration

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "jev-memory": {
      "command": "uvx",
      "args": ["jev-memory-mcp"],
      "env": {
        "JEV_MCP_ENDPOINT": "https://your-jev-service.example.com/mcp",
        "JEV_MCP_API_KEY": "<YOUR_JEV_MCP_API_KEY>"
      }
    }
  }
}

Cursor (.cursor/mcp.json)

{
  "mcpServers": {
    "jev-memory": {
      "command": "jev-memory-mcp",
      "args": [],
      "env": {
        "JEV_MCP_ENDPOINT": "https://your-jev-service.example.com/mcp",
        "JEV_MCP_API_KEY": "<YOUR_JEV_MCP_API_KEY>"
      }
    }
  }
}

See examples/ for additional configuration templates and a runnable Python SDK walkthrough.

Available MCP Tools

Tool Mode Purpose
jev_recall Read-only Retrieve verified experience matching a task query (M0/M1/M2/M3 adaptive routing). Never mutates graph state.
jev_learn Write (gated) Record a newly verified engineering helper/pattern with verification evidence.
jev_record Feedback Submit pass/fail verification feedback for recalled node IDs to update trust, maturity, or quarantine status.
jev_stats Read-only Inspect tenant graph counts, lifecycle distribution, and routing stats.
jev_export_mature Export (jailed) Export verified MATURE/CORE subgraphs to a server-jailed .json filename (no overwrite).
jev_snapshot Snapshot (jailed) Create an atomic server-jailed full snapshot (no overwrite).

Feedback Submission & Host Support Matrix

MCP exposes tools to the host LLM, but the MCP specification itself does not force a host to call tools or submit feedback automatically.

MCP Host Tool Discovery & Manual Call Automatic Recall / Feedback Recommended Workflow
Claude Desktop Supported No (prompt-driven) Instruct Claude to call jev_recall before coding and jev_record/jev_learn after tests pass.
Cursor / Windsurf / Cline Supported Configurable via project rules Add a short rule in .cursorrules / system instructions requiring jev_recall at task start and jev_record after test verification.
Claude Code / Custom Agents Supported Configurable via hooks/agent loop Call jev_recall before task execution and jev_record/jev_learn automatically from your test verifier hook.
Python SDK (JevMemoryClient) Direct programmatic control Full control Call client.recall(...), run your verifier, then call client.record(...) / client.learn(...).

Python SDK Example

import os
from jev_memory_mcp import JevMemoryClient

client = JevMemoryClient(
    endpoint=os.environ["JEV_MCP_ENDPOINT"],
    api_key=os.environ["JEV_MCP_API_KEY"],
)

# 1. Read-only recall before solving a task
recalled = client.recall("parse iso8601 timestamp safely into YYYY-MM-DD", model_id="claude-sonnet")

# 2. Submit a verified helper after your tests pass
learned = client.learn(
    task_text="parse iso8601 timestamp safely into YYYY-MM-DD",
    helper_code=(
        "from datetime import datetime\n"
        "def parse_iso_date(s: str) -> str:\n"
        "    return datetime.fromisoformat(s.replace('Z', '+00:00')).strftime('%Y-%m-%d')\n"
    ),
    evidence="pytest: 12/12 passed",
    task_id="PROJ-101",
    model_id="claude-sonnet",
)

# 3. Record verification feedback in a later session or different model
client.record(
    [learned["node_id"]],
    passed=True,
    mode="M1",
    model_id="cursor-agent",
    task_id="PROJ-102",
)

Authentication, Security & Data Privacy

  • HTTPS enforced by default: Plain http:// is permitted only for loopback hosts (127.0.0.1, localhost, ::1). Non-loopback plain HTTP is rejected unless --allow-insecure-http is explicitly passed for a private network.
  • Bearer token isolation: Every request sends Authorization: Bearer <JEV_MCP_API_KEY>. API keys are never embedded in URLs, never printed in repr(), and never included in error messages.
  • Frame size cap: Both stdio and HTTP requests enforce a strict 65,536-byte JSON-RPC frame limit.
  • Tenant isolation & server-side gates: On the JEV Memory backend, each API key maps to an isolated tenant database, with server-side rate limiting, AST code-poisoning checks, prompt-injection filtering, and jailed no-overwrite exports.
  • Data privacy: Only the queries, code snippets, and feedback you explicitly send via MCP tool calls are transmitted to your configured JEV_MCP_ENDPOINT. No telemetry is collected by jev-memory-mcp.

Troubleshooting

  • JEV_MCP_ENDPOINT is required / JEV_MCP_API_KEY is required: Set both environment variables in your shell or MCP host env block, then re-run jev-memory-mcp --check.
  • Refusing plain http:// for a non-loopback host: Use an https:// endpoint behind TLS (Cloudflare/Nginx/Caddy), or pass --allow-insecure-http only inside a trusted private network.
  • Authentication failed (HTTP 401): Verify your Bearer token matches an active key configured on the JEV Memory service.
  • Rate limit exceeded (HTTP 429): Reduce burst frequency or increase the tenant rate limit on your JEV Memory service.

Known Limitations

  • Requires a running JEV Memory MCP HTTP(S) service; this package does not ship a local graph engine.
  • Automatic recall and post-verification feedback depend on your MCP host's rules/hooks or explicit prompting.
  • Cross-platform verification status is documented per release in the release audit report.

JEV Ecosystem

jev-memory-mcp is part of the JEV product family alongside the JEV auditor (jev-guard). Both products share the JEV brand and verification-first philosophy while maintaining completely independent architectures and release lifecycles.

License

Apache-2.0. See LICENSE.

Metadata

Release files for jev-memory-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jev-memory-mcp 0.1.0
File Size Uploaded Provenance Actions
jev_memory_mcp-0.1.0.tar.gz 18.2 kB Without provenance Details for jev_memory_mcp-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jev-memory-mcp 0.1.0
File Interpreter ABI Platform Actions
jev_memory_mcp-0.1.0-py3-none-any.whl Python 3 none any Details for jev_memory_mcp-0.1.0-py3-none-any.whl

Total release size: 32.4 kB

Release files / jev_memory_mcp-0.1.0.tar.gz

Download URL jev_memory_mcp-0.1.0.tar.gz
Size 18.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a3869d38c88852ee378475dc72f6ec621180c299ceb8aa860d6b3eab57c93099
BLAKE2b-256 checksum
How to use checksums
7d0e14b35a622ef6f566f1d9d772ffedcf88539594840912f542427fb0a6f7e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

Release files / jev_memory_mcp-0.1.0-py3-none-any.whl

Download URL jev_memory_mcp-0.1.0-py3-none-any.whl
Size 14.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3a11c27e51cc7215d5f6b7f595c154c20a6c4e5fff2c727e21f02428c1ace46a
BLAKE2b-256 checksum
How to use checksums
eb25682d4a8fc8fd1363a7b21e06790686d7de3edebf6c876fc71eccb72481c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

Security for jev-memory-mcp 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page