wisdomgraph 0.1.0__tar.gz → 0.3.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.
Files changed (39) hide show
  1. {wisdomgraph-0.1.0/wisdomgraph.egg-info → wisdomgraph-0.3.0}/PKG-INFO +137 -12
  2. {wisdomgraph-0.1.0 → wisdomgraph-0.3.0}/README.md +131 -9
  3. {wisdomgraph-0.1.0 → wisdomgraph-0.3.0}/pyproject.toml +8 -3
  4. wisdomgraph-0.3.0/tests/test_mcp.py +737 -0
  5. wisdomgraph-0.3.0/tests/test_reflect.py +343 -0
  6. {wisdomgraph-0.1.0 → wisdomgraph-0.3.0}/wisdom/__init__.py +1 -1
  7. {wisdomgraph-0.1.0 → wisdomgraph-0.3.0}/wisdom/__main__.py +234 -0
  8. wisdomgraph-0.3.0/wisdom/local.py +197 -0
  9. wisdomgraph-0.3.0/wisdom/mcp.py +930 -0
  10. wisdomgraph-0.3.0/wisdom/reflect.py +432 -0
  11. {wisdomgraph-0.1.0 → wisdomgraph-0.3.0/wisdomgraph.egg-info}/PKG-INFO +137 -12
  12. {wisdomgraph-0.1.0 → wisdomgraph-0.3.0}/wisdomgraph.egg-info/SOURCES.txt +4 -0
  13. {wisdomgraph-0.1.0 → wisdomgraph-0.3.0}/wisdomgraph.egg-info/requires.txt +4 -0
  14. wisdomgraph-0.1.0/wisdom/reflect.py +0 -254
  15. {wisdomgraph-0.1.0 → wisdomgraph-0.3.0}/LICENSE +0 -0
  16. {wisdomgraph-0.1.0 → wisdomgraph-0.3.0}/setup.cfg +0 -0
  17. {wisdomgraph-0.1.0 → wisdomgraph-0.3.0}/tests/test_cache.py +0 -0
  18. {wisdomgraph-0.1.0 → wisdomgraph-0.3.0}/tests/test_classify.py +0 -0
  19. {wisdomgraph-0.1.0 → wisdomgraph-0.3.0}/tests/test_detect.py +0 -0
  20. {wisdomgraph-0.1.0 → wisdomgraph-0.3.0}/tests/test_ingest.py +0 -0
  21. {wisdomgraph-0.1.0 → wisdomgraph-0.3.0}/tests/test_security.py +0 -0
  22. {wisdomgraph-0.1.0 → wisdomgraph-0.3.0}/tests/test_validate.py +0 -0
  23. {wisdomgraph-0.1.0 → wisdomgraph-0.3.0}/wisdom/cache.py +0 -0
  24. {wisdomgraph-0.1.0 → wisdomgraph-0.3.0}/wisdom/classify.py +0 -0
  25. {wisdomgraph-0.1.0 → wisdomgraph-0.3.0}/wisdom/connect.py +0 -0
  26. {wisdomgraph-0.1.0 → wisdomgraph-0.3.0}/wisdom/detect.py +0 -0
  27. {wisdomgraph-0.1.0 → wisdomgraph-0.3.0}/wisdom/docker.py +0 -0
  28. {wisdomgraph-0.1.0 → wisdomgraph-0.3.0}/wisdom/export.py +0 -0
  29. {wisdomgraph-0.1.0 → wisdomgraph-0.3.0}/wisdom/ingest.py +0 -0
  30. {wisdomgraph-0.1.0 → wisdomgraph-0.3.0}/wisdom/merge.py +0 -0
  31. {wisdomgraph-0.1.0 → wisdomgraph-0.3.0}/wisdom/report.py +0 -0
  32. {wisdomgraph-0.1.0 → wisdomgraph-0.3.0}/wisdom/security.py +0 -0
  33. {wisdomgraph-0.1.0 → wisdomgraph-0.3.0}/wisdom/skill-claw.md +0 -0
  34. {wisdomgraph-0.1.0 → wisdomgraph-0.3.0}/wisdom/skill.md +0 -0
  35. {wisdomgraph-0.1.0 → wisdomgraph-0.3.0}/wisdom/traverse.py +0 -0
  36. {wisdomgraph-0.1.0 → wisdomgraph-0.3.0}/wisdom/validate.py +0 -0
  37. {wisdomgraph-0.1.0 → wisdomgraph-0.3.0}/wisdomgraph.egg-info/dependency_links.txt +0 -0
  38. {wisdomgraph-0.1.0 → wisdomgraph-0.3.0}/wisdomgraph.egg-info/entry_points.txt +0 -0
  39. {wisdomgraph-0.1.0 → wisdomgraph-0.3.0}/wisdomgraph.egg-info/top_level.txt +0 -0
