memory-bridge-mcp 1.2.0__tar.gz
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.
- memory_bridge_mcp-1.2.0/LICENSE +21 -0
- memory_bridge_mcp-1.2.0/NOTICE.md +29 -0
- memory_bridge_mcp-1.2.0/PKG-INFO +126 -0
- memory_bridge_mcp-1.2.0/README.md +101 -0
- memory_bridge_mcp-1.2.0/pyproject.toml +38 -0
- memory_bridge_mcp-1.2.0/setup.cfg +4 -0
- memory_bridge_mcp-1.2.0/src/memory_bridge/__init__.py +7 -0
- memory_bridge_mcp-1.2.0/src/memory_bridge/__main__.py +6 -0
- memory_bridge_mcp-1.2.0/src/memory_bridge/mind/__init__.py +1 -0
- memory_bridge_mcp-1.2.0/src/memory_bridge/mind/mind.py +1526 -0
- memory_bridge_mcp-1.2.0/src/memory_bridge/server.py +1301 -0
- memory_bridge_mcp-1.2.0/src/memory_bridge_mcp.egg-info/PKG-INFO +126 -0
- memory_bridge_mcp-1.2.0/src/memory_bridge_mcp.egg-info/SOURCES.txt +15 -0
- memory_bridge_mcp-1.2.0/src/memory_bridge_mcp.egg-info/dependency_links.txt +1 -0
- memory_bridge_mcp-1.2.0/src/memory_bridge_mcp.egg-info/entry_points.txt +2 -0
- memory_bridge_mcp-1.2.0/src/memory_bridge_mcp.egg-info/top_level.txt +1 -0
- memory_bridge_mcp-1.2.0/tests/test_server.py +405 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 LE-VAI
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Notices
|
|
2
|
+
|
|
3
|
+
Memory Bridge is distributed as source code under the MIT License.
|
|
4
|
+
|
|
5
|
+
This repository does not bundle Honcho, Ollama, or any external services.
|
|
6
|
+
|
|
7
|
+
## Third-party components
|
|
8
|
+
|
|
9
|
+
### Mind concept graph
|
|
10
|
+
|
|
11
|
+
The vendored `mind/` module is a local concept-graph memory system.
|
|
12
|
+
|
|
13
|
+
- Source: ATLAS project
|
|
14
|
+
- License: MIT
|
|
15
|
+
|
|
16
|
+
### Honcho
|
|
17
|
+
|
|
18
|
+
Honcho is used as a semantic vector memory store.
|
|
19
|
+
|
|
20
|
+
- Project: https://github.com/aphoh/honcho
|
|
21
|
+
- License: MIT
|
|
22
|
+
- Distribution note: this repository does not bundle Honcho. Users install and run Honcho separately.
|
|
23
|
+
|
|
24
|
+
### Ollama
|
|
25
|
+
|
|
26
|
+
Ollama is used optionally for LLM-powered memory synthesis.
|
|
27
|
+
|
|
28
|
+
- Project: https://ollama.ai
|
|
29
|
+
- Distribution note: this repository does not bundle Ollama. Users install and run Ollama separately.
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
|
+
Name: memory-bridge-mcp
|
|
3
|
+
Version: 1.2.0
|
|
4
|
+
Summary: Unified MCP memory server bridging Mind (concept graph) and Honcho (semantic vector) memory with episodic timeline and LLM synthesis
|
|
5
|
+
Author: LE-VAI
|
|
6
|
+
License: MIT License
|
|
7
|
+
Project-URL: Homepage, https://github.com/LE-VAI/memory-bridge
|
|
8
|
+
Project-URL: Repository, https://github.com/LE-VAI/memory-bridge
|
|
9
|
+
Project-URL: Documentation, https://github.com/LE-VAI/memory-bridge#readme
|
|
10
|
+
Keywords: mcp,memory,mind,honcho,llm,synthesis,agent
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
21
|
+
Requires-Python: >=3.10
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
License-File: LICENSE
|
|
24
|
+
License-File: NOTICE.md
|
|
25
|
+
|
|
26
|
+
# Memory Bridge MCP
|
|
27
|
+
|
|
28
|
+
**Unified MCP memory server** — bridges Mind (concept graph) and Honcho (semantic vector) memory with episodic timeline and LLM synthesis into a single MCP query surface.
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
pip install memory-bridge-mcp
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## What it does
|
|
35
|
+
|
|
36
|
+
Memory Bridge exposes 8 MCP tools that let any MCP-compatible agent (Claude Code, Codex, etc.) store and recall memories across three memory systems:
|
|
37
|
+
|
|
38
|
+
| Tool | Purpose |
|
|
39
|
+
|---|---|
|
|
40
|
+
| `bridge_remember` | Store a memory — auto-routes short facts to Mind, long content to Honcho |
|
|
41
|
+
| `bridge_recall` | Unified recall across both systems with Reciprocal Rank Fusion |
|
|
42
|
+
| `bridge_status` | Combined health report for all memory systems |
|
|
43
|
+
| `bridge_episode_record` | Record a structured session episode |
|
|
44
|
+
| `bridge_episode_recall` | Search episodic timeline by text, time, and tags |
|
|
45
|
+
| `bridge_timeline` | Chronological view of all session episodes |
|
|
46
|
+
| `bridge_synthesize` | Cortex Accelerator — synthesize knowledge across all memory |
|
|
47
|
+
| `bridge_contradictions` | Detect contradictory memories |
|
|
48
|
+
|
|
49
|
+
## Quick start
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
# Install
|
|
53
|
+
pip install memory-bridge-mcp
|
|
54
|
+
|
|
55
|
+
# Run as MCP server (stdio)
|
|
56
|
+
memory-bridge
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
The server speaks the [MCP protocol](https://modelcontextprotocol.io) over stdio. Configure it as an MCP server in your agent's config:
|
|
60
|
+
|
|
61
|
+
```json
|
|
62
|
+
{
|
|
63
|
+
"mcpServers": {
|
|
64
|
+
"memory-bridge": {
|
|
65
|
+
"command": "memory-bridge"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Memory systems
|
|
72
|
+
|
|
73
|
+
### Mind (concept graph)
|
|
74
|
+
A local, zero-dependency concept graph with spreading-activation recall, Ebbinghaus forgetting, and dream consolidation. Stored in `.mind/graph.json` in the working directory. The vendored `mind.py` module handles all graph operations.
|
|
75
|
+
|
|
76
|
+
### Honcho (semantic vector)
|
|
77
|
+
An optional semantic vector store running on `http://127.0.0.1:8000`. Provides embedding-based similarity search. If Honcho is unavailable, the bridge falls back to Mind only.
|
|
78
|
+
|
|
79
|
+
### Episodic (session timeline)
|
|
80
|
+
A JSONL-based append-only log of structured session episodes. Stored in `.memory-bridge/episodes.jsonl`. Supports text search, time-range filtering, tag filtering, and session filtering.
|
|
81
|
+
|
|
82
|
+
### Synthesis (Cortex Accelerator)
|
|
83
|
+
Optionally uses a local Ollama instance (`http://127.0.0.1:11434`) to synthesize related memories into concise summaries. Falls back to extractive key-sentence selection when LLM is unavailable.
|
|
84
|
+
|
|
85
|
+
## Configuration
|
|
86
|
+
|
|
87
|
+
The server reads these environment variables:
|
|
88
|
+
|
|
89
|
+
| Variable | Default | Description |
|
|
90
|
+
|---|---|---|
|
|
91
|
+
| `HONCHO_BASE_URL` | `http://127.0.0.1:8000/v3` | Honcho API endpoint |
|
|
92
|
+
| `OLLAMA_BASE_URL` | `http://127.0.0.1:11434` | Ollama API endpoint |
|
|
93
|
+
| `OLLAMA_SYNTHESIS_MODEL` | `qwen3:8b` | Model for LLM synthesis |
|
|
94
|
+
|
|
95
|
+
## Architecture
|
|
96
|
+
|
|
97
|
+
```
|
|
98
|
+
┌──────────────┐ ┌──────────────┐ ┌──────────────┐
|
|
99
|
+
│ Agent │ │ Agent │ │ Agent │
|
|
100
|
+
│ (Claude, │ │ (Codex, │ │ (any MCP) │
|
|
101
|
+
│ Codex, ...) │ │ ...) │ │ │
|
|
102
|
+
└──────┬───────┘ └──────┬───────┘ └──────┬───────┘
|
|
103
|
+
│ │ │
|
|
104
|
+
└────────────────────┼────────────────────┘
|
|
105
|
+
│ MCP stdio
|
|
106
|
+
┌───────▼────────┐
|
|
107
|
+
│ Memory Bridge │
|
|
108
|
+
│ MCP Server │
|
|
109
|
+
└───┬────┬────┬──┘
|
|
110
|
+
│ │ │
|
|
111
|
+
┌─────────┘ │ └──────────┐
|
|
112
|
+
▼ ▼ ▼
|
|
113
|
+
┌──────────┐ ┌──────────┐ ┌──────────────┐
|
|
114
|
+
│ Mind │ │ Honcho │ │ Episodic │
|
|
115
|
+
│ Graph │ │ Vector │ │ Timeline │
|
|
116
|
+
│ (local) │ │ (HTTP) │ │ (JSONL) │
|
|
117
|
+
└──────────┘ └──────────┘ └──────────────┘
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## Zero dependencies
|
|
121
|
+
|
|
122
|
+
The core server uses only the Python standard library. No pip dependencies required. The vendored `mind.py` module is also zero-dependency.
|
|
123
|
+
|
|
124
|
+
## License
|
|
125
|
+
|
|
126
|
+
MIT
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# Memory Bridge MCP
|
|
2
|
+
|
|
3
|
+
**Unified MCP memory server** — bridges Mind (concept graph) and Honcho (semantic vector) memory with episodic timeline and LLM synthesis into a single MCP query surface.
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
pip install memory-bridge-mcp
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## What it does
|
|
10
|
+
|
|
11
|
+
Memory Bridge exposes 8 MCP tools that let any MCP-compatible agent (Claude Code, Codex, etc.) store and recall memories across three memory systems:
|
|
12
|
+
|
|
13
|
+
| Tool | Purpose |
|
|
14
|
+
|---|---|
|
|
15
|
+
| `bridge_remember` | Store a memory — auto-routes short facts to Mind, long content to Honcho |
|
|
16
|
+
| `bridge_recall` | Unified recall across both systems with Reciprocal Rank Fusion |
|
|
17
|
+
| `bridge_status` | Combined health report for all memory systems |
|
|
18
|
+
| `bridge_episode_record` | Record a structured session episode |
|
|
19
|
+
| `bridge_episode_recall` | Search episodic timeline by text, time, and tags |
|
|
20
|
+
| `bridge_timeline` | Chronological view of all session episodes |
|
|
21
|
+
| `bridge_synthesize` | Cortex Accelerator — synthesize knowledge across all memory |
|
|
22
|
+
| `bridge_contradictions` | Detect contradictory memories |
|
|
23
|
+
|
|
24
|
+
## Quick start
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
# Install
|
|
28
|
+
pip install memory-bridge-mcp
|
|
29
|
+
|
|
30
|
+
# Run as MCP server (stdio)
|
|
31
|
+
memory-bridge
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
The server speaks the [MCP protocol](https://modelcontextprotocol.io) over stdio. Configure it as an MCP server in your agent's config:
|
|
35
|
+
|
|
36
|
+
```json
|
|
37
|
+
{
|
|
38
|
+
"mcpServers": {
|
|
39
|
+
"memory-bridge": {
|
|
40
|
+
"command": "memory-bridge"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Memory systems
|
|
47
|
+
|
|
48
|
+
### Mind (concept graph)
|
|
49
|
+
A local, zero-dependency concept graph with spreading-activation recall, Ebbinghaus forgetting, and dream consolidation. Stored in `.mind/graph.json` in the working directory. The vendored `mind.py` module handles all graph operations.
|
|
50
|
+
|
|
51
|
+
### Honcho (semantic vector)
|
|
52
|
+
An optional semantic vector store running on `http://127.0.0.1:8000`. Provides embedding-based similarity search. If Honcho is unavailable, the bridge falls back to Mind only.
|
|
53
|
+
|
|
54
|
+
### Episodic (session timeline)
|
|
55
|
+
A JSONL-based append-only log of structured session episodes. Stored in `.memory-bridge/episodes.jsonl`. Supports text search, time-range filtering, tag filtering, and session filtering.
|
|
56
|
+
|
|
57
|
+
### Synthesis (Cortex Accelerator)
|
|
58
|
+
Optionally uses a local Ollama instance (`http://127.0.0.1:11434`) to synthesize related memories into concise summaries. Falls back to extractive key-sentence selection when LLM is unavailable.
|
|
59
|
+
|
|
60
|
+
## Configuration
|
|
61
|
+
|
|
62
|
+
The server reads these environment variables:
|
|
63
|
+
|
|
64
|
+
| Variable | Default | Description |
|
|
65
|
+
|---|---|---|
|
|
66
|
+
| `HONCHO_BASE_URL` | `http://127.0.0.1:8000/v3` | Honcho API endpoint |
|
|
67
|
+
| `OLLAMA_BASE_URL` | `http://127.0.0.1:11434` | Ollama API endpoint |
|
|
68
|
+
| `OLLAMA_SYNTHESIS_MODEL` | `qwen3:8b` | Model for LLM synthesis |
|
|
69
|
+
|
|
70
|
+
## Architecture
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
┌──────────────┐ ┌──────────────┐ ┌──────────────┐
|
|
74
|
+
│ Agent │ │ Agent │ │ Agent │
|
|
75
|
+
│ (Claude, │ │ (Codex, │ │ (any MCP) │
|
|
76
|
+
│ Codex, ...) │ │ ...) │ │ │
|
|
77
|
+
└──────┬───────┘ └──────┬───────┘ └──────┬───────┘
|
|
78
|
+
│ │ │
|
|
79
|
+
└────────────────────┼────────────────────┘
|
|
80
|
+
│ MCP stdio
|
|
81
|
+
┌───────▼────────┐
|
|
82
|
+
│ Memory Bridge │
|
|
83
|
+
│ MCP Server │
|
|
84
|
+
└───┬────┬────┬──┘
|
|
85
|
+
│ │ │
|
|
86
|
+
┌─────────┘ │ └──────────┐
|
|
87
|
+
▼ ▼ ▼
|
|
88
|
+
┌──────────┐ ┌──────────┐ ┌──────────────┐
|
|
89
|
+
│ Mind │ │ Honcho │ │ Episodic │
|
|
90
|
+
│ Graph │ │ Vector │ │ Timeline │
|
|
91
|
+
│ (local) │ │ (HTTP) │ │ (JSONL) │
|
|
92
|
+
└──────────┘ └──────────┘ └──────────────┘
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## Zero dependencies
|
|
96
|
+
|
|
97
|
+
The core server uses only the Python standard library. No pip dependencies required. The vendored `mind.py` module is also zero-dependency.
|
|
98
|
+
|
|
99
|
+
## License
|
|
100
|
+
|
|
101
|
+
MIT
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68,<77"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "memory-bridge-mcp"
|
|
7
|
+
version = "1.2.0"
|
|
8
|
+
description = "Unified MCP memory server bridging Mind (concept graph) and Honcho (semantic vector) memory with episodic timeline and LLM synthesis"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = {text = "MIT License"}
|
|
11
|
+
authors = [
|
|
12
|
+
{name = "LE-VAI"},
|
|
13
|
+
]
|
|
14
|
+
keywords = ["mcp", "memory", "mind", "honcho", "llm", "synthesis", "agent"]
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Development Status :: 4 - Beta",
|
|
17
|
+
"Environment :: Console",
|
|
18
|
+
"Intended Audience :: Developers",
|
|
19
|
+
"License :: OSI Approved :: MIT License",
|
|
20
|
+
"Operating System :: OS Independent",
|
|
21
|
+
"Programming Language :: Python :: 3",
|
|
22
|
+
"Programming Language :: Python :: 3.10",
|
|
23
|
+
"Programming Language :: Python :: 3.11",
|
|
24
|
+
"Programming Language :: Python :: 3.12",
|
|
25
|
+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
26
|
+
]
|
|
27
|
+
requires-python = ">=3.10"
|
|
28
|
+
|
|
29
|
+
[project.urls]
|
|
30
|
+
Homepage = "https://github.com/LE-VAI/memory-bridge"
|
|
31
|
+
Repository = "https://github.com/LE-VAI/memory-bridge"
|
|
32
|
+
Documentation = "https://github.com/LE-VAI/memory-bridge#readme"
|
|
33
|
+
|
|
34
|
+
[project.scripts]
|
|
35
|
+
memory-bridge = "memory_bridge.__main__:main"
|
|
36
|
+
|
|
37
|
+
[tool.setuptools.packages.find]
|
|
38
|
+
where = ["src"]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Vendored mind concept-graph memory module."""
|