@datacore-one/mcp 1.0.1 → 1.1.0
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.
- package/README.md +103 -14
- package/dist/index.js +1040 -275
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,33 +12,68 @@ Not a RAG system. Not a vector database you have to manage. Just an MCP server t
|
|
|
12
12
|
|
|
13
13
|
## Quick Start
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Install globally:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm install -g @datacore-one/mcp
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Then connect from any MCP-compatible client. On first use, the server creates `~/Datacore/` with:
|
|
22
|
+
|
|
23
|
+
- `engrams.yaml` — Your learned knowledge
|
|
24
|
+
- `journal/` — Daily session logs
|
|
25
|
+
- `knowledge/` — Ingested reference material
|
|
26
|
+
- `packs/` — Engram packs (starter packs installed automatically)
|
|
27
|
+
- `config.yaml` — Configuration (all fields optional)
|
|
28
|
+
- `CLAUDE.md`, `AGENTS.md`, `.cursorrules`, `.github/copilot-instructions.md` — Editor context files so any AI assistant immediately understands Datacore
|
|
29
|
+
|
|
30
|
+
Everything is plain text -- no databases, no lock-in.
|
|
31
|
+
|
|
32
|
+
## Connecting
|
|
33
|
+
|
|
34
|
+
Datacore is a standard [MCP](https://modelcontextprotocol.io) server. It works with any client that speaks MCP v1.0+ over stdio or HTTP -- the AI model behind the client does not matter.
|
|
35
|
+
|
|
36
|
+
### Claude Code
|
|
37
|
+
|
|
38
|
+
Add to `.mcp.json` in your project root (or `~/.claude.json` globally):
|
|
16
39
|
|
|
17
40
|
```json
|
|
18
41
|
{
|
|
19
42
|
"mcpServers": {
|
|
20
43
|
"datacore": {
|
|
21
|
-
"command": "
|
|
22
|
-
"args": ["@datacore-one/mcp"]
|
|
44
|
+
"command": "datacore-mcp"
|
|
23
45
|
}
|
|
24
46
|
}
|
|
25
47
|
}
|
|
26
48
|
```
|
|
27
49
|
|
|
28
|
-
|
|
50
|
+
### Claude Desktop
|
|
51
|
+
|
|
52
|
+
Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:
|
|
29
53
|
|
|
30
54
|
```json
|
|
31
55
|
{
|
|
32
56
|
"mcpServers": {
|
|
33
57
|
"datacore": {
|
|
34
|
-
"command": "
|
|
35
|
-
"args": ["@datacore-one/mcp"]
|
|
58
|
+
"command": "datacore-mcp"
|
|
36
59
|
}
|
|
37
60
|
}
|
|
38
61
|
}
|
|
39
62
|
```
|
|
40
63
|
|
|
41
|
-
|
|
64
|
+
### Cursor / Windsurf / Other MCP Clients
|
|
65
|
+
|
|
66
|
+
Most MCP-compatible editors use the same config format. Check your editor's MCP documentation for where to place the server config. The command is always `datacore-mcp`.
|
|
67
|
+
|
|
68
|
+
### HTTP (Remote / Multi-Client)
|
|
69
|
+
|
|
70
|
+
For shared or remote setups, run in HTTP mode:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
datacore-mcp --http
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Then point your MCP client to `http://127.0.0.1:3100/mcp`. See [HTTP Transport](#http-transport) for options.
|
|
42
77
|
|
|
43
78
|
## Two Modes
|
|
44
79
|
|
|
@@ -51,7 +86,14 @@ Mode is auto-detected. If you have a full [Datacore](https://github.com/datacore
|
|
|
51
86
|
|
|
52
87
|
Override with environment variables: `DATACORE_PATH` (full) or `DATACORE_CORE_PATH` (core).
|
|
53
88
|
|
|
54
|
-
## Tools
|
|
89
|
+
## Tools (17 core + 3 full-mode)
|
|
90
|
+
|
|
91
|
+
### Session
|
|
92
|
+
|
|
93
|
+
| Tool | Description |
|
|
94
|
+
|------|-------------|
|
|
95
|
+
| `datacore.session.start` | Begin a session — injects relevant engrams, shows today's journal |
|
|
96
|
+
| `datacore.session.end` | End a session — captures journal summary and creates engrams |
|
|
55
97
|
|
|
56
98
|
### Core
|
|
57
99
|
|
|
@@ -60,15 +102,17 @@ Override with environment variables: `DATACORE_PATH` (full) or `DATACORE_CORE_PA
|
|
|
60
102
|
| `datacore.capture` | Write a journal entry or knowledge note |
|
|
61
103
|
| `datacore.learn` | Create an engram from a statement |
|
|
62
104
|
| `datacore.inject` | Get relevant engrams for a task |
|
|
63
|
-
| `datacore.
|
|
105
|
+
| `datacore.recall` | Search all sources (engrams + journal + knowledge) |
|
|
106
|
+
| `datacore.search` | Search journal and knowledge by keyword or semantic |
|
|
64
107
|
| `datacore.ingest` | Ingest text as a knowledge note with engram extraction |
|
|
65
|
-
| `datacore.status` | System status, counts,
|
|
108
|
+
| `datacore.status` | System status, counts, actionable recommendations |
|
|
66
109
|
|
|
67
110
|
### Lifecycle
|
|
68
111
|
|
|
69
112
|
| Tool | Description |
|
|
70
113
|
|------|-------------|
|
|
71
|
-
| `datacore.
|
|
114
|
+
| `datacore.promote` | Activate candidate engrams |
|
|
115
|
+
| `datacore.feedback` | Signal whether engrams were helpful (single or batch) |
|
|
72
116
|
| `datacore.forget` | Retire an engram by ID or search |
|
|
73
117
|
|
|
74
118
|
### Packs
|
|
@@ -87,6 +131,29 @@ Override with environment variables: `DATACORE_PATH` (full) or `DATACORE_CORE_PA
|
|
|
87
131
|
| `datacore.modules.info` | Detailed info about a module |
|
|
88
132
|
| `datacore.modules.health` | Health check for modules |
|
|
89
133
|
|
|
134
|
+
## Prompts
|
|
135
|
+
|
|
136
|
+
The server provides MCP prompts — workflow templates your AI can discover and use automatically:
|
|
137
|
+
|
|
138
|
+
| Prompt | Description |
|
|
139
|
+
|--------|-------------|
|
|
140
|
+
| `datacore-session` | Start a working session with context injection |
|
|
141
|
+
| `datacore-learn` | Record a learning through the engram lifecycle |
|
|
142
|
+
| `datacore-guide` | Complete guide to all tools and workflows |
|
|
143
|
+
|
|
144
|
+
Prompts are the primary way the AI understands Datacore. When your AI connects, it can list available prompts and immediately knows the session lifecycle, engram workflow, and how all tools relate.
|
|
145
|
+
|
|
146
|
+
## Resources
|
|
147
|
+
|
|
148
|
+
| Resource | Description |
|
|
149
|
+
|----------|-------------|
|
|
150
|
+
| `datacore://guide` | Agent workflow reference (markdown) |
|
|
151
|
+
| `datacore://status` | System status summary (JSON) |
|
|
152
|
+
| `datacore://engrams/active` | All active engrams (JSON) |
|
|
153
|
+
| `datacore://journal/today` | Today's journal entry (markdown) |
|
|
154
|
+
| `datacore://journal/{date}` | Journal entry by date |
|
|
155
|
+
| `datacore://engrams/{id}` | Specific engram by ID |
|
|
156
|
+
|
|
90
157
|
## How Engrams Work
|
|
91
158
|
|
|
92
159
|
Engrams are typed knowledge units with activation dynamics:
|
|
@@ -119,6 +186,8 @@ Bundled starter packs are installed automatically on first run.
|
|
|
119
186
|
|
|
120
187
|
## Configuration
|
|
121
188
|
|
|
189
|
+
### Environment Variables
|
|
190
|
+
|
|
122
191
|
| Variable | Default | Description |
|
|
123
192
|
|----------|---------|-------------|
|
|
124
193
|
| `DATACORE_PATH` | `~/Data` | Full installation path |
|
|
@@ -130,16 +199,36 @@ Bundled starter packs are installed automatically on first run.
|
|
|
130
199
|
| `DATACORE_HTTP_PORT` | `3100` | HTTP transport port |
|
|
131
200
|
| `DATACORE_HTTP_HOST` | `127.0.0.1` | HTTP bind address |
|
|
132
201
|
|
|
202
|
+
### config.yaml
|
|
203
|
+
|
|
204
|
+
Create `config.yaml` in your Datacore directory (or `.datacore/config.yaml` in full mode):
|
|
205
|
+
|
|
206
|
+
```yaml
|
|
207
|
+
version: 2
|
|
208
|
+
engrams:
|
|
209
|
+
auto_promote: false # true: learn creates active engrams immediately
|
|
210
|
+
packs:
|
|
211
|
+
trusted_publishers: [] # publisher IDs whose packs are flagged for auto-install
|
|
212
|
+
search:
|
|
213
|
+
max_results: 20
|
|
214
|
+
snippet_length: 500 # chars around match
|
|
215
|
+
hints:
|
|
216
|
+
enabled: true # include _hints in tool responses for agent guidance
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
All fields have defaults -- the file is optional.
|
|
220
|
+
|
|
133
221
|
## HTTP Transport
|
|
134
222
|
|
|
135
223
|
For remote or multi-client setups:
|
|
136
224
|
|
|
137
225
|
```bash
|
|
138
|
-
DATACORE_HTTP_PORT=8080
|
|
226
|
+
DATACORE_HTTP_PORT=8080 datacore-mcp --http
|
|
139
227
|
```
|
|
140
228
|
|
|
141
|
-
|
|
142
|
-
|
|
229
|
+
- MCP endpoint: `POST /mcp`
|
|
230
|
+
- Health check: `GET /health`
|
|
231
|
+
- Default bind: `127.0.0.1:3100`
|
|
143
232
|
|
|
144
233
|
## Module System (Full Mode)
|
|
145
234
|
|