kratos-mcp 1.6.0 โ 4.0.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 +130 -493
- package/dist/index.d.ts +12 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +114 -704
- package/dist/index.js.map +1 -1
- package/dist/project-manager.d.ts +8 -7
- package/dist/project-manager.d.ts.map +1 -1
- package/dist/project-manager.js +21 -40
- package/dist/project-manager.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
# ๐๏ธ Kratos MCP
|
|
4
4
|
|
|
5
|
-
### Memory System for AI Coding Tools
|
|
5
|
+
### Ultra-Lean Memory System for AI Coding Tools
|
|
6
6
|
|
|
7
7
|
[](https://www.npmjs.com/package/kratos-mcp)
|
|
8
8
|
[](https://opensource.org/licenses/MIT)
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
**Never explain your codebase again. Let AI remember everything.**
|
|
13
13
|
|
|
14
|
-
๐ **[kratos-mcp.com](https://kratos-mcp.com)** โข [Installation](#-installation) โข [Quick Start](#-quick-start) โข [Features](#-features) โข [
|
|
14
|
+
๐ **[kratos-mcp.com](https://kratos-mcp.com)** โข [Installation](#-installation) โข [Quick Start](#-quick-start) โข [Features](#-features) โข [Tools](#-available-tools)
|
|
15
15
|
|
|
16
16
|
</div>
|
|
17
17
|
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
After building 30+ production apps with AI, we discovered a critical problem: **AI tools forget everything between sessions**. You explain your architecture, your patterns, your decisionsโand tomorrow, you explain it all again.
|
|
23
23
|
|
|
24
|
-
Kratos MCP solves this with
|
|
24
|
+
Kratos MCP solves this with an **ultra-lean memory system** that gives AI perfect recall of your projectโwith minimal context overhead.
|
|
25
25
|
|
|
26
26
|
## โจ Features
|
|
27
27
|
|
|
@@ -35,16 +35,16 @@ Each project gets its own SQLite database. No cross-contamination. Ever.
|
|
|
35
35
|
</td>
|
|
36
36
|
<td width="50%">
|
|
37
37
|
|
|
38
|
-
###
|
|
39
|
-
|
|
38
|
+
### โก **Zero Configuration**
|
|
39
|
+
Auto-detects projects via git, package.json, or directory structure. Just install and code.
|
|
40
40
|
|
|
41
41
|
</td>
|
|
42
42
|
</tr>
|
|
43
43
|
<tr>
|
|
44
44
|
<td width="50%">
|
|
45
45
|
|
|
46
|
-
###
|
|
47
|
-
|
|
46
|
+
### ๐ชถ **Ultra-Lean Architecture**
|
|
47
|
+
Just 12 essential tools. 64% smaller context footprint than competitors.
|
|
48
48
|
|
|
49
49
|
</td>
|
|
50
50
|
<td width="50%">
|
|
@@ -56,57 +56,6 @@ Works with Claude, Cursor, Windsurf, Continueโany MCP-compatible tool.
|
|
|
56
56
|
</tr>
|
|
57
57
|
</table>
|
|
58
58
|
|
|
59
|
-
## โ๏ธ Configuration
|
|
60
|
-
|
|
61
|
-
Kratos supports flexible data storage configuration to fit your workflow:
|
|
62
|
-
|
|
63
|
-
### Data Storage Location
|
|
64
|
-
|
|
65
|
-
Kratos determines where to store project data using this priority order:
|
|
66
|
-
|
|
67
|
-
1. **Environment Variable** (highest priority)
|
|
68
|
-
```bash
|
|
69
|
-
export KRATOS_DATA_DIR="/opt/kratos"
|
|
70
|
-
# or
|
|
71
|
-
export KRATOS_DATA_DIR="/Users/yourname/custom-kratos"
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
2. **Project-specific Configuration** (`.vscode/settings.json`)
|
|
75
|
-
```json
|
|
76
|
-
{
|
|
77
|
-
"kratosDataDir": ".kratos", // Relative to project root
|
|
78
|
-
"kratosDataDir": "/opt/kratos" // Or absolute path
|
|
79
|
-
}
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
3. **Default Location** (fallback)
|
|
83
|
-
```
|
|
84
|
-
~/.kratos/ (User home directory)
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
### Configuration Examples
|
|
88
|
-
|
|
89
|
-
**Per-project storage** (as requested in GitHub issue):
|
|
90
|
-
```json
|
|
91
|
-
// .vscode/settings.json
|
|
92
|
-
{
|
|
93
|
-
"kratosDataDir": ".kratos"
|
|
94
|
-
}
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
**Team shared location**:
|
|
98
|
-
```bash
|
|
99
|
-
export KRATOS_DATA_DIR="/opt/kratos"
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
**Custom user directory**:
|
|
103
|
-
```json
|
|
104
|
-
// .vscode/settings.json
|
|
105
|
-
{
|
|
106
|
-
"kratosDataDir": "~/my-ai-memory"
|
|
107
|
-
}
|
|
108
|
-
```
|
|
109
|
-
|
|
110
59
|
## ๐ Installation
|
|
111
60
|
|
|
112
61
|
```bash
|
|
@@ -195,333 +144,6 @@ Add to `.cursor/mcp_config.json` in your project root:
|
|
|
195
144
|
```
|
|
196
145
|
</details>
|
|
197
146
|
|
|
198
|
-
<details>
|
|
199
|
-
<summary><b>Windsurf (Codeium)</b></summary>
|
|
200
|
-
|
|
201
|
-
Add to `~/.windsurf/mcp_config.json`:
|
|
202
|
-
|
|
203
|
-
```json
|
|
204
|
-
{
|
|
205
|
-
"mcpServers": {
|
|
206
|
-
"kratos": {
|
|
207
|
-
"command": "npx",
|
|
208
|
-
"args": ["--yes", "kratos-mcp@latest"]
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
```
|
|
213
|
-
</details>
|
|
214
|
-
|
|
215
|
-
<details>
|
|
216
|
-
<summary><b>Cline (VSCode Extension)</b></summary>
|
|
217
|
-
|
|
218
|
-
1. Open VSCode Command Palette (Cmd+Shift+P)
|
|
219
|
-
2. Run "Cline: Edit MCP Settings"
|
|
220
|
-
3. Add server configuration:
|
|
221
|
-
|
|
222
|
-
```json
|
|
223
|
-
{
|
|
224
|
-
"kratos": {
|
|
225
|
-
"command": "npx",
|
|
226
|
-
"args": ["kratos-mcp"]
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
```
|
|
230
|
-
</details>
|
|
231
|
-
|
|
232
|
-
<details>
|
|
233
|
-
<summary><b>BoltAI</b></summary>
|
|
234
|
-
|
|
235
|
-
1. Open BoltAI Settings
|
|
236
|
-
2. Navigate to MCP Servers
|
|
237
|
-
3. Add new server with:
|
|
238
|
-
|
|
239
|
-
```json
|
|
240
|
-
{
|
|
241
|
-
"name": "kratos",
|
|
242
|
-
"command": "npx",
|
|
243
|
-
"args": ["kratos-mcp"]
|
|
244
|
-
}
|
|
245
|
-
```
|
|
246
|
-
</details>
|
|
247
|
-
|
|
248
|
-
<details>
|
|
249
|
-
<summary><b>Augment Code</b></summary>
|
|
250
|
-
|
|
251
|
-
Add to Augment settings under MCP configuration:
|
|
252
|
-
|
|
253
|
-
```json
|
|
254
|
-
{
|
|
255
|
-
"mcpServers": {
|
|
256
|
-
"kratos": {
|
|
257
|
-
"command": "npx",
|
|
258
|
-
"args": ["--yes", "kratos-mcp@latest"]
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
```
|
|
263
|
-
</details>
|
|
264
|
-
|
|
265
|
-
<details>
|
|
266
|
-
<summary><b>Roo Code (VSCode Extension)</b></summary>
|
|
267
|
-
|
|
268
|
-
Add to `.roo/config.json`:
|
|
269
|
-
|
|
270
|
-
```json
|
|
271
|
-
{
|
|
272
|
-
"mcpServers": {
|
|
273
|
-
"kratos": {
|
|
274
|
-
"command": "npx",
|
|
275
|
-
"args": ["--yes", "kratos-mcp@latest"]
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
```
|
|
280
|
-
</details>
|
|
281
|
-
|
|
282
|
-
<details>
|
|
283
|
-
<summary><b>Zencoder</b></summary>
|
|
284
|
-
|
|
285
|
-
Configure in Zencoder settings:
|
|
286
|
-
|
|
287
|
-
```json
|
|
288
|
-
{
|
|
289
|
-
"mcpServers": {
|
|
290
|
-
"kratos": {
|
|
291
|
-
"command": "npx",
|
|
292
|
-
"args": ["--yes", "kratos-mcp@latest"]
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
```
|
|
297
|
-
</details>
|
|
298
|
-
|
|
299
|
-
<details>
|
|
300
|
-
<summary><b>Amazon Q Developer</b></summary>
|
|
301
|
-
|
|
302
|
-
Add to Q Developer settings:
|
|
303
|
-
|
|
304
|
-
```json
|
|
305
|
-
{
|
|
306
|
-
"mcpServers": [
|
|
307
|
-
{
|
|
308
|
-
"name": "kratos",
|
|
309
|
-
"command": "npx",
|
|
310
|
-
"args": ["kratos-mcp"]
|
|
311
|
-
}
|
|
312
|
-
]
|
|
313
|
-
}
|
|
314
|
-
```
|
|
315
|
-
</details>
|
|
316
|
-
|
|
317
|
-
<details>
|
|
318
|
-
<summary><b>Qodo Gen</b></summary>
|
|
319
|
-
|
|
320
|
-
Add to Qodo configuration:
|
|
321
|
-
|
|
322
|
-
```json
|
|
323
|
-
{
|
|
324
|
-
"mcpServers": {
|
|
325
|
-
"kratos": {
|
|
326
|
-
"command": "npx",
|
|
327
|
-
"args": ["--yes", "kratos-mcp@latest"]
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
```
|
|
332
|
-
</details>
|
|
333
|
-
|
|
334
|
-
<details>
|
|
335
|
-
<summary><b>JetBrains AI Assistant</b></summary>
|
|
336
|
-
|
|
337
|
-
1. Open Settings โ Tools โ AI Assistant
|
|
338
|
-
2. Add MCP server:
|
|
339
|
-
|
|
340
|
-
```json
|
|
341
|
-
{
|
|
342
|
-
"kratos": {
|
|
343
|
-
"command": "npx",
|
|
344
|
-
"args": ["kratos-mcp"]
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
```
|
|
348
|
-
</details>
|
|
349
|
-
|
|
350
|
-
<details>
|
|
351
|
-
<summary><b>Warp Terminal</b></summary>
|
|
352
|
-
|
|
353
|
-
Add to `~/.warp/mcp_config.json`:
|
|
354
|
-
|
|
355
|
-
```json
|
|
356
|
-
{
|
|
357
|
-
"mcpServers": {
|
|
358
|
-
"kratos": {
|
|
359
|
-
"command": "npx",
|
|
360
|
-
"args": ["--yes", "kratos-mcp@latest"]
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
```
|
|
365
|
-
</details>
|
|
366
|
-
|
|
367
|
-
<details>
|
|
368
|
-
<summary><b>Opencode</b></summary>
|
|
369
|
-
|
|
370
|
-
Configure in Opencode settings:
|
|
371
|
-
|
|
372
|
-
```json
|
|
373
|
-
{
|
|
374
|
-
"mcpServers": {
|
|
375
|
-
"kratos": {
|
|
376
|
-
"command": "npx",
|
|
377
|
-
"args": ["--yes", "kratos-mcp@latest"]
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
```
|
|
382
|
-
</details>
|
|
383
|
-
|
|
384
|
-
<details>
|
|
385
|
-
<summary><b>Copilot Coding Agent</b></summary>
|
|
386
|
-
|
|
387
|
-
Add to Copilot configuration:
|
|
388
|
-
|
|
389
|
-
```json
|
|
390
|
-
{
|
|
391
|
-
"mcpServers": {
|
|
392
|
-
"kratos": {
|
|
393
|
-
"command": "npx",
|
|
394
|
-
"args": ["--yes", "kratos-mcp@latest"]
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
```
|
|
399
|
-
</details>
|
|
400
|
-
|
|
401
|
-
<details>
|
|
402
|
-
<summary><b>Kiro</b></summary>
|
|
403
|
-
|
|
404
|
-
Add to Kiro settings:
|
|
405
|
-
|
|
406
|
-
```json
|
|
407
|
-
{
|
|
408
|
-
"mcpServers": {
|
|
409
|
-
"kratos": {
|
|
410
|
-
"command": "npx",
|
|
411
|
-
"args": ["--yes", "kratos-mcp@latest"]
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
```
|
|
416
|
-
</details>
|
|
417
|
-
|
|
418
|
-
<details>
|
|
419
|
-
<summary><b>OpenAI Codex</b></summary>
|
|
420
|
-
|
|
421
|
-
Configure in Codex settings:
|
|
422
|
-
|
|
423
|
-
```json
|
|
424
|
-
{
|
|
425
|
-
"mcpServers": {
|
|
426
|
-
"kratos": {
|
|
427
|
-
"command": "npx",
|
|
428
|
-
"args": ["--yes", "kratos-mcp@latest"]
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
```
|
|
433
|
-
</details>
|
|
434
|
-
|
|
435
|
-
<details>
|
|
436
|
-
<summary><b>LM Studio</b></summary>
|
|
437
|
-
|
|
438
|
-
Add to LM Studio MCP configuration:
|
|
439
|
-
|
|
440
|
-
```json
|
|
441
|
-
{
|
|
442
|
-
"mcpServers": {
|
|
443
|
-
"kratos": {
|
|
444
|
-
"command": "npx",
|
|
445
|
-
"args": ["--yes", "kratos-mcp@latest"]
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
```
|
|
450
|
-
</details>
|
|
451
|
-
|
|
452
|
-
<details>
|
|
453
|
-
<summary><b>Perplexity Desktop</b></summary>
|
|
454
|
-
|
|
455
|
-
Add to Perplexity settings:
|
|
456
|
-
|
|
457
|
-
```json
|
|
458
|
-
{
|
|
459
|
-
"mcpServers": {
|
|
460
|
-
"kratos": {
|
|
461
|
-
"command": "npx",
|
|
462
|
-
"args": ["--yes", "kratos-mcp@latest"]
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
```
|
|
467
|
-
</details>
|
|
468
|
-
|
|
469
|
-
<details>
|
|
470
|
-
<summary><b>Continue.dev</b></summary>
|
|
471
|
-
|
|
472
|
-
Add to `~/.continue/config.json`:
|
|
473
|
-
|
|
474
|
-
```json
|
|
475
|
-
{
|
|
476
|
-
"models": [...],
|
|
477
|
-
"mcpServers": {
|
|
478
|
-
"kratos": {
|
|
479
|
-
"command": "npx",
|
|
480
|
-
"args": ["kratos-mcp"]
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
```
|
|
485
|
-
</details>
|
|
486
|
-
|
|
487
|
-
<details>
|
|
488
|
-
<summary><b>Zed</b></summary>
|
|
489
|
-
|
|
490
|
-
Add to `~/.config/zed/settings.json`:
|
|
491
|
-
|
|
492
|
-
```json
|
|
493
|
-
{
|
|
494
|
-
"assistant": {
|
|
495
|
-
"mcpServers": {
|
|
496
|
-
"kratos": {
|
|
497
|
-
"command": "npx",
|
|
498
|
-
"args": ["kratos-mcp"]
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
```
|
|
504
|
-
</details>
|
|
505
|
-
|
|
506
|
-
<details>
|
|
507
|
-
<summary><b>VS Code (Generic MCP Extensions)</b></summary>
|
|
508
|
-
|
|
509
|
-
For any MCP-compatible VS Code extension, add to `.vscode/settings.json`:
|
|
510
|
-
|
|
511
|
-
```json
|
|
512
|
-
{
|
|
513
|
-
"mcpServers": {
|
|
514
|
-
"kratos": {
|
|
515
|
-
"command": "npx",
|
|
516
|
-
"args": ["--yes", "kratos-mcp@latest"]
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
```
|
|
521
|
-
</details>
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
147
|
<details>
|
|
526
148
|
<summary><b>Other MCP Tools</b></summary>
|
|
527
149
|
|
|
@@ -534,6 +156,8 @@ Kratos works with any tool supporting the Model Context Protocol. The general fo
|
|
|
534
156
|
}
|
|
535
157
|
```
|
|
536
158
|
|
|
159
|
+
**Compatible with:** Windsurf, Cline, BoltAI, Augment Code, Roo Code, Zencoder, Amazon Q, Qodo Gen, JetBrains AI, Warp, Opencode, Continue.dev, Zed, and more!
|
|
160
|
+
|
|
537
161
|
Check your tool's documentation for specific MCP server configuration location.
|
|
538
162
|
|
|
539
163
|
</details>
|
|
@@ -543,120 +167,97 @@ Check your tool's documentation for specific MCP server configuration location.
|
|
|
543
167
|
```typescript
|
|
544
168
|
// Your AI now remembers:
|
|
545
169
|
// โ Your authentication patterns
|
|
546
|
-
// โ Your API structure
|
|
170
|
+
// โ Your API structure
|
|
547
171
|
// โ Your component architecture
|
|
548
172
|
// โ Your coding standards
|
|
549
173
|
// โ Every decision you've made
|
|
550
174
|
```
|
|
551
175
|
|
|
552
|
-
##
|
|
553
|
-
|
|
554
|
-
Based on real-world experience building 30+ production apps with AI, Kratos implements the Four Pillars of effective AI development:
|
|
555
|
-
|
|
556
|
-
### ๐ **Pillar 1: PRD (Product Requirements)**
|
|
557
|
-
> "What Matters"
|
|
558
|
-
|
|
559
|
-
Define not just *what* to build, but *how* AI should build it:
|
|
560
|
-
- Complete page paths and user flows
|
|
561
|
-
- API endpoints and data structures
|
|
562
|
-
- Edge cases and integration points
|
|
563
|
-
- UI/UX references and patterns
|
|
564
|
-
|
|
565
|
-
### ๐ฏ **Pillar 2: Prompt Templates**
|
|
566
|
-
> "What to Do"
|
|
567
|
-
|
|
568
|
-
Reusable task templates that work perfectly with your codebase:
|
|
569
|
-
- Role & stack definition
|
|
570
|
-
- Clear scope constraints
|
|
571
|
-
- File context specifications
|
|
572
|
-
- Verification steps
|
|
573
|
-
|
|
574
|
-
### ๐ง **Pillar 3: Context Retrieval**
|
|
575
|
-
> "What to Inject"
|
|
176
|
+
## ๐ ๏ธ Available Tools
|
|
576
177
|
|
|
577
|
-
|
|
578
|
-
- Automatic pattern matching
|
|
579
|
-
- Path-based relevance scoring
|
|
580
|
-
- Recency weighting
|
|
581
|
-
- Semantic clustering
|
|
178
|
+
Kratos provides **12 ultra-lean tools** optimized for minimal context consumption:
|
|
582
179
|
|
|
583
|
-
### ๐พ
|
|
584
|
-
> "What to Save"
|
|
585
|
-
|
|
586
|
-
Permanent knowledge base that grows with your project:
|
|
587
|
-
- Architecture decisions
|
|
588
|
-
- Bug fixes and solutions
|
|
589
|
-
- Feature implementations
|
|
590
|
-
- Performance optimizations
|
|
591
|
-
|
|
592
|
-
## ๐ ๏ธ Core Tools
|
|
180
|
+
### ๐พ Memory Management (7 tools)
|
|
593
181
|
|
|
594
182
|
<table>
|
|
595
183
|
<tr>
|
|
596
184
|
<th>Tool</th>
|
|
597
185
|
<th>Description</th>
|
|
598
|
-
<th>Example</th>
|
|
599
186
|
</tr>
|
|
600
187
|
<tr>
|
|
601
188
|
<td><code>memory_save</code></td>
|
|
602
|
-
<td>Store important project knowledge</td>
|
|
603
|
-
<td>
|
|
604
|
-
|
|
605
|
-
```javascript
|
|
606
|
-
// Save authentication pattern
|
|
607
|
-
memory_save({
|
|
608
|
-
title: "JWT Auth Flow",
|
|
609
|
-
content: "Tokens in httpOnly cookies...",
|
|
610
|
-
tags: ["auth", "security"]
|
|
611
|
-
})
|
|
612
|
-
```
|
|
613
|
-
|
|
614
|
-
</td>
|
|
189
|
+
<td>Store important project knowledge with tags, paths, and importance levels</td>
|
|
615
190
|
</tr>
|
|
616
191
|
<tr>
|
|
617
192
|
<td><code>memory_search</code></td>
|
|
618
|
-
<td>
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
193
|
+
<td>Smart semantic search with debug mode and path matching</td>
|
|
194
|
+
</tr>
|
|
195
|
+
<tr>
|
|
196
|
+
<td><code>memory_ask</code></td>
|
|
197
|
+
<td>Natural language queries about your memories</td>
|
|
198
|
+
</tr>
|
|
199
|
+
<tr>
|
|
200
|
+
<td><code>memory_get_recent</code></td>
|
|
201
|
+
<td>Get recently created memories with filtering</td>
|
|
202
|
+
</tr>
|
|
203
|
+
<tr>
|
|
204
|
+
<td><code>memory_get</code></td>
|
|
205
|
+
<td>Retrieve a specific memory by ID</td>
|
|
206
|
+
</tr>
|
|
207
|
+
<tr>
|
|
208
|
+
<td><code>memory_get_multiple</code></td>
|
|
209
|
+
<td>Bulk retrieve multiple memories</td>
|
|
210
|
+
</tr>
|
|
211
|
+
<tr>
|
|
212
|
+
<td><code>memory_forget</code></td>
|
|
213
|
+
<td>Delete a memory by ID</td>
|
|
214
|
+
</tr>
|
|
215
|
+
</table>
|
|
628
216
|
|
|
629
|
-
|
|
217
|
+
### ๐ Security (1 tool)
|
|
218
|
+
|
|
219
|
+
<table>
|
|
220
|
+
<tr>
|
|
221
|
+
<th>Tool</th>
|
|
222
|
+
<th>Description</th>
|
|
630
223
|
</tr>
|
|
631
224
|
<tr>
|
|
632
|
-
<td><code>
|
|
633
|
-
<td>
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
```javascript
|
|
637
|
-
// Update PRD section
|
|
638
|
-
prd_update({
|
|
639
|
-
feature: "api_structure",
|
|
640
|
-
content: "RESTful endpoints..."
|
|
641
|
-
})
|
|
642
|
-
```
|
|
225
|
+
<td><code>security_scan</code></td>
|
|
226
|
+
<td>Scan text for PII and secrets before saving</td>
|
|
227
|
+
</tr>
|
|
228
|
+
</table>
|
|
643
229
|
|
|
644
|
-
|
|
230
|
+
### ๐ Project Management (3 tools)
|
|
231
|
+
|
|
232
|
+
<table>
|
|
233
|
+
<tr>
|
|
234
|
+
<th>Tool</th>
|
|
235
|
+
<th>Description</th>
|
|
645
236
|
</tr>
|
|
646
237
|
<tr>
|
|
647
|
-
<td><code>
|
|
648
|
-
<td>
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
238
|
+
<td><code>project_switch</code></td>
|
|
239
|
+
<td>Switch between different projects</td>
|
|
240
|
+
</tr>
|
|
241
|
+
<tr>
|
|
242
|
+
<td><code>project_current</code></td>
|
|
243
|
+
<td>Get current active project info</td>
|
|
244
|
+
</tr>
|
|
245
|
+
<tr>
|
|
246
|
+
<td><code>change_storage_path</code></td>
|
|
247
|
+
<td>Dynamically change storage location with automatic data migration</td>
|
|
248
|
+
</tr>
|
|
249
|
+
</table>
|
|
658
250
|
|
|
659
|
-
|
|
251
|
+
### โ๏ธ System (1 tool)
|
|
252
|
+
|
|
253
|
+
<table>
|
|
254
|
+
<tr>
|
|
255
|
+
<th>Tool</th>
|
|
256
|
+
<th>Description</th>
|
|
257
|
+
</tr>
|
|
258
|
+
<tr>
|
|
259
|
+
<td><code>system_status</code></td>
|
|
260
|
+
<td>Get system status and memory statistics</td>
|
|
660
261
|
</tr>
|
|
661
262
|
</table>
|
|
662
263
|
|
|
@@ -666,11 +267,10 @@ prompt_build({
|
|
|
666
267
|
graph LR
|
|
667
268
|
A[Your Code] --> B[Kratos MCP]
|
|
668
269
|
B --> C{Project Detection}
|
|
669
|
-
C --> D[
|
|
270
|
+
C --> D[SQLite Database]
|
|
670
271
|
D --> E[Memory Storage]
|
|
671
|
-
|
|
672
|
-
F --> G[
|
|
673
|
-
G --> H[Perfect Context]
|
|
272
|
+
E --> F[AI Tool]
|
|
273
|
+
F --> G[Perfect Context]
|
|
674
274
|
```
|
|
675
275
|
|
|
676
276
|
## ๐ฌ Under the Hood
|
|
@@ -679,6 +279,7 @@ graph LR
|
|
|
679
279
|
- **Smart Scoring**: Path matching + recency + importance
|
|
680
280
|
- **Auto-detection**: Git, package.json, or directory-based
|
|
681
281
|
- **Secure**: All data stays local, no external calls
|
|
282
|
+
- **Lean**: Only 4 core components, minimal memory footprint
|
|
682
283
|
|
|
683
284
|
## ๐ Performance
|
|
684
285
|
|
|
@@ -688,8 +289,8 @@ graph LR
|
|
|
688
289
|
<th>Value</th>
|
|
689
290
|
</tr>
|
|
690
291
|
<tr>
|
|
691
|
-
<td>Context
|
|
692
|
-
<td>
|
|
292
|
+
<td>Context Overhead</td>
|
|
293
|
+
<td>64% smaller than v3</td>
|
|
693
294
|
</tr>
|
|
694
295
|
<tr>
|
|
695
296
|
<td>Memory Retrieval</td>
|
|
@@ -708,30 +309,63 @@ graph LR
|
|
|
708
309
|
## ๐๏ธ Memory Structure
|
|
709
310
|
|
|
710
311
|
```
|
|
711
|
-
|
|
312
|
+
~/.kratos/ # Default storage location
|
|
712
313
|
โโโ projects/
|
|
713
314
|
โ โโโ project-id-1/
|
|
714
|
-
โ โ
|
|
715
|
-
โ โ โโโ prd.yml # Product requirements
|
|
716
|
-
โ โ โโโ prompts/ # Reusable templates
|
|
315
|
+
โ โ โโโ memories.db # SQLite database with FTS5
|
|
717
316
|
โ โโโ project-id-2/
|
|
718
|
-
โ โโโ
|
|
719
|
-
โโโ
|
|
317
|
+
โ โโโ memories.db
|
|
318
|
+
โโโ global/
|
|
319
|
+
โโโ global.db # Shared knowledge (optional)
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
**New in v1.6.1:** Use `change_storage_path` to move data to custom locations like `/opt/kratos` or `.kratos` for per-project storage.
|
|
323
|
+
|
|
324
|
+
## ๐ก Example Usage
|
|
325
|
+
|
|
326
|
+
```typescript
|
|
327
|
+
// Save a memory
|
|
328
|
+
await memory_save({
|
|
329
|
+
summary: "JWT auth implementation",
|
|
330
|
+
text: "We use httpOnly cookies with refresh tokens...",
|
|
331
|
+
tags: ["auth", "security"],
|
|
332
|
+
paths: ["src/middleware/auth.ts"],
|
|
333
|
+
importance: 5
|
|
334
|
+
});
|
|
335
|
+
|
|
336
|
+
// Search memories
|
|
337
|
+
await memory_search({
|
|
338
|
+
q: "authentication",
|
|
339
|
+
k: 5,
|
|
340
|
+
debug: true // Get search insights
|
|
341
|
+
});
|
|
342
|
+
|
|
343
|
+
// Ask natural language questions
|
|
344
|
+
await memory_ask({
|
|
345
|
+
question: "How does our auth system work?",
|
|
346
|
+
limit: 10
|
|
347
|
+
});
|
|
348
|
+
|
|
349
|
+
// Change storage location
|
|
350
|
+
await change_storage_path({
|
|
351
|
+
newPath: "/opt/kratos",
|
|
352
|
+
migrate: true,
|
|
353
|
+
backup: true
|
|
354
|
+
});
|
|
720
355
|
```
|
|
721
356
|
|
|
722
357
|
## ๐ฎ Live Demo
|
|
723
358
|
|
|
724
359
|
```typescript
|
|
725
360
|
// User: "Explain the auth system"
|
|
726
|
-
//
|
|
361
|
+
//
|
|
727
362
|
// Kratos automatically retrieves:
|
|
728
363
|
// โ JWT implementation from 2 weeks ago
|
|
729
|
-
// โ Middleware configuration from last month
|
|
364
|
+
// โ Middleware configuration from last month
|
|
730
365
|
// โ User model structure from initial setup
|
|
731
|
-
// โ Security decisions from PRD
|
|
732
366
|
//
|
|
733
|
-
// AI Response: "Your auth uses JWT with refresh tokens
|
|
734
|
-
// stored in httpOnly cookies. The middleware validates
|
|
367
|
+
// AI Response: "Your auth uses JWT with refresh tokens
|
|
368
|
+
// stored in httpOnly cookies. The middleware validates
|
|
735
369
|
// tokens on protected routes at /api/middleware/auth.ts:42..."
|
|
736
370
|
```
|
|
737
371
|
|
|
@@ -746,6 +380,9 @@ git clone https://github.com/ceorkm/kratos-mcp.git
|
|
|
746
380
|
# Install dependencies
|
|
747
381
|
npm install
|
|
748
382
|
|
|
383
|
+
# Build
|
|
384
|
+
npm run build
|
|
385
|
+
|
|
749
386
|
# Run in development
|
|
750
387
|
npm run dev
|
|
751
388
|
```
|
|
@@ -758,7 +395,7 @@ MIT ยฉ 2025 Kratos MCP Contributors
|
|
|
758
395
|
|
|
759
396
|
Built on the [Model Context Protocol](https://modelcontextprotocol.io) by Anthropic.
|
|
760
397
|
|
|
761
|
-
Inspired by
|
|
398
|
+
Inspired by real-world experience building production apps with AI.
|
|
762
399
|
|
|
763
400
|
---
|
|
764
401
|
|