jev-memory-mcp 0.1.0a1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- jev_memory_mcp/__init__.py +20 -0
- jev_memory_mcp/__main__.py +7 -0
- jev_memory_mcp/bridge.py +97 -0
- jev_memory_mcp/cli.py +115 -0
- jev_memory_mcp/client.py +268 -0
- jev_memory_mcp/protocol.py +81 -0
- jev_memory_mcp-0.1.0a1.dist-info/METADATA +207 -0
- jev_memory_mcp-0.1.0a1.dist-info/RECORD +12 -0
- jev_memory_mcp-0.1.0a1.dist-info/WHEEL +5 -0
- jev_memory_mcp-0.1.0a1.dist-info/entry_points.txt +2 -0
- jev_memory_mcp-0.1.0a1.dist-info/licenses/LICENSE +19 -0
- jev_memory_mcp-0.1.0a1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""Public MCP access layer and thin Python SDK for JEV Memory.
|
|
2
|
+
|
|
3
|
+
This package intentionally contains only the public protocol client, stdio-to-HTTP
|
|
4
|
+
MCP bridge, and CLI. Core graph formation, structural evolution, and mature graph
|
|
5
|
+
storage remain on your private JEV Memory service.
|
|
6
|
+
"""
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
|
|
9
|
+
from .client import JevMemoryClient, JevMemoryError
|
|
10
|
+
from .protocol import MCP_PROTOCOL_VERSION, PUBLIC_TOOLS
|
|
11
|
+
|
|
12
|
+
__version__ = "0.1.0a1"
|
|
13
|
+
|
|
14
|
+
__all__ = [
|
|
15
|
+
"__version__",
|
|
16
|
+
"MCP_PROTOCOL_VERSION",
|
|
17
|
+
"PUBLIC_TOOLS",
|
|
18
|
+
"JevMemoryClient",
|
|
19
|
+
"JevMemoryError",
|
|
20
|
+
]
|
jev_memory_mcp/bridge.py
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"""Stdio MCP JSON-RPC 2.0 bridge forwarding requests to a remote JEV Memory HTTP(S) service."""
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
import json
|
|
5
|
+
import sys
|
|
6
|
+
from typing import Any, BinaryIO, Dict, Optional, TextIO
|
|
7
|
+
|
|
8
|
+
from .client import JevMemoryClient, JevMemoryError
|
|
9
|
+
from .protocol import (
|
|
10
|
+
MAX_JSONRPC_FRAME_BYTES,
|
|
11
|
+
ProtocolError,
|
|
12
|
+
decode_jsonrpc_line,
|
|
13
|
+
jsonrpc_error,
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class StdioMCPBridge:
|
|
18
|
+
"""Bridges local MCP stdio clients (Claude Desktop, Cursor, Windsurf, Cline, Claude Code)
|
|
19
|
+
to a remote authenticated JEV Memory MCP HTTP(S) service.
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
def __init__(
|
|
23
|
+
self,
|
|
24
|
+
client: JevMemoryClient,
|
|
25
|
+
*,
|
|
26
|
+
stdin_buf: Optional[BinaryIO] = None,
|
|
27
|
+
stdout: Optional[TextIO] = None,
|
|
28
|
+
):
|
|
29
|
+
self.client = client
|
|
30
|
+
self.stdin_buf = stdin_buf if stdin_buf is not None else sys.stdin.buffer
|
|
31
|
+
self.stdout = stdout if stdout is not None else sys.stdout
|
|
32
|
+
|
|
33
|
+
def handle_message(self, req: Dict[str, Any]) -> Optional[Dict[str, Any]]:
|
|
34
|
+
method = str(req.get("method", ""))
|
|
35
|
+
has_id = "id" in req
|
|
36
|
+
req_id = req.get("id")
|
|
37
|
+
|
|
38
|
+
# Notifications carry no id and must not produce a JSON-RPC response.
|
|
39
|
+
if not has_id or method.startswith("notifications/"):
|
|
40
|
+
try:
|
|
41
|
+
self.client.send_rpc(req)
|
|
42
|
+
except JevMemoryError:
|
|
43
|
+
pass
|
|
44
|
+
return None
|
|
45
|
+
|
|
46
|
+
if method == "ping":
|
|
47
|
+
return {"jsonrpc": "2.0", "id": req_id, "result": {}}
|
|
48
|
+
|
|
49
|
+
try:
|
|
50
|
+
resp = self.client.send_rpc(req)
|
|
51
|
+
except JevMemoryError as exc:
|
|
52
|
+
return jsonrpc_error(req_id, exc.code or -32000, str(exc))
|
|
53
|
+
except Exception as exc:
|
|
54
|
+
return jsonrpc_error(req_id, -32603, f"Bridge error: {type(exc).__name__}")
|
|
55
|
+
|
|
56
|
+
if resp is None:
|
|
57
|
+
return jsonrpc_error(req_id, -32603, "Remote MCP server returned an empty response.")
|
|
58
|
+
return resp
|
|
59
|
+
|
|
60
|
+
def _emit(self, obj: Dict[str, Any]) -> None:
|
|
61
|
+
self.stdout.write(json.dumps(obj, ensure_ascii=False) + "\n")
|
|
62
|
+
self.stdout.flush()
|
|
63
|
+
|
|
64
|
+
def serve_forever(self) -> int:
|
|
65
|
+
"""Read newline-delimited JSON-RPC 2.0 requests from stdin until EOF."""
|
|
66
|
+
while True:
|
|
67
|
+
raw_line = self.stdin_buf.readline(MAX_JSONRPC_FRAME_BYTES + 1)
|
|
68
|
+
if not raw_line:
|
|
69
|
+
return 0
|
|
70
|
+
if len(raw_line) > MAX_JSONRPC_FRAME_BYTES and not raw_line.endswith(b"\n"):
|
|
71
|
+
# Drain remainder of oversized line so framing stays aligned.
|
|
72
|
+
while True:
|
|
73
|
+
chunk = self.stdin_buf.readline(4096)
|
|
74
|
+
if not chunk or chunk.endswith(b"\n"):
|
|
75
|
+
break
|
|
76
|
+
self._emit(
|
|
77
|
+
jsonrpc_error(
|
|
78
|
+
None,
|
|
79
|
+
-32600,
|
|
80
|
+
f"PAYLOAD_TOO_LARGE: request exceeds {MAX_JSONRPC_FRAME_BYTES} bytes.",
|
|
81
|
+
)
|
|
82
|
+
)
|
|
83
|
+
continue
|
|
84
|
+
try:
|
|
85
|
+
req = decode_jsonrpc_line(raw_line)
|
|
86
|
+
except json.JSONDecodeError:
|
|
87
|
+
self._emit(jsonrpc_error(None, -32700, "Parse error"))
|
|
88
|
+
continue
|
|
89
|
+
except ProtocolError as exc:
|
|
90
|
+
self._emit(jsonrpc_error(None, -32600, str(exc)))
|
|
91
|
+
continue
|
|
92
|
+
|
|
93
|
+
if req is None:
|
|
94
|
+
continue
|
|
95
|
+
resp = self.handle_message(req)
|
|
96
|
+
if resp is not None:
|
|
97
|
+
self._emit(resp)
|
jev_memory_mcp/cli.py
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"""CLI entrypoint for `jev-memory-mcp` (works with both `pip install` and `uvx`)."""
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
import argparse
|
|
5
|
+
import json
|
|
6
|
+
import os
|
|
7
|
+
import sys
|
|
8
|
+
from typing import List, Optional
|
|
9
|
+
|
|
10
|
+
from . import __version__
|
|
11
|
+
from .bridge import StdioMCPBridge
|
|
12
|
+
from .client import JevMemoryClient, JevMemoryError
|
|
13
|
+
from .protocol import ProtocolError
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def _print_client_config(endpoint: str) -> None:
|
|
17
|
+
cfg = {
|
|
18
|
+
"mcpServers": {
|
|
19
|
+
"jev-memory": {
|
|
20
|
+
"command": "uvx",
|
|
21
|
+
"args": ["jev-memory-mcp"],
|
|
22
|
+
"env": {
|
|
23
|
+
"JEV_MCP_ENDPOINT": endpoint,
|
|
24
|
+
"JEV_MCP_API_KEY": "<YOUR_JEV_MCP_API_KEY>",
|
|
25
|
+
},
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
sys.stdout.write(json.dumps(cfg, indent=2) + "\n")
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def build_parser() -> argparse.ArgumentParser:
|
|
33
|
+
p = argparse.ArgumentParser(
|
|
34
|
+
prog="jev-memory-mcp",
|
|
35
|
+
description="Public MCP stdio bridge & diagnostics CLI for JEV Memory.",
|
|
36
|
+
)
|
|
37
|
+
p.add_argument(
|
|
38
|
+
"--endpoint",
|
|
39
|
+
default=None,
|
|
40
|
+
help="Remote JEV Memory MCP endpoint URL (or set JEV_MCP_ENDPOINT).",
|
|
41
|
+
)
|
|
42
|
+
p.add_argument(
|
|
43
|
+
"--api-key",
|
|
44
|
+
default=None,
|
|
45
|
+
help="Bearer API key (prefer JEV_MCP_API_KEY env var over CLI flags).",
|
|
46
|
+
)
|
|
47
|
+
p.add_argument(
|
|
48
|
+
"--timeout",
|
|
49
|
+
type=float,
|
|
50
|
+
default=float(os.environ.get("JEV_MCP_TIMEOUT", "30")),
|
|
51
|
+
help="HTTP request timeout in seconds (default: 30).",
|
|
52
|
+
)
|
|
53
|
+
p.add_argument(
|
|
54
|
+
"--allow-insecure-http",
|
|
55
|
+
action="store_true",
|
|
56
|
+
default=os.environ.get("JEV_MCP_ALLOW_INSECURE_HTTP", "").lower() in ("1", "true", "yes"),
|
|
57
|
+
help="Allow plain http:// for non-loopback private network hosts.",
|
|
58
|
+
)
|
|
59
|
+
p.add_argument(
|
|
60
|
+
"--check",
|
|
61
|
+
action="store_true",
|
|
62
|
+
help="Verify remote /health, Bearer authentication, and tools/list, then exit.",
|
|
63
|
+
)
|
|
64
|
+
p.add_argument(
|
|
65
|
+
"--print-config",
|
|
66
|
+
action="store_true",
|
|
67
|
+
help="Print a ready-to-paste MCP client configuration JSON snippet and exit.",
|
|
68
|
+
)
|
|
69
|
+
p.add_argument(
|
|
70
|
+
"--version",
|
|
71
|
+
action="version",
|
|
72
|
+
version=f"jev-memory-mcp {__version__}",
|
|
73
|
+
)
|
|
74
|
+
return p
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
def main(argv: Optional[List[str]] = None) -> int:
|
|
78
|
+
args = build_parser().parse_args(argv)
|
|
79
|
+
|
|
80
|
+
if args.print_config:
|
|
81
|
+
ep = args.endpoint or os.environ.get("JEV_MCP_ENDPOINT") or "https://mcp.example.com/mcp"
|
|
82
|
+
_print_client_config(ep)
|
|
83
|
+
return 0
|
|
84
|
+
|
|
85
|
+
try:
|
|
86
|
+
client = JevMemoryClient(
|
|
87
|
+
endpoint=args.endpoint,
|
|
88
|
+
api_key=args.api_key,
|
|
89
|
+
timeout=args.timeout,
|
|
90
|
+
allow_insecure_http=args.allow_insecure_http,
|
|
91
|
+
)
|
|
92
|
+
except (ProtocolError, JevMemoryError) as exc:
|
|
93
|
+
sys.stderr.write(f"jev-memory-mcp configuration error: {exc}\n")
|
|
94
|
+
return 2
|
|
95
|
+
|
|
96
|
+
if args.check:
|
|
97
|
+
try:
|
|
98
|
+
health = client.health()
|
|
99
|
+
init = client.initialize(client_name="jev-memory-mcp-check", client_version=__version__)
|
|
100
|
+
tools = client.list_tools()
|
|
101
|
+
out = {
|
|
102
|
+
"status": "ok",
|
|
103
|
+
"endpoint": client.endpoint,
|
|
104
|
+
"health": health,
|
|
105
|
+
"serverInfo": init.get("serverInfo"),
|
|
106
|
+
"tools": [t.get("name") for t in tools],
|
|
107
|
+
}
|
|
108
|
+
sys.stdout.write(json.dumps(out, indent=2) + "\n")
|
|
109
|
+
return 0
|
|
110
|
+
except JevMemoryError as exc:
|
|
111
|
+
sys.stderr.write(f"jev-memory-mcp check failed: {exc}\n")
|
|
112
|
+
return 1
|
|
113
|
+
|
|
114
|
+
bridge = StdioMCPBridge(client)
|
|
115
|
+
return bridge.serve_forever()
|
jev_memory_mcp/client.py
ADDED
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
"""Public thin Python SDK for calling a remote JEV Memory MCP service.
|
|
2
|
+
|
|
3
|
+
Zero third-party dependencies. Never stores or bundles private graph engines.
|
|
4
|
+
"""
|
|
5
|
+
from __future__ import annotations
|
|
6
|
+
|
|
7
|
+
import json
|
|
8
|
+
import os
|
|
9
|
+
import ssl
|
|
10
|
+
import urllib.error
|
|
11
|
+
import urllib.request
|
|
12
|
+
from typing import Any, Dict, List, Optional
|
|
13
|
+
|
|
14
|
+
from .protocol import (
|
|
15
|
+
MAX_JSONRPC_FRAME_BYTES,
|
|
16
|
+
MCP_PROTOCOL_VERSION,
|
|
17
|
+
health_url_from_endpoint,
|
|
18
|
+
normalize_mcp_endpoint,
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class JevMemoryError(RuntimeError):
|
|
23
|
+
"""Sanitized client error raised when the remote JEV Memory service rejects or fails a call."""
|
|
24
|
+
|
|
25
|
+
def __init__(self, message: str, *, status_code: Optional[int] = None, code: Optional[int] = None):
|
|
26
|
+
super().__init__(message)
|
|
27
|
+
self.status_code = status_code
|
|
28
|
+
self.code = code
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class JevMemoryClient:
|
|
32
|
+
"""Thin HTTPS/HTTP JSON-RPC 2.0 client for a remote JEV Memory MCP service."""
|
|
33
|
+
|
|
34
|
+
def __init__(
|
|
35
|
+
self,
|
|
36
|
+
endpoint: Optional[str] = None,
|
|
37
|
+
api_key: Optional[str] = None,
|
|
38
|
+
*,
|
|
39
|
+
timeout: float = 30.0,
|
|
40
|
+
allow_insecure_http: bool = False,
|
|
41
|
+
ssl_context: Optional[ssl.SSLContext] = None,
|
|
42
|
+
):
|
|
43
|
+
raw_endpoint = endpoint if endpoint is not None else os.environ.get("JEV_MCP_ENDPOINT", "")
|
|
44
|
+
raw_key = api_key if api_key is not None else os.environ.get("JEV_MCP_API_KEY", "")
|
|
45
|
+
self.endpoint = normalize_mcp_endpoint(raw_endpoint, allow_insecure_http=allow_insecure_http)
|
|
46
|
+
self._api_key = raw_key.strip()
|
|
47
|
+
if not self._api_key:
|
|
48
|
+
raise JevMemoryError(
|
|
49
|
+
"JEV_MCP_API_KEY is required to authenticate with the remote JEV Memory service."
|
|
50
|
+
)
|
|
51
|
+
self.timeout = float(timeout)
|
|
52
|
+
self._ssl_context = ssl_context or ssl.create_default_context()
|
|
53
|
+
self._next_id = 0
|
|
54
|
+
|
|
55
|
+
def __repr__(self) -> str:
|
|
56
|
+
return f"JevMemoryClient(endpoint={self.endpoint!r}, api_key='***')"
|
|
57
|
+
|
|
58
|
+
def health(self) -> Dict[str, Any]:
|
|
59
|
+
"""Check remote service health via GET /health."""
|
|
60
|
+
url = health_url_from_endpoint(self.endpoint)
|
|
61
|
+
req = urllib.request.Request(
|
|
62
|
+
url,
|
|
63
|
+
method="GET",
|
|
64
|
+
headers={"Accept": "application/json", "User-Agent": "jev-memory-mcp/0.1.0"},
|
|
65
|
+
)
|
|
66
|
+
try:
|
|
67
|
+
with urllib.request.urlopen(req, timeout=self.timeout, context=self._ssl_context) as resp:
|
|
68
|
+
return json.loads(resp.read().decode("utf-8"))
|
|
69
|
+
except urllib.error.HTTPError as exc:
|
|
70
|
+
raise JevMemoryError(f"Health check failed (HTTP {exc.code}).", status_code=exc.code) from None
|
|
71
|
+
except urllib.error.URLError as exc:
|
|
72
|
+
raise JevMemoryError(f"Unable to reach JEV Memory service: {exc.reason}") from None
|
|
73
|
+
|
|
74
|
+
def send_rpc(self, payload: Dict[str, Any]) -> Optional[Dict[str, Any]]:
|
|
75
|
+
"""Forward a raw JSON-RPC 2.0 request to POST /mcp and return the decoded response."""
|
|
76
|
+
body = json.dumps(payload, ensure_ascii=False).encode("utf-8")
|
|
77
|
+
if len(body) > MAX_JSONRPC_FRAME_BYTES:
|
|
78
|
+
raise JevMemoryError(
|
|
79
|
+
f"Request payload exceeds {MAX_JSONRPC_FRAME_BYTES} bytes.",
|
|
80
|
+
status_code=413,
|
|
81
|
+
code=-32600,
|
|
82
|
+
)
|
|
83
|
+
req = urllib.request.Request(
|
|
84
|
+
self.endpoint,
|
|
85
|
+
data=body,
|
|
86
|
+
method="POST",
|
|
87
|
+
headers={
|
|
88
|
+
"Content-Type": "application/json; charset=utf-8",
|
|
89
|
+
"Accept": "application/json",
|
|
90
|
+
"Authorization": f"Bearer {self._api_key}",
|
|
91
|
+
"User-Agent": "jev-memory-mcp/0.1.0",
|
|
92
|
+
},
|
|
93
|
+
)
|
|
94
|
+
try:
|
|
95
|
+
with urllib.request.urlopen(req, timeout=self.timeout, context=self._ssl_context) as resp:
|
|
96
|
+
if resp.status == 202:
|
|
97
|
+
return None
|
|
98
|
+
raw = resp.read()
|
|
99
|
+
if not raw:
|
|
100
|
+
return None
|
|
101
|
+
return json.loads(raw.decode("utf-8"))
|
|
102
|
+
except urllib.error.HTTPError as exc:
|
|
103
|
+
if exc.code == 401:
|
|
104
|
+
raise JevMemoryError(
|
|
105
|
+
"Authentication failed (HTTP 401): check JEV_MCP_API_KEY.",
|
|
106
|
+
status_code=401,
|
|
107
|
+
code=-32001,
|
|
108
|
+
) from None
|
|
109
|
+
if exc.code == 413:
|
|
110
|
+
raise JevMemoryError(
|
|
111
|
+
"Payload rejected by server (HTTP 413): request too large.",
|
|
112
|
+
status_code=413,
|
|
113
|
+
code=-32600,
|
|
114
|
+
) from None
|
|
115
|
+
if exc.code == 429:
|
|
116
|
+
raise JevMemoryError(
|
|
117
|
+
"Rate limit exceeded (HTTP 429): retry later.",
|
|
118
|
+
status_code=429,
|
|
119
|
+
code=-32002,
|
|
120
|
+
) from None
|
|
121
|
+
raise JevMemoryError(
|
|
122
|
+
f"Remote MCP server returned HTTP {exc.code}.",
|
|
123
|
+
status_code=exc.code,
|
|
124
|
+
code=-32000,
|
|
125
|
+
) from None
|
|
126
|
+
except urllib.error.URLError as exc:
|
|
127
|
+
raise JevMemoryError(
|
|
128
|
+
f"Connection error talking to JEV Memory service: {exc.reason}",
|
|
129
|
+
code=-32003,
|
|
130
|
+
) from None
|
|
131
|
+
except TimeoutError:
|
|
132
|
+
raise JevMemoryError(
|
|
133
|
+
f"Request timed out after {self.timeout:.1f}s.",
|
|
134
|
+
code=-32004,
|
|
135
|
+
) from None
|
|
136
|
+
|
|
137
|
+
def _rpc(self, method: str, params: Optional[Dict[str, Any]] = None) -> Dict[str, Any]:
|
|
138
|
+
self._next_id += 1
|
|
139
|
+
req: Dict[str, Any] = {"jsonrpc": "2.0", "id": self._next_id, "method": method}
|
|
140
|
+
if params is not None:
|
|
141
|
+
req["params"] = params
|
|
142
|
+
resp = self.send_rpc(req)
|
|
143
|
+
if not isinstance(resp, dict):
|
|
144
|
+
raise JevMemoryError("Empty response from remote MCP server.")
|
|
145
|
+
if "error" in resp:
|
|
146
|
+
err = resp["error"]
|
|
147
|
+
raise JevMemoryError(
|
|
148
|
+
str(err.get("message", "JSON-RPC error")),
|
|
149
|
+
code=err.get("code"),
|
|
150
|
+
)
|
|
151
|
+
return resp.get("result", {})
|
|
152
|
+
|
|
153
|
+
def initialize(self, client_name: str = "jev-memory-sdk", client_version: str = "0.1.0") -> Dict[str, Any]:
|
|
154
|
+
"""Perform the MCP initialize handshake."""
|
|
155
|
+
return self._rpc(
|
|
156
|
+
"initialize",
|
|
157
|
+
{
|
|
158
|
+
"protocolVersion": MCP_PROTOCOL_VERSION,
|
|
159
|
+
"clientInfo": {"name": client_name, "version": client_version},
|
|
160
|
+
"capabilities": {},
|
|
161
|
+
},
|
|
162
|
+
)
|
|
163
|
+
|
|
164
|
+
def list_tools(self) -> List[Dict[str, Any]]:
|
|
165
|
+
"""List available MCP tools on the remote JEV Memory service."""
|
|
166
|
+
res = self._rpc("tools/list", {})
|
|
167
|
+
return list(res.get("tools", []))
|
|
168
|
+
|
|
169
|
+
def call_tool(self, name: str, arguments: Optional[Dict[str, Any]] = None) -> Dict[str, Any]:
|
|
170
|
+
"""Call an MCP tool by name and return its parsed JSON payload."""
|
|
171
|
+
res = self._rpc("tools/call", {"name": name, "arguments": arguments or {}})
|
|
172
|
+
content = res.get("content") or []
|
|
173
|
+
text = content[0].get("text", "") if content and isinstance(content[0], dict) else ""
|
|
174
|
+
if res.get("isError"):
|
|
175
|
+
raise JevMemoryError(text or f"Tool {name} failed.")
|
|
176
|
+
try:
|
|
177
|
+
return json.loads(text)
|
|
178
|
+
except Exception:
|
|
179
|
+
return {"text": text}
|
|
180
|
+
|
|
181
|
+
# ── High-level typed helpers matching JEV V3.3 MCP tools ──────────────────
|
|
182
|
+
|
|
183
|
+
def recall(
|
|
184
|
+
self,
|
|
185
|
+
query: str,
|
|
186
|
+
*,
|
|
187
|
+
model_id: str = "",
|
|
188
|
+
token_budget: int = 1200,
|
|
189
|
+
top_k: int = 3,
|
|
190
|
+
) -> Dict[str, Any]:
|
|
191
|
+
"""Read-only retrieval of verified experiences matching `query`."""
|
|
192
|
+
return self.call_tool(
|
|
193
|
+
"jev_recall",
|
|
194
|
+
{
|
|
195
|
+
"query": query,
|
|
196
|
+
"model_id": model_id,
|
|
197
|
+
"token_budget": token_budget,
|
|
198
|
+
"top_k": top_k,
|
|
199
|
+
},
|
|
200
|
+
)
|
|
201
|
+
|
|
202
|
+
def learn(
|
|
203
|
+
self,
|
|
204
|
+
task_text: str,
|
|
205
|
+
helper_code: str,
|
|
206
|
+
*,
|
|
207
|
+
evidence: str = "",
|
|
208
|
+
scope: str = "general",
|
|
209
|
+
task_id: str = "",
|
|
210
|
+
model_id: str = "",
|
|
211
|
+
) -> Dict[str, Any]:
|
|
212
|
+
"""Submit a newly verified engineering experience to your tenant graph."""
|
|
213
|
+
return self.call_tool(
|
|
214
|
+
"jev_learn",
|
|
215
|
+
{
|
|
216
|
+
"task_text": task_text,
|
|
217
|
+
"helper_code": helper_code,
|
|
218
|
+
"evidence": evidence,
|
|
219
|
+
"scope": scope,
|
|
220
|
+
"task_id": task_id,
|
|
221
|
+
"model_id": model_id,
|
|
222
|
+
},
|
|
223
|
+
)
|
|
224
|
+
|
|
225
|
+
def record(
|
|
226
|
+
self,
|
|
227
|
+
node_ids: List[str],
|
|
228
|
+
*,
|
|
229
|
+
passed: bool,
|
|
230
|
+
mode: str = "M1",
|
|
231
|
+
model_id: str = "",
|
|
232
|
+
tokens_used: int = 0,
|
|
233
|
+
task_id: str = "",
|
|
234
|
+
ci_error_before: str = "",
|
|
235
|
+
ci_passed_after: bool = False,
|
|
236
|
+
) -> Dict[str, Any]:
|
|
237
|
+
"""Submit verification feedback for previously recalled node IDs."""
|
|
238
|
+
return self.call_tool(
|
|
239
|
+
"jev_record",
|
|
240
|
+
{
|
|
241
|
+
"node_ids": list(node_ids),
|
|
242
|
+
"mode": mode,
|
|
243
|
+
"model_id": model_id,
|
|
244
|
+
"passed": bool(passed),
|
|
245
|
+
"tokens_used": int(tokens_used),
|
|
246
|
+
"task_id": task_id,
|
|
247
|
+
"ci_error_before": ci_error_before,
|
|
248
|
+
"ci_passed_after": bool(ci_passed_after),
|
|
249
|
+
},
|
|
250
|
+
)
|
|
251
|
+
|
|
252
|
+
def stats(self) -> Dict[str, Any]:
|
|
253
|
+
"""Fetch sanitized tenant graph and routing statistics."""
|
|
254
|
+
return self.call_tool("jev_stats", {})
|
|
255
|
+
|
|
256
|
+
def export_mature(self, out_path: str, *, min_lifecycle: str = "MATURE") -> Dict[str, Any]:
|
|
257
|
+
"""Request a jailed mature subgraph export (simple .json filename only)."""
|
|
258
|
+
return self.call_tool(
|
|
259
|
+
"jev_export_mature",
|
|
260
|
+
{"out_path": out_path, "min_lifecycle": min_lifecycle},
|
|
261
|
+
)
|
|
262
|
+
|
|
263
|
+
def snapshot(self, out_path: Optional[str] = None) -> Dict[str, Any]:
|
|
264
|
+
"""Request a jailed full snapshot (optional simple .json filename only)."""
|
|
265
|
+
args: Dict[str, Any] = {}
|
|
266
|
+
if out_path is not None:
|
|
267
|
+
args["out_path"] = out_path
|
|
268
|
+
return self.call_tool("jev_snapshot", args)
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"""MCP protocol constants and safe input/endpoint validation helpers."""
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
import json
|
|
5
|
+
import urllib.parse
|
|
6
|
+
from typing import Any, Dict, Optional, Tuple
|
|
7
|
+
|
|
8
|
+
MCP_PROTOCOL_VERSION = "2024-11-05"
|
|
9
|
+
MAX_JSONRPC_FRAME_BYTES = 65_536
|
|
10
|
+
|
|
11
|
+
PUBLIC_TOOLS: Tuple[str, ...] = (
|
|
12
|
+
"jev_recall",
|
|
13
|
+
"jev_learn",
|
|
14
|
+
"jev_record",
|
|
15
|
+
"jev_stats",
|
|
16
|
+
"jev_export_mature",
|
|
17
|
+
"jev_snapshot",
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
_LOOPBACK_HOSTS = {"127.0.0.1", "localhost", "::1"}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class ProtocolError(ValueError):
|
|
24
|
+
"""Raised when an MCP endpoint URL or JSON-RPC message violates safety rules."""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def normalize_mcp_endpoint(raw_url: str, *, allow_insecure_http: bool = False) -> str:
|
|
28
|
+
"""Validate and normalize the remote JEV Memory MCP endpoint URL.
|
|
29
|
+
|
|
30
|
+
Plain HTTP is allowed only for loopback addresses unless `allow_insecure_http=True`.
|
|
31
|
+
"""
|
|
32
|
+
if not raw_url or not isinstance(raw_url, str):
|
|
33
|
+
raise ProtocolError(
|
|
34
|
+
"JEV_MCP_ENDPOINT is required (e.g. https://mcp.example.com/mcp or http://127.0.0.1:8765/mcp)."
|
|
35
|
+
)
|
|
36
|
+
url = raw_url.strip()
|
|
37
|
+
parsed = urllib.parse.urlparse(url)
|
|
38
|
+
if parsed.scheme not in ("https", "http"):
|
|
39
|
+
raise ProtocolError("Endpoint URL must use https:// (or http:// for localhost).")
|
|
40
|
+
if not parsed.hostname:
|
|
41
|
+
raise ProtocolError("Endpoint URL must include a valid hostname.")
|
|
42
|
+
if parsed.username or parsed.password:
|
|
43
|
+
raise ProtocolError("Do not embed credentials in the endpoint URL; use JEV_MCP_API_KEY.")
|
|
44
|
+
host = parsed.hostname.lower()
|
|
45
|
+
if parsed.scheme == "http" and host not in _LOOPBACK_HOSTS and not allow_insecure_http:
|
|
46
|
+
raise ProtocolError(
|
|
47
|
+
"Refusing plain http:// for a non-loopback host. Use https:// or pass --allow-insecure-http for private networks."
|
|
48
|
+
)
|
|
49
|
+
path = parsed.path or "/mcp"
|
|
50
|
+
if path == "/":
|
|
51
|
+
path = "/mcp"
|
|
52
|
+
return urllib.parse.urlunparse((parsed.scheme, parsed.netloc, path, "", "", ""))
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def health_url_from_endpoint(mcp_url: str) -> str:
|
|
56
|
+
"""Derive the /health URL from a normalized /mcp endpoint."""
|
|
57
|
+
parsed = urllib.parse.urlparse(mcp_url)
|
|
58
|
+
base_path = parsed.path[:-4] if parsed.path.endswith("/mcp") else parsed.path.rstrip("/")
|
|
59
|
+
return urllib.parse.urlunparse((parsed.scheme, parsed.netloc, f"{base_path}/health", "", "", ""))
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
def jsonrpc_error(req_id: Any, code: int, message: str) -> Dict[str, Any]:
|
|
63
|
+
"""Construct a standard JSON-RPC 2.0 error envelope."""
|
|
64
|
+
return {
|
|
65
|
+
"jsonrpc": "2.0",
|
|
66
|
+
"id": req_id,
|
|
67
|
+
"error": {"code": code, "message": message},
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
def decode_jsonrpc_line(raw_line: bytes) -> Optional[Dict[str, Any]]:
|
|
72
|
+
"""Decode one newline-delimited JSON-RPC frame with a strict size cap."""
|
|
73
|
+
if len(raw_line) > MAX_JSONRPC_FRAME_BYTES:
|
|
74
|
+
raise ProtocolError(f"PAYLOAD_TOO_LARGE: frame exceeds {MAX_JSONRPC_FRAME_BYTES} bytes.")
|
|
75
|
+
text = raw_line.decode("utf-8", errors="replace").strip()
|
|
76
|
+
if not text:
|
|
77
|
+
return None
|
|
78
|
+
obj = json.loads(text)
|
|
79
|
+
if not isinstance(obj, dict):
|
|
80
|
+
raise ProtocolError("Invalid JSON-RPC request: expected a JSON object.")
|
|
81
|
+
return obj
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: jev-memory-mcp
|
|
3
|
+
Version: 0.1.0a1
|
|
4
|
+
Summary: Public MCP access layer and Python SDK for JEV Memory — Different models. Shared experience. Growing capability.
|
|
5
|
+
Author: JEV Memory Maintainers
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/NOyu015/jev-memory-mcp
|
|
8
|
+
Project-URL: Documentation, https://github.com/NOyu015/jev-memory-mcp#readme
|
|
9
|
+
Project-URL: Issues, https://github.com/NOyu015/jev-memory-mcp/issues
|
|
10
|
+
Keywords: mcp,model-context-protocol,ai-memory,jev-memory,agent-memory,llm
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
21
|
+
Requires-Python: >=3.9
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
License-File: LICENSE
|
|
24
|
+
Provides-Extra: dev
|
|
25
|
+
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
26
|
+
Dynamic: license-file
|
|
27
|
+
|
|
28
|
+
# JEV Memory MCP (`jev-memory-mcp`)
|
|
29
|
+
|
|
30
|
+
**JEV Memory — Different models. Shared experience. Growing capability.**
|
|
31
|
+
|
|
32
|
+
`jev-memory-mcp` is the public, zero-dependency [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) 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.
|
|
33
|
+
|
|
34
|
+
> **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`.
|
|
35
|
+
|
|
36
|
+
## Why JEV Memory?
|
|
37
|
+
|
|
38
|
+
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.
|
|
39
|
+
|
|
40
|
+
### Benchmark Scope (Transparent Disclosure)
|
|
41
|
+
|
|
42
|
+
In our controlled 100-task evaluation against Basic RAG using the same base model and budget:
|
|
43
|
+
- **Overall completion (100 tasks):** JEV V3.3 `75%` vs Basic RAG `77%`
|
|
44
|
+
- **Complex multi-step tasks (34 tasks):** JEV V3.3 `67.6%` vs Basic RAG `52.9%`
|
|
45
|
+
|
|
46
|
+
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.
|
|
47
|
+
|
|
48
|
+
## Installation
|
|
49
|
+
|
|
50
|
+
Requires Python 3.9+ (zero third-party runtime dependencies).
|
|
51
|
+
|
|
52
|
+
### Option A: Run directly with `uvx` (recommended for MCP hosts)
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
uvx jev-memory-mcp --version
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Option B: Install with `pip`
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
pip install jev-memory-mcp
|
|
62
|
+
jev-memory-mcp --version
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Quick Start & Connection Check
|
|
66
|
+
|
|
67
|
+
Set your JEV Memory service endpoint and Bearer API key as environment variables (never hardcode keys in committed files):
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
export JEV_MCP_ENDPOINT="https://your-jev-service.example.com/mcp"
|
|
71
|
+
export JEV_MCP_API_KEY="your-bearer-token"
|
|
72
|
+
|
|
73
|
+
# Verify /health, Bearer authentication, and tools/list
|
|
74
|
+
jev-memory-mcp --check
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
To print a ready-to-paste MCP client configuration snippet:
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
jev-memory-mcp --print-config --endpoint "https://your-jev-service.example.com/mcp"
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## MCP Client Configuration
|
|
84
|
+
|
|
85
|
+
### Claude Desktop (`claude_desktop_config.json`)
|
|
86
|
+
|
|
87
|
+
```json
|
|
88
|
+
{
|
|
89
|
+
"mcpServers": {
|
|
90
|
+
"jev-memory": {
|
|
91
|
+
"command": "uvx",
|
|
92
|
+
"args": ["jev-memory-mcp"],
|
|
93
|
+
"env": {
|
|
94
|
+
"JEV_MCP_ENDPOINT": "https://your-jev-service.example.com/mcp",
|
|
95
|
+
"JEV_MCP_API_KEY": "<YOUR_JEV_MCP_API_KEY>"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Cursor (`.cursor/mcp.json`)
|
|
103
|
+
|
|
104
|
+
```json
|
|
105
|
+
{
|
|
106
|
+
"mcpServers": {
|
|
107
|
+
"jev-memory": {
|
|
108
|
+
"command": "jev-memory-mcp",
|
|
109
|
+
"args": [],
|
|
110
|
+
"env": {
|
|
111
|
+
"JEV_MCP_ENDPOINT": "https://your-jev-service.example.com/mcp",
|
|
112
|
+
"JEV_MCP_API_KEY": "<YOUR_JEV_MCP_API_KEY>"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
See `examples/` for additional configuration templates and a runnable Python SDK walkthrough.
|
|
120
|
+
|
|
121
|
+
## Available MCP Tools
|
|
122
|
+
|
|
123
|
+
| Tool | Mode | Purpose |
|
|
124
|
+
|---|---|---|
|
|
125
|
+
| `jev_recall` | Read-only | Retrieve verified experience matching a task query (`M0`/`M1`/`M2`/`M3` adaptive routing). Never mutates graph state. |
|
|
126
|
+
| `jev_learn` | Write (gated) | Record a newly verified engineering helper/pattern with verification evidence. |
|
|
127
|
+
| `jev_record` | Feedback | Submit pass/fail verification feedback for recalled node IDs to update trust, maturity, or quarantine status. |
|
|
128
|
+
| `jev_stats` | Read-only | Inspect tenant graph counts, lifecycle distribution, and routing stats. |
|
|
129
|
+
| `jev_export_mature` | Export (jailed) | Export verified `MATURE`/`CORE` subgraphs to a server-jailed `.json` filename (no overwrite). |
|
|
130
|
+
| `jev_snapshot` | Snapshot (jailed) | Create an atomic server-jailed full snapshot (no overwrite). |
|
|
131
|
+
|
|
132
|
+
## Feedback Submission & Host Support Matrix
|
|
133
|
+
|
|
134
|
+
MCP exposes tools to the host LLM, **but the MCP specification itself does not force a host to call tools or submit feedback automatically.**
|
|
135
|
+
|
|
136
|
+
| MCP Host | Tool Discovery & Manual Call | Automatic Recall / Feedback | Recommended Workflow |
|
|
137
|
+
|---|---|---|---|
|
|
138
|
+
| Claude Desktop | Supported | No (prompt-driven) | Instruct Claude to call `jev_recall` before coding and `jev_record`/`jev_learn` after tests pass. |
|
|
139
|
+
| 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. |
|
|
140
|
+
| 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. |
|
|
141
|
+
| Python SDK (`JevMemoryClient`) | Direct programmatic control | Full control | Call `client.recall(...)`, run your verifier, then call `client.record(...)` / `client.learn(...)`. |
|
|
142
|
+
|
|
143
|
+
## Python SDK Example
|
|
144
|
+
|
|
145
|
+
```python
|
|
146
|
+
import os
|
|
147
|
+
from jev_memory_mcp import JevMemoryClient
|
|
148
|
+
|
|
149
|
+
client = JevMemoryClient(
|
|
150
|
+
endpoint=os.environ["JEV_MCP_ENDPOINT"],
|
|
151
|
+
api_key=os.environ["JEV_MCP_API_KEY"],
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
# 1. Read-only recall before solving a task
|
|
155
|
+
recalled = client.recall("parse iso8601 timestamp safely into YYYY-MM-DD", model_id="claude-sonnet")
|
|
156
|
+
|
|
157
|
+
# 2. Submit a verified helper after your tests pass
|
|
158
|
+
learned = client.learn(
|
|
159
|
+
task_text="parse iso8601 timestamp safely into YYYY-MM-DD",
|
|
160
|
+
helper_code=(
|
|
161
|
+
"from datetime import datetime\n"
|
|
162
|
+
"def parse_iso_date(s: str) -> str:\n"
|
|
163
|
+
" return datetime.fromisoformat(s.replace('Z', '+00:00')).strftime('%Y-%m-%d')\n"
|
|
164
|
+
),
|
|
165
|
+
evidence="pytest: 12/12 passed",
|
|
166
|
+
task_id="PROJ-101",
|
|
167
|
+
model_id="claude-sonnet",
|
|
168
|
+
)
|
|
169
|
+
|
|
170
|
+
# 3. Record verification feedback in a later session or different model
|
|
171
|
+
client.record(
|
|
172
|
+
[learned["node_id"]],
|
|
173
|
+
passed=True,
|
|
174
|
+
mode="M1",
|
|
175
|
+
model_id="cursor-agent",
|
|
176
|
+
task_id="PROJ-102",
|
|
177
|
+
)
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
## Authentication, Security & Data Privacy
|
|
181
|
+
|
|
182
|
+
- **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.
|
|
183
|
+
- **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.
|
|
184
|
+
- **Frame size cap:** Both stdio and HTTP requests enforce a strict `65,536`-byte JSON-RPC frame limit.
|
|
185
|
+
- **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.
|
|
186
|
+
- **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`.
|
|
187
|
+
|
|
188
|
+
## Troubleshooting
|
|
189
|
+
|
|
190
|
+
- **`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`.
|
|
191
|
+
- **`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.
|
|
192
|
+
- **`Authentication failed (HTTP 401)`:** Verify your Bearer token matches an active key configured on the JEV Memory service.
|
|
193
|
+
- **`Rate limit exceeded (HTTP 429)`:** Reduce burst frequency or increase the tenant rate limit on your JEV Memory service.
|
|
194
|
+
|
|
195
|
+
## Known Limitations
|
|
196
|
+
|
|
197
|
+
- Requires a running JEV Memory MCP HTTP(S) service; this package does not ship a local graph engine.
|
|
198
|
+
- Automatic recall and post-verification feedback depend on your MCP host's rules/hooks or explicit prompting.
|
|
199
|
+
- Cross-platform verification status is documented per release in the release audit report.
|
|
200
|
+
|
|
201
|
+
## JEV Ecosystem
|
|
202
|
+
|
|
203
|
+
`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.
|
|
204
|
+
|
|
205
|
+
## License
|
|
206
|
+
|
|
207
|
+
Apache-2.0. See `LICENSE`.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
jev_memory_mcp/__init__.py,sha256=wxeDg4B1e9GhfDFyEDh_eosCmb1tUKTV9MSe7fL00OU,581
|
|
2
|
+
jev_memory_mcp/__main__.py,sha256=LwzOkgL97mOYLMNDGrcamG8_9Hbku7WzKhe-HfGprrU,166
|
|
3
|
+
jev_memory_mcp/bridge.py,sha256=ATUhN_y5cMZKEg1BjIfTccTMbLKFMzfZnaog5bxMJb0,3460
|
|
4
|
+
jev_memory_mcp/cli.py,sha256=7iVaynM4FIH6HUhtKJY2FpSdhwoHAiOQLZydLCGZ0lg,3590
|
|
5
|
+
jev_memory_mcp/client.py,sha256=2_warma3cdD2gCzYbv_LmYE5OdWjd_x6difrtY0W1q0,10059
|
|
6
|
+
jev_memory_mcp/protocol.py,sha256=AmN6igkRzkbAJYwcE-Q2z7bEU4dpW--MncHCFoP4vEw,3106
|
|
7
|
+
jev_memory_mcp-0.1.0a1.dist-info/licenses/LICENSE,sha256=sgwkIhp16W3Df53e1w3LP0uHGvOU7EHnEkO7Twc2nTU,699
|
|
8
|
+
jev_memory_mcp-0.1.0a1.dist-info/METADATA,sha256=HWhHaNP__O1q6UdaLKFN78cyOqMtIxkZfRtXC2e_YQ8,9621
|
|
9
|
+
jev_memory_mcp-0.1.0a1.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
10
|
+
jev_memory_mcp-0.1.0a1.dist-info/entry_points.txt,sha256=Vjagz-moK4GdWdAJi1YGDHF5jZNlLhsuCvP9cUjM1TM,59
|
|
11
|
+
jev_memory_mcp-0.1.0a1.dist-info/top_level.txt,sha256=1n5Z-Vkj_iFWzW1_xuzFMHNccfimiP7wpZJIxbfkTk8,15
|
|
12
|
+
jev_memory_mcp-0.1.0a1.dist-info/RECORD,,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
Copyright 2026 JEV Memory Maintainers
|
|
8
|
+
|
|
9
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
you may not use this file except in compliance with the License.
|
|
11
|
+
You may obtain a copy of the License at
|
|
12
|
+
|
|
13
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
|
|
15
|
+
Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
See the License for the specific language governing permissions and
|
|
19
|
+
limitations under the License.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
jev_memory_mcp
|