@@ -1,16 +1,18 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wisdomgraph
3
- Version: 0.1.0
4
- Summary: Accumulative Neo4j-native DIKW wisdom memory for AI coding assistants (Claude Code, OpenClaw)
3
+ Version: 0.3.0
4
+ Summary: Graph-native persistent cognition for AI agents using Neo4j, DIKW, and MCP
5
5
  License-Expression: MIT
6
6
  Project-URL: Homepage, https://github.com/cklam12345/wisdomGraph
7
7
  Project-URL: Repository, https://github.com/cklam12345/wisdomGraph
8
8
  Project-URL: Issues, https://github.com/cklam12345/wisdomGraph/issues
9
- Keywords: claude,claude-code,openclaw,neo4j,knowledge-graph,graphrag,dikw,wisdom,memory,accumulative,llm,skill,agent-memory,dozerdb
9
+ Keywords: claude,claude-code,openclaw,neo4j,knowledge-graph,graphrag,dikw,wisdom,memory,accumulative,llm,skill,agent-memory,agentic-memory,multi-agent,dozerdb,mcp,model-context-protocol,codex
10
10
  Requires-Python: >=3.10
11
11
  Description-Content-Type: text/markdown
12
12
  License-File: LICENSE
13
13
  Requires-Dist: neo4j>=5.0
14
+ Provides-Extra: mcp
15
+ Requires-Dist: mcp>=1.0; extra == "mcp"
14
16
  Provides-Extra: ast
15
17
  Requires-Dist: tree-sitter; extra == "ast"
16
18
  Requires-Dist: tree-sitter-python; extra == "ast"
@@ -39,6 +41,7 @@ Provides-Extra: office
39
41
  Requires-Dist: python-docx; extra == "office"
40
42
  Requires-Dist: openpyxl; extra == "office"
41
43
  Provides-Extra: all
44
+ Requires-Dist: mcp>=1.0; extra == "all"
42
45
  Requires-Dist: tree-sitter; extra == "all"
43
46
  Requires-Dist: tree-sitter-python; extra == "all"
44
47
  Requires-Dist: tree-sitter-javascript; extra == "all"
@@ -69,14 +72,18 @@ Dynamic: license-file
69
72
 
70
73
  [English](README.md) | [简体中文](README.zh-CN.md)
71
74
 
