wisdomgraph 0.1.0__tar.gz → 0.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.
Files changed (38) hide show
  1. {wisdomgraph-0.1.0/wisdomgraph.egg-info → wisdomgraph-0.2.0}/PKG-INFO +69 -7
  2. {wisdomgraph-0.1.0 → wisdomgraph-0.2.0}/README.md +64 -5
  3. {wisdomgraph-0.1.0 → wisdomgraph-0.2.0}/pyproject.toml +6 -2
  4. wisdomgraph-0.2.0/tests/test_mcp.py +508 -0
  5. wisdomgraph-0.2.0/tests/test_reflect.py +343 -0
  6. {wisdomgraph-0.1.0 → wisdomgraph-0.2.0}/wisdom/__main__.py +48 -0
  7. wisdomgraph-0.2.0/wisdom/mcp.py +642 -0
  8. wisdomgraph-0.2.0/wisdom/reflect.py +432 -0
  9. {wisdomgraph-0.1.0 → wisdomgraph-0.2.0/wisdomgraph.egg-info}/PKG-INFO +69 -7
  10. {wisdomgraph-0.1.0 → wisdomgraph-0.2.0}/wisdomgraph.egg-info/SOURCES.txt +3 -0
  11. {wisdomgraph-0.1.0 → wisdomgraph-0.2.0}/wisdomgraph.egg-info/requires.txt +4 -0
  12. wisdomgraph-0.1.0/wisdom/reflect.py +0 -254
  13. {wisdomgraph-0.1.0 → wisdomgraph-0.2.0}/LICENSE +0 -0
  14. {wisdomgraph-0.1.0 → wisdomgraph-0.2.0}/setup.cfg +0 -0
  15. {wisdomgraph-0.1.0 → wisdomgraph-0.2.0}/tests/test_cache.py +0 -0
  16. {wisdomgraph-0.1.0 → wisdomgraph-0.2.0}/tests/test_classify.py +0 -0
  17. {wisdomgraph-0.1.0 → wisdomgraph-0.2.0}/tests/test_detect.py +0 -0
  18. {wisdomgraph-0.1.0 → wisdomgraph-0.2.0}/tests/test_ingest.py +0 -0
  19. {wisdomgraph-0.1.0 → wisdomgraph-0.2.0}/tests/test_security.py +0 -0
  20. {wisdomgraph-0.1.0 → wisdomgraph-0.2.0}/tests/test_validate.py +0 -0
  21. {wisdomgraph-0.1.0 → wisdomgraph-0.2.0}/wisdom/__init__.py +0 -0
  22. {wisdomgraph-0.1.0 → wisdomgraph-0.2.0}/wisdom/cache.py +0 -0
  23. {wisdomgraph-0.1.0 → wisdomgraph-0.2.0}/wisdom/classify.py +0 -0
  24. {wisdomgraph-0.1.0 → wisdomgraph-0.2.0}/wisdom/connect.py +0 -0
  25. {wisdomgraph-0.1.0 → wisdomgraph-0.2.0}/wisdom/detect.py +0 -0
  26. {wisdomgraph-0.1.0 → wisdomgraph-0.2.0}/wisdom/docker.py +0 -0
  27. {wisdomgraph-0.1.0 → wisdomgraph-0.2.0}/wisdom/export.py +0 -0
  28. {wisdomgraph-0.1.0 → wisdomgraph-0.2.0}/wisdom/ingest.py +0 -0
  29. {wisdomgraph-0.1.0 → wisdomgraph-0.2.0}/wisdom/merge.py +0 -0
  30. {wisdomgraph-0.1.0 → wisdomgraph-0.2.0}/wisdom/report.py +0 -0
  31. {wisdomgraph-0.1.0 → wisdomgraph-0.2.0}/wisdom/security.py +0 -0
  32. {wisdomgraph-0.1.0 → wisdomgraph-0.2.0}/wisdom/skill-claw.md +0 -0
  33. {wisdomgraph-0.1.0 → wisdomgraph-0.2.0}/wisdom/skill.md +0 -0
  34. {wisdomgraph-0.1.0 → wisdomgraph-0.2.0}/wisdom/traverse.py +0 -0
  35. {wisdomgraph-0.1.0 → wisdomgraph-0.2.0}/wisdom/validate.py +0 -0
  36. {wisdomgraph-0.1.0 → wisdomgraph-0.2.0}/wisdomgraph.egg-info/dependency_links.txt +0 -0
  37. {wisdomgraph-0.1.0 → wisdomgraph-0.2.0}/wisdomgraph.egg-info/entry_points.txt +0 -0
  38. {wisdomgraph-0.1.0 → wisdomgraph-0.2.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
3
+ Version: 0.2.0
4
4
  Summary: Accumulative Neo4j-native DIKW wisdom memory for AI coding assistants (Claude Code, OpenClaw)
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,dozerdb,mcp,model-context-protocol
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,9 +72,10 @@ 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)
75
79
  [![OpenClaw](https://img.shields.io/badge/OpenClaw-skill-orange)](https://openclaw.ai)
76
80
 
77
81
  > **graphify gives you a snapshot. wisdomGraph gives you memory that compounds.**
@@ -134,7 +138,7 @@ The feedback loop is critical: when a Wisdom node is queried and found useful, i
134
138
  **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
139
 
136
140
  ```bash
137
- pip install wisdomgraph && wisdom install
141
+ pip install 'wisdomgraph[mcp]' && wisdom install
138
142
  ```
139
143
 
140
144
  ### Option A — Neo4j Aura (zero infra, recommended for individuals)
@@ -161,8 +165,8 @@ Or manually:
161
165
  ```bash
162
166
  docker run -d \
163
167
  -p 7474:7474 -p 7687:7687 \
164
- -v $HOME/neo4j/data:/data \
165
- -v $HOME/neo4j/logs:/logs \
168
+ -v $HOME/neo4j-wisdom/data:/data \
169
+ -v $HOME/neo4j-wisdom/logs:/logs \
166
170
  --env NEO4J_AUTH=neo4j/password \
167
171
  --env NEO4J_PLUGINS='["apoc"]' \
168
172
  graphstack/dozerdb:5.26.3.0
@@ -188,6 +192,64 @@ Then open your AI coding assistant and type:
188
192
 
189
193
  ---
190
194
 
195
+ ## Claude Code MCP integration (v0.2.0+)
196
+
197
+ wisdomGraph ships as a native **Model Context Protocol (MCP) server** for Claude Code. Once registered, Claude calls `wisdom_ingest`, `wisdom_remember`, `wisdom_query`, `wisdom_reflect`, and `wisdom_report` as first-class tools — no `/wisdom` slash command needed.
198
+
199
+ ### Setup (one command)
200
+
201
+ ```bash
202
+ wisdom mcp-install
203
+ ```
204
+
205
+ This writes the MCP server entry to `.claude/settings.json` in your current project:
206
+
207
+ ```json
208
+ {
209
+ "mcpServers": {
210
+ "wisdomGraph": {
211
+ "command": "wisdom",
212
+ "args": ["mcp"]
213
+ }
214
+ }
215
+ }
216
+ ```
217
+
218
+ Restart Claude Code. wisdomGraph is now live in every session.
219
+
220
+ ### MCP tools
221
+
222
+ | Tool | What Claude uses it for |
223
+ |---|---|
224
+ | `wisdom_ingest` | Absorb a file, directory, or URL into Neo4j |
225
+ | `wisdom_remember` | Store a fact, decision, or insight explicitly |
226
+ | `wisdom_query` | Run a read-only Cypher traversal |
227
+ | `wisdom_reflect` | Trigger DIKW promotion pipeline |
228
+ | `wisdom_report` | Get tier counts + top Wisdom nodes as markdown |
229
+
230
+ ### Example — Claude remembering across sessions
231
+
232
+ **Session 1:**
233
+ > Claude calls `wisdom_remember` with label *"DozerDB ignores NEO4J_AUTH if data dir exists"*, tier *experience*.
234
+
235
+ **Session 2 (days later, fresh terminal):**
236
+ > You ask "how do I reset DozerDB credentials?"
237
+ > Claude calls `wisdom_query` → finds the Experience node → answers from your own history.
238
+
239
+ The graph remembered. Claude didn't forget.
240
+
241
+ ### Global vs project MCP install
242
+
243
+ ```bash
244
+ # Register for the current project only
245
+ wisdom mcp-install
246
+
247
+ # Register globally (all projects on this machine)
248
+ wisdom mcp-install --project ~
249
+ ```
250
+
251
+ ---
252
+
191
253
  ## Usage
192
254
 
193
255
  ```
@@ -318,7 +380,7 @@ wisdomGraph sends file contents to your AI coding assistant's model API for sema
318
380
 
319
381
  ## Tech stack
320
382
 
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).
383
+ 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
384
 
323
385
  ---
324
386
 
@@ -2,9 +2,10 @@
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)
8
9
  [![OpenClaw](https://img.shields.io/badge/OpenClaw-skill-orange)](https://openclaw.ai)
9
10
 
10
11
  > **graphify gives you a snapshot. wisdomGraph gives you memory that compounds.**
@@ -67,7 +68,7 @@ The feedback loop is critical: when a Wisdom node is queried and found useful, i
67
68
  **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
69
 
69
70
  ```bash
70
- pip install wisdomgraph && wisdom install
71
+ pip install 'wisdomgraph[mcp]' && wisdom install
71
72
  ```
72
73
 
73
74
  ### Option A — Neo4j Aura (zero infra, recommended for individuals)
@@ -94,8 +95,8 @@ Or manually:
94
95
  ```bash
95
96
  docker run -d \
96
97
  -p 7474:7474 -p 7687:7687 \
97
- -v $HOME/neo4j/data:/data \
98
- -v $HOME/neo4j/logs:/logs \
98
+ -v $HOME/neo4j-wisdom/data:/data \
99
+ -v $HOME/neo4j-wisdom/logs:/logs \
99
100
  --env NEO4J_AUTH=neo4j/password \
100
101
  --env NEO4J_PLUGINS='["apoc"]' \
101
102
  graphstack/dozerdb:5.26.3.0
@@ -121,6 +122,64 @@ Then open your AI coding assistant and type:
121
122
 
122
123
  ---
123
124
 
125
+ ## Claude Code MCP integration (v0.2.0+)
126
+
127
+ wisdomGraph ships as a native **Model Context Protocol (MCP) server** for Claude Code. Once registered, Claude calls `wisdom_ingest`, `wisdom_remember`, `wisdom_query`, `wisdom_reflect`, and `wisdom_report` as first-class tools — no `/wisdom` slash command needed.
128
+
129
+ ### Setup (one command)
130
+
131
+ ```bash
132
+ wisdom mcp-install
133
+ ```
134
+
135
+ This writes the MCP server entry to `.claude/settings.json` in your current project:
136
+
137
+ ```json
138
+ {
139
+ "mcpServers": {
140
+ "wisdomGraph": {
141
+ "command": "wisdom",
142
+ "args": ["mcp"]
143
+ }
144
+ }
145
+ }
146
+ ```
147
+
148
+ Restart Claude Code. wisdomGraph is now live in every session.
149
+
150
+ ### MCP tools
151
+
152
+ | Tool | What Claude uses it for |
153
+ |---|---|
154
+ | `wisdom_ingest` | Absorb a file, directory, or URL into Neo4j |
155
+ | `wisdom_remember` | Store a fact, decision, or insight explicitly |
156
+ | `wisdom_query` | Run a read-only Cypher traversal |
157
+ | `wisdom_reflect` | Trigger DIKW promotion pipeline |
158
+ | `wisdom_report` | Get tier counts + top Wisdom nodes as markdown |
159
+
160
+ ### Example — Claude remembering across sessions
161
+
162
+ **Session 1:**
163
+ > Claude calls `wisdom_remember` with label *"DozerDB ignores NEO4J_AUTH if data dir exists"*, tier *experience*.
164
+
165
+ **Session 2 (days later, fresh terminal):**
166
+ > You ask "how do I reset DozerDB credentials?"
167
+ > Claude calls `wisdom_query` → finds the Experience node → answers from your own history.
168
+
169
+ The graph remembered. Claude didn't forget.
170
+
171
+ ### Global vs project MCP install
172
+
173
+ ```bash
174
+ # Register for the current project only
175
+ wisdom mcp-install
176
+
177
+ # Register globally (all projects on this machine)
178
+ wisdom mcp-install --project ~
179
+ ```
180
+
181
+ ---
182
+
124
183
  ## Usage
125
184
 
126
185
  ```
@@ -251,7 +310,7 @@ wisdomGraph sends file contents to your AI coding assistant's model API for sema
251
310
 
252
311
  ## Tech stack
253
312
 
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).
313
+ 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
314
 
256
315
  ---
257
316
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "wisdomgraph"
7
- version = "0.1.0"
7
+ version = "0.2.0"
8
8
  description = "Accumulative Neo4j-native DIKW wisdom memory for AI coding assistants (Claude Code, OpenClaw)"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -12,7 +12,7 @@ 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", "dozerdb", "mcp", "model-context-protocol",
16
16
  ]
17
17
  requires-python = ">=3.10"
18
18
  dependencies = [
@@ -25,6 +25,9 @@ Repository = "https://github.com/cklam12345/wisdomGraph"
25
25
  Issues = "https://github.com/cklam12345/wisdomGraph/issues"
26
26
 
27
27
  [project.optional-dependencies]
28
+ mcp = [
29
+ "mcp>=1.0",
30
+ ]
28
31
  ast = [
29
32
  "tree-sitter",
30
33
  "tree-sitter-python",
@@ -50,6 +53,7 @@ ast = [
50
53
  pdf = ["pypdf", "html2text"]
51
54
  office = ["python-docx", "openpyxl"]
52
55
  all = [
56
+ "mcp>=1.0",
53
57
  "tree-sitter",
54
58
  "tree-sitter-python",
55
59
  "tree-sitter-javascript",