75
+ [![PyPI](https://img.shields.io/pypi/v/wisdomgraph)](https://pypi.org/project/wisdomgraph/)
72
76
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
73
77
  [![Neo4j](https://img.shields.io/badge/Neo4j-native-008CC1?logo=neo4j)](https://neo4j.com)
74
- [![Claude Code](https://img.shields.io/badge/Claude%20Code-skill-blueviolet)](https://claude.ai/code)
78
+ [![Claude Code](https://img.shields.io/badge/Claude%20Code-MCP-blueviolet)](https://claude.ai/code)
79
+ [![Codex](https://img.shields.io/badge/Codex-MCP-black)](https://openai.com/codex)
75
80
  [![OpenClaw](https://img.shields.io/badge/OpenClaw-skill-orange)](https://openclaw.ai)
76
81
 
82
+ > **Graph-native persistent cognition for AI agents.**
83
+ >
77
84
  > **graphify gives you a snapshot. wisdomGraph gives you memory that compounds.**
78
85
 
79
- Type `/wisdom` in Claude Code or OpenClaw. Feed it your codebases, notes, papers, conversations — every run **merges** into a living Neo4j graph. The graph doesn't reset. It accumulates. Facts become patterns. Patterns become insights. Insights become wisdom.
86
+ Use wisdomGraph from Claude Code, Codex, OpenClaw, or any MCP host. Feed it your codebases, notes, papers, conversations — every run **merges** into a living Neo4j graph. The graph doesn't reset. It accumulates. Facts become patterns. Patterns become insights. Insights become wisdom.
80
87
 
81
88
  ```
82
89
  /wisdom . # absorb this project into the wisdom graph
@@ -129,15 +136,51 @@ The feedback loop is critical: when a Wisdom node is queried and found useful, i
129
136
 
130
137
  ## Install
131
138
 
132
- **Requires:** Python 3.10+ and one of: [Claude Code](https://claude.ai/code), [OpenClaw](https://openclaw.ai)
139
+ **Requires:** Python 3.10+ and one of: [Claude Code](https://claude.ai/code), [Codex](https://openai.com/codex), [OpenClaw](https://openclaw.ai), or another MCP host
133
140
 
134
141
  **And one of:** [Neo4j Aura Free](https://neo4j.com/cloud/platform/aura-graph-database/) (cloud, no install) or [DozerDB](https://dozerdb.org) (local Docker, APOC included)
135
142
 
136
143
  ```bash
137
- pip install wisdomgraph && wisdom install
144
+ pip install 'wisdomgraph[mcp]'
145
+ wisdom quickstart
138
146
  ```
139
147
 
140
- ### Option A — Neo4j Aura (zero infra, recommended for individuals)
148
+ `wisdom quickstart` is the end-to-end first-time setup. It prepares storage, verifies the Neo4j connection, and registers wisdomGraph with detected MCP hosts.
149
+
150
+ ```bash
151
+ # Local managed Neo4j/DozerDB backend + detected MCP hosts
152
+ wisdom quickstart
153
+
154
+ # Local backend + Codex only
155
+ wisdom quickstart --host codex
156
+
157
+ # Existing Neo4j or DozerDB instance
158
+ wisdom quickstart --storage existing --uri bolt://localhost:7689 --user neo4j --password <password>
159
+
160
+ # Neo4j Aura
161
+ wisdom quickstart --storage aura --uri bolt+s://xxxxxxxx.databases.neo4j.io --user neo4j --password <password>
162
+ ```
163
+
164
+ The MCP server itself never starts Docker or creates databases. Storage setup is explicit through `quickstart`, `local`, `docker`, or `connect`.
165
+
166
+ ### Option A — Managed local backend (recommended first run)
167
+
168
+ ```bash
169
+ wisdom local up
170
+ wisdom doctor
171
+ ```
172
+
173
+ This starts a managed DozerDB/Neo4j container named `wisdomgraph-neo4j`, stores data under `~/.wisdom/neo4j`, generates a local password, saves the connection, and leaves MCP startup cleanly separate.
174
+
175
+ Useful commands:
176
+
177
+ ```bash
178
+ wisdom local status
179
+ wisdom local logs
180
+ wisdom local down
181
+ ```
182
+
183
+ ### Option B — Neo4j Aura (zero local database)
141
184
 
142
185
  1. Create a free account at [neo4j.com/cloud/aura](https://neo4j.com/cloud/aura)
143
186
  2. Create a free AuraDB instance — copy the connection URI and password
@@ -149,7 +192,7 @@ wisdom connect bolt+s://xxxxxxxx.databases.neo4j.io --user neo4j --password <you
149
192
 
150
193
  Free tier: 200,000 nodes. Enough for years of accumulated wisdom.
151
194
 
152
- ### Option B — DozerDB local Docker (full control, APOC included)
195
+ ### Option C — Legacy/manual DozerDB Docker (full control, APOC included)
153
196
 
154
197
  ```bash
155
198
  wisdom docker up # pulls graphstack/dozerdb:5.26.3.0 and starts it
@@ -161,8 +204,8 @@ Or manually:
161
204
  ```bash
162
205
  docker run -d \
163
206
  -p 7474:7474 -p 7687:7687 \
164
- -v $HOME/neo4j/data:/data \
165
- -v $HOME/neo4j/logs:/logs \
207
+ -v $HOME/neo4j-wisdom/data:/data \
208
+ -v $HOME/neo4j-wisdom/logs:/logs \
166
209
  --env NEO4J_AUTH=neo4j/password \
167
210
  --env NEO4J_PLUGINS='["apoc"]' \
168
211
  graphstack/dozerdb:5.26.3.0
@@ -177,6 +220,8 @@ Open [localhost:7474](http://localhost:7474) — Neo4j Browser is your visual wi
177
220
  | Platform | Install command |
178
221
  |----------|----------------|
179
222
  | Claude Code (Linux/Mac) | `wisdom install` |
223
+ | Claude Code MCP | `wisdom mcp-install` |
224
+ | Codex MCP | `wisdom mcp-install --host codex` |
180
225
  | Claude Code (Windows) | `wisdom install --platform windows` |
181
226
  | OpenClaw | `wisdom install --platform claw` |
182
227
 
@@ -188,6 +233,86 @@ Then open your AI coding assistant and type:
188
233
 
189
234
  ---
190
235
 
236
+ ## MCP integration (v0.2.0+)
237
+
238
+ wisdomGraph ships as a native **Model Context Protocol (MCP) server**. Once registered, Claude, Codex, or another MCP host can call wisdomGraph tools directly — no `/wisdom` slash command needed.
239
+
240
+ ### Claude Code setup
241
+
242
+ ```bash
243
+ wisdom mcp-install
244
+ ```
245
+
246
+ This writes the MCP server entry to `.claude/settings.json` in your current project:
247
+
248
+ ```json
249
+ {
250
+ "mcpServers": {
251
+ "wisdomGraph": {
252
+ "command": "wisdom",
253
+ "args": ["mcp"]
254
+ }
255
+ }
256
+ }
257
+ ```
258
+
259
+ Restart Claude Code. wisdomGraph is now live in that project.
260
+
261
+ ### Codex setup (v0.3.0+)
262
+
263
+ ```bash
264
+ wisdom mcp-install --host codex
265
+ ```
266
+
267
+ This runs the Codex MCP registration:
268
+
269
+ ```bash
270
+ codex mcp add wisdomGraph -- wisdom mcp
271
+ ```
272
+
273
+ Start a new Codex session. Codex can now launch `wisdom mcp` and use the same Neo4j-backed DIKW graph as Claude Code.
274
+
275
+ ### MCP tools
276
+
277
+ | Tool | What agents use it for |
278
+ |---|---|
279
+ | `wisdom_ingest` | Absorb a file, directory, or URL into Neo4j |
280
+ | `wisdom_remember` | Store a fact, decision, or insight explicitly |
281
+ | `wisdom_learn` | Record an attempt, outcome, and lesson learned |
282
+ | `wisdom_status` | Read DIKW tier counts and edge/source totals |
283
+ | `wisdom_list` | List nodes by DIKW tier, project, and connectivity |
284
+ | `wisdom_trace` | Trace why an insight or wisdom node exists |
285
+ | `wisdom_explain` | Explain a node with its DIKW chain and sources |
286
+ | `wisdom_query` | Run a read-only Cypher traversal |
287
+ | `wisdom_reflect` | Trigger DIKW promotion pipeline |
288
+ | `wisdom_report` | Get tier counts + top Wisdom nodes as markdown |
289
+
290
+ ### Example — Claude remembering across sessions
291
+
292
+ **Session 1:**
293
+ > Claude calls `wisdom_remember` with label *"DozerDB ignores NEO4J_AUTH if data dir exists"*, tier *experience*.
294
+
295
+ **Session 2 (days later, fresh terminal):**
296
+ > You ask "how do I reset DozerDB credentials?"
297
+ > Claude calls `wisdom_query` → finds the Experience node → answers from your own history.
298
+
299
+ The graph remembered. Claude didn't forget.
300
+
301
+ ### Global vs project MCP install
302
+
303
+ ```bash
304
+ # Register for the current project only
305
+ wisdom mcp-install
306
+
307
+ # Register globally (all projects on this machine)
308
+ wisdom mcp-install --project ~
309
+
310
+ # Register globally with Codex
311
+ wisdom mcp-install --host codex
312
+ ```
313
+
314
+ ---
315
+
191
316
  ## Usage
192
317
 
193
318
  ```
@@ -318,7 +443,7 @@ wisdomGraph sends file contents to your AI coding assistant's model API for sema
318
443
 
319
444
  ## Tech stack
320
445
 
321
- Neo4j (Aura or DozerDB) + tree-sitter + APOC. Semantic extraction via Claude (Claude Code) or your platform's model. The graph database is the intelligence layer — traversal, path-finding, and community detection run natively in Cypher via Neo4j GDS (Graph Data Science library).
446
+ Neo4j (Aura or DozerDB) + tree-sitter + APOC. Semantic extraction via Claude (Claude Code) or your platform's model. The graph database is the intelligence layer — traversal, path-finding, and community detection run natively in Cypher via Neo4j GDS (Graph Data Science library). MCP integration via the [Model Context Protocol](https://modelcontextprotocol.io) Python SDK.
322
447
 
323
448
  ---
324
449
 
@@ -2,14 +2,18 @@
2
2
 
3
3
  [English](README.md) | [简体中文](README.zh-CN.md)
4
4
 
5
+ [![PyPI](https://img.shields.io/pypi/v/wisdomgraph)](https://pypi.org/project/wisdomgraph/)
5
6
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
6
7
  [![Neo4j](https://img.shields.io/badge/Neo4j-native-008CC1?logo=neo4j)](https://neo4j.com)
7
- [![Claude Code](https://img.shields.io/badge/Claude%20Code-skill-blueviolet)](https://claude.ai/code)
8
+ [![Claude Code](https://img.shields.io/badge/Claude%20Code-MCP-blueviolet)](https://claude.ai/code)
9
+ [![Codex](https://img.shields.io/badge/Codex-MCP-black)](https://openai.com/codex)
8
10
  [![OpenClaw](https://img.shields.io/badge/OpenClaw-skill-orange)](https://openclaw.ai)
9
11
 
12
+ > **Graph-native persistent cognition for AI agents.**
13
+ >
10
14
  > **graphify gives you a snapshot. wisdomGraph gives you memory that compounds.**
11
15
 
12
- Type `/wisdom` in Claude Code or OpenClaw. Feed it your codebases, notes, papers, conversations — every run **merges** into a living Neo4j graph. The graph doesn't reset. It accumulates. Facts become patterns. Patterns become insights. Insights become wisdom.
16
+ Use wisdomGraph from Claude Code, Codex, OpenClaw, or any MCP host. Feed it your codebases, notes, papers, conversations — every run **merges** into a living Neo4j graph. The graph doesn't reset. It accumulates. Facts become patterns. Patterns become insights. Insights become wisdom.
13
17
 
14
18
  ```
15
19
  /wisdom . # absorb this project into the wisdom graph
@@ -62,15 +66,51 @@ The feedback loop is critical: when a Wisdom node is queried and found useful, i
62
66
 
63
67
  ## Install
64
68
 
65
- **Requires:** Python 3.10+ and one of: [Claude Code](https://claude.ai/code), [OpenClaw](https://openclaw.ai)
69
+ **Requires:** Python 3.10+ and one of: [Claude Code](https://claude.ai/code), [Codex](https://openai.com/codex), [OpenClaw](https://openclaw.ai), or another MCP host
66
70
 
67
71
  **And one of:** [Neo4j Aura Free](https://neo4j.com/cloud/platform/aura-graph-database/) (cloud, no install) or [DozerDB](https://dozerdb.org) (local Docker, APOC included)
68
72
 
69
73
  ```bash
70
- pip install wisdomgraph && wisdom install
74
+ pip install 'wisdomgraph[mcp]'
75
+ wisdom quickstart
71
76
  ```
72
77
 
73
- ### Option A — Neo4j Aura (zero infra, recommended for individuals)
78
+ `wisdom quickstart` is the end-to-end first-time setup. It prepares storage, verifies the Neo4j connection, and registers wisdomGraph with detected MCP hosts.
79
+
80
+ ```bash
81
+ # Local managed Neo4j/DozerDB backend + detected MCP hosts
82
+ wisdom quickstart
83
+
84
+ # Local backend + Codex only
85
+ wisdom quickstart --host codex
86
+
87
+ # Existing Neo4j or DozerDB instance
88
+ wisdom quickstart --storage existing --uri bolt://localhost:7689 --user neo4j --password <password>
89
+
90
+ # Neo4j Aura
91
+ wisdom quickstart --storage aura --uri bolt+s://xxxxxxxx.databases.neo4j.io --user neo4j --password <password>
92
+ ```
93
+
94
+ The MCP server itself never starts Docker or creates databases. Storage setup is explicit through `quickstart`, `local`, `docker`, or `connect`.
95
+
96
+ ### Option A — Managed local backend (recommended first run)
97
+
98
+ ```bash
99
+ wisdom local up
100
+ wisdom doctor
101
+ ```
102
+
103
+ This starts a managed DozerDB/Neo4j container named `wisdomgraph-neo4j`, stores data under `~/.wisdom/neo4j`, generates a local password, saves the connection, and leaves MCP startup cleanly separate.
104
+
105
+ Useful commands:
106
+
107
+ ```bash
108
+ wisdom local status
109
+ wisdom local logs
110
+ wisdom local down
111
+ ```
112
+
113
+ ### Option B — Neo4j Aura (zero local database)
74
114
 
75
115
  1. Create a free account at [neo4j.com/cloud/aura](https://neo4j.com/cloud/aura)
76
116
  2. Create a free AuraDB instance — copy the connection URI and password
@@ -82,7 +122,7 @@ wisdom connect bolt+s://xxxxxxxx.databases.neo4j.io --user neo4j --password <you
82
122
 
83
123
  Free tier: 200,000 nodes. Enough for years of accumulated wisdom.
84
124
 
85
- ### Option B — DozerDB local Docker (full control, APOC included)
125
+ ### Option C — Legacy/manual DozerDB Docker (full control, APOC included)
86
126
 
87
127
  ```bash
88
128
  wisdom docker up # pulls graphstack/dozerdb:5.26.3.0 and starts it
@@ -94,8 +134,8 @@ Or manually:
94
134
  ```bash
95
135
  docker run -d \
96
136
  -p 7474:7474 -p 7687:7687 \
97
- -v $HOME/neo4j/data:/data \
98
- -v $HOME/neo4j/logs:/logs \
137
+ -v $HOME/neo4j-wisdom/data:/data \
138
+ -v $HOME/neo4j-wisdom/logs:/logs \
99
139
  --env NEO4J_AUTH=neo4j/password \
100
140
  --env NEO4J_PLUGINS='["apoc"]' \
101
141
  graphstack/dozerdb:5.26.3.0
@@ -110,6 +150,8 @@ Open [localhost:7474](http://localhost:7474) — Neo4j Browser is your visual wi
110
150
  | Platform | Install command |
111
151
  |----------|----------------|
112
152
  | Claude Code (Linux/Mac) | `wisdom install` |
153
+ | Claude Code MCP | `wisdom mcp-install` |
154
+ | Codex MCP | `wisdom mcp-install --host codex` |
113
155
  | Claude Code (Windows) | `wisdom install --platform windows` |
114
156
  | OpenClaw | `wisdom install --platform claw` |
115
157
 
@@ -121,6 +163,86 @@ Then open your AI coding assistant and type:
121
163
 
122
164
  ---
123
165
 
166
+ ## MCP integration (v0.2.0+)
167
+
168
+ wisdomGraph ships as a native **Model Context Protocol (MCP) server**. Once registered, Claude, Codex, or another MCP host can call wisdomGraph tools directly — no `/wisdom` slash command needed.
169
+
170
+ ### Claude Code setup
171
+
172
+ ```bash
173
+ wisdom mcp-install
174
+ ```
175
+
176
+ This writes the MCP server entry to `.claude/settings.json` in your current project:
177
+
178
+ ```json
179
+ {
180
+ "mcpServers": {
181
+ "wisdomGraph": {
182
+ "command": "wisdom",
183
+ "args": ["mcp"]
184
+ }
185
+ }
186
+ }
187
+ ```
188
+
189
+ Restart Claude Code. wisdomGraph is now live in that project.
190
+
191
+ ### Codex setup (v0.3.0+)
192
+
193
+ ```bash
194
+ wisdom mcp-install --host codex
195
+ ```
196
+
197
+ This runs the Codex MCP registration:
198
+
199
+ ```bash
200
+ codex mcp add wisdomGraph -- wisdom mcp
201
+ ```
202
+
203
+ Start a new Codex session. Codex can now launch `wisdom mcp` and use the same Neo4j-backed DIKW graph as Claude Code.
204
+
205
+ ### MCP tools
206
+
207
+ | Tool | What agents use it for |
208
+ |---|---|
209
+ | `wisdom_ingest` | Absorb a file, directory, or URL into Neo4j |
210
+ | `wisdom_remember` | Store a fact, decision, or insight explicitly |
211
+ | `wisdom_learn` | Record an attempt, outcome, and lesson learned |
212
+ | `wisdom_status` | Read DIKW tier counts and edge/source totals |
213
+ | `wisdom_list` | List nodes by DIKW tier, project, and connectivity |
214
+ | `wisdom_trace` | Trace why an insight or wisdom node exists |
215
+ | `wisdom_explain` | Explain a node with its DIKW chain and sources |
216
+ | `wisdom_query` | Run a read-only Cypher traversal |
217
+ | `wisdom_reflect` | Trigger DIKW promotion pipeline |
218
+ | `wisdom_report` | Get tier counts + top Wisdom nodes as markdown |
219
+
220
+ ### Example — Claude remembering across sessions
221
+
222
+ **Session 1:**
223
+ > Claude calls `wisdom_remember` with label *"DozerDB ignores NEO4J_AUTH if data dir exists"*, tier *experience*.
224
+
225
+ **Session 2 (days later, fresh terminal):**
226
+ > You ask "how do I reset DozerDB credentials?"
227
+ > Claude calls `wisdom_query` → finds the Experience node → answers from your own history.
228
+
229
+ The graph remembered. Claude didn't forget.
230
+
231
+ ### Global vs project MCP install
232
+
233
+ ```bash
234
+ # Register for the current project only
235
+ wisdom mcp-install
236
+
237
+ # Register globally (all projects on this machine)
238
+ wisdom mcp-install --project ~
239
+
240
+ # Register globally with Codex
241
+ wisdom mcp-install --host codex
242
+ ```
243
+
244
+ ---
245
+
124
246
  ## Usage
125
247
 
126
248
  ```
@@ -251,7 +373,7 @@ wisdomGraph sends file contents to your AI coding assistant's model API for sema
251
373
 
252
374
  ## Tech stack
253
375
 
254
- Neo4j (Aura or DozerDB) + tree-sitter + APOC. Semantic extraction via Claude (Claude Code) or your platform's model. The graph database is the intelligence layer — traversal, path-finding, and community detection run natively in Cypher via Neo4j GDS (Graph Data Science library).
376
+ Neo4j (Aura or DozerDB) + tree-sitter + APOC. Semantic extraction via Claude (Claude Code) or your platform's model. The graph database is the intelligence layer — traversal, path-finding, and community detection run natively in Cypher via Neo4j GDS (Graph Data Science library). MCP integration via the [Model Context Protocol](https://modelcontextprotocol.io) Python SDK.
255
377
 
256
378
  ---
257
379
 
@@ -4,15 +4,16 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "wisdomgraph"
7
- version = "0.1.0"
8
- description = "Accumulative Neo4j-native DIKW wisdom memory for AI coding assistants (Claude Code, OpenClaw)"
7
+ version = "0.3.0"
8
+ description = "Graph-native persistent cognition for AI agents using Neo4j, DIKW, and MCP"
9
9
  readme = "README.md"
10
10
  license = "MIT"
11
11
  license-files = ["LICENSE"]
12
12
  keywords = [
13
13
  "claude", "claude-code", "openclaw", "neo4j", "knowledge-graph",
14
14
  "graphrag", "dikw", "wisdom", "memory", "accumulative", "llm",
15
- "skill", "agent-memory", "dozerdb",
15
+ "skill", "agent-memory", "agentic-memory", "multi-agent", "dozerdb",
16
+ "mcp", "model-context-protocol", "codex",
16
17
  ]
17
18
  requires-python = ">=3.10"
18
19
  dependencies = [
@@ -25,6 +26,9 @@ Repository = "https://github.com/cklam12345/wisdomGraph"
25
26
  Issues = "https://github.com/cklam12345/wisdomGraph/issues"
26
27
 
27
28
  [project.optional-dependencies]
29
+ mcp = [
30
+ "mcp>=1.0",
31
+ ]
28
32
  ast = [
29
33
  "tree-sitter",
30
34
  "tree-sitter-python",
@@ -50,6 +54,7 @@ ast = [
50
54
  pdf = ["pypdf", "html2text"]
51
55
  office = ["python-docx", "openpyxl"]
52
56
  all = [
57
+ "mcp>=1.0",
53
58
  "tree-sitter",
54
59
  "tree-sitter-python",
55
60
  "tree-sitter-javascript",