kratos-mcp 1.6.1 โ 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 -442
- package/dist/index.d.ts +0 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -717
- package/dist/index.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%">
|
|
@@ -144,333 +144,6 @@ Add to `.cursor/mcp_config.json` in your project root:
|
|
|
144
144
|
```
|
|
145
145
|
</details>
|
|
146
146
|
|
|
147
|
-
<details>
|
|
148
|
-
<summary><b>Windsurf (Codeium)</b></summary>
|
|
149
|
-
|
|
150
|
-
Add to `~/.windsurf/mcp_config.json`:
|
|
151
|
-
|
|
152
|
-
```json
|
|
153
|
-
{
|
|
154
|
-
"mcpServers": {
|
|
155
|
-
"kratos": {
|
|
156
|
-
"command": "npx",
|
|
157
|
-
"args": ["--yes", "kratos-mcp@latest"]
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
```
|
|
162
|
-
</details>
|
|
163
|
-
|
|
164
|
-
<details>
|
|
165
|
-
<summary><b>Cline (VSCode Extension)</b></summary>
|
|
166
|
-
|
|
167
|
-
1. Open VSCode Command Palette (Cmd+Shift+P)
|
|
168
|
-
2. Run "Cline: Edit MCP Settings"
|
|
169
|
-
3. Add server configuration:
|
|
170
|
-
|
|
171
|
-
```json
|
|
172
|
-
{
|
|
173
|
-
"kratos": {
|
|
174
|
-
"command": "npx",
|
|
175
|
-
"args": ["kratos-mcp"]
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
```
|
|
179
|
-
</details>
|
|
180
|
-
|
|
181
|
-
<details>
|
|
182
|
-
<summary><b>BoltAI</b></summary>
|
|
183
|
-
|
|
184
|
-
1. Open BoltAI Settings
|
|
185
|
-
2. Navigate to MCP Servers
|
|
186
|
-
3. Add new server with:
|
|
187
|
-
|
|
188
|
-
```json
|
|
189
|
-
{
|
|
190
|
-
"name": "kratos",
|
|
191
|
-
"command": "npx",
|
|
192
|
-
"args": ["kratos-mcp"]
|
|
193
|
-
}
|
|
194
|
-
```
|
|
195
|
-
</details>
|
|
196
|
-
|
|
197
|
-
<details>
|
|
198
|
-
<summary><b>Augment Code</b></summary>
|
|
199
|
-
|
|
200
|
-
Add to Augment settings under MCP configuration:
|
|
201
|
-
|
|
202
|
-
```json
|
|
203
|
-
{
|
|
204
|
-
"mcpServers": {
|
|
205
|
-
"kratos": {
|
|
206
|
-
"command": "npx",
|
|
207
|
-
"args": ["--yes", "kratos-mcp@latest"]
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
```
|
|
212
|
-
</details>
|
|
213
|
-
|
|
214
|
-
<details>
|
|
215
|
-
<summary><b>Roo Code (VSCode Extension)</b></summary>
|
|
216
|
-
|
|
217
|
-
Add to `.roo/config.json`:
|
|
218
|
-
|
|
219
|
-
```json
|
|
220
|
-
{
|
|
221
|
-
"mcpServers": {
|
|
222
|
-
"kratos": {
|
|
223
|
-
"command": "npx",
|
|
224
|
-
"args": ["--yes", "kratos-mcp@latest"]
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
```
|
|
229
|
-
</details>
|
|
230
|
-
|
|
231
|
-
<details>
|
|
232
|
-
<summary><b>Zencoder</b></summary>
|
|
233
|
-
|
|
234
|
-
Configure in Zencoder settings:
|
|
235
|
-
|
|
236
|
-
```json
|
|
237
|
-
{
|
|
238
|
-
"mcpServers": {
|
|
239
|
-
"kratos": {
|
|
240
|
-
"command": "npx",
|
|
241
|
-
"args": ["--yes", "kratos-mcp@latest"]
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
```
|
|
246
|
-
</details>
|
|
247
|
-
|
|
248
|
-
<details>
|
|
249
|
-
<summary><b>Amazon Q Developer</b></summary>
|
|
250
|
-
|
|
251
|
-
Add to Q Developer settings:
|
|
252
|
-
|
|
253
|
-
```json
|
|
254
|
-
{
|
|
255
|
-
"mcpServers": [
|
|
256
|
-
{
|
|
257
|
-
"name": "kratos",
|
|
258
|
-
"command": "npx",
|
|
259
|
-
"args": ["kratos-mcp"]
|
|
260
|
-
}
|
|
261
|
-
]
|
|
262
|
-
}
|
|
263
|
-
```
|
|
264
|
-
</details>
|
|
265
|
-
|
|
266
|
-
<details>
|
|
267
|
-
<summary><b>Qodo Gen</b></summary>
|
|
268
|
-
|
|
269
|
-
Add to Qodo configuration:
|
|
270
|
-
|
|
271
|
-
```json
|
|
272
|
-
{
|
|
273
|
-
"mcpServers": {
|
|
274
|
-
"kratos": {
|
|
275
|
-
"command": "npx",
|
|
276
|
-
"args": ["--yes", "kratos-mcp@latest"]
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
```
|
|
281
|
-
</details>
|
|
282
|
-
|
|
283
|
-
<details>
|
|
284
|
-
<summary><b>JetBrains AI Assistant</b></summary>
|
|
285
|
-
|
|
286
|
-
1. Open Settings โ Tools โ AI Assistant
|
|
287
|
-
2. Add MCP server:
|
|
288
|
-
|
|
289
|
-
```json
|
|
290
|
-
{
|
|
291
|
-
"kratos": {
|
|
292
|
-
"command": "npx",
|
|
293
|
-
"args": ["kratos-mcp"]
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
```
|
|
297
|
-
</details>
|
|
298
|
-
|
|
299
|
-
<details>
|
|
300
|
-
<summary><b>Warp Terminal</b></summary>
|
|
301
|
-
|
|
302
|
-
Add to `~/.warp/mcp_config.json`:
|
|
303
|
-
|
|
304
|
-
```json
|
|
305
|
-
{
|
|
306
|
-
"mcpServers": {
|
|
307
|
-
"kratos": {
|
|
308
|
-
"command": "npx",
|
|
309
|
-
"args": ["--yes", "kratos-mcp@latest"]
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
```
|
|
314
|
-
</details>
|
|
315
|
-
|
|
316
|
-
<details>
|
|
317
|
-
<summary><b>Opencode</b></summary>
|
|
318
|
-
|
|
319
|
-
Configure in Opencode settings:
|
|
320
|
-
|
|
321
|
-
```json
|
|
322
|
-
{
|
|
323
|
-
"mcpServers": {
|
|
324
|
-
"kratos": {
|
|
325
|
-
"command": "npx",
|
|
326
|
-
"args": ["--yes", "kratos-mcp@latest"]
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
```
|
|
331
|
-
</details>
|
|
332
|
-
|
|
333
|
-
<details>
|
|
334
|
-
<summary><b>Copilot Coding Agent</b></summary>
|
|
335
|
-
|
|
336
|
-
Add to Copilot configuration:
|
|
337
|
-
|
|
338
|
-
```json
|
|
339
|
-
{
|
|
340
|
-
"mcpServers": {
|
|
341
|
-
"kratos": {
|
|
342
|
-
"command": "npx",
|
|
343
|
-
"args": ["--yes", "kratos-mcp@latest"]
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
```
|
|
348
|
-
</details>
|
|
349
|
-
|
|
350
|
-
<details>
|
|
351
|
-
<summary><b>Kiro</b></summary>
|
|
352
|
-
|
|
353
|
-
Add to Kiro settings:
|
|
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>OpenAI Codex</b></summary>
|
|
369
|
-
|
|
370
|
-
Configure in Codex 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>LM Studio</b></summary>
|
|
386
|
-
|
|
387
|
-
Add to LM Studio MCP 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>Perplexity Desktop</b></summary>
|
|
403
|
-
|
|
404
|
-
Add to Perplexity 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>Continue.dev</b></summary>
|
|
420
|
-
|
|
421
|
-
Add to `~/.continue/config.json`:
|
|
422
|
-
|
|
423
|
-
```json
|
|
424
|
-
{
|
|
425
|
-
"models": [...],
|
|
426
|
-
"mcpServers": {
|
|
427
|
-
"kratos": {
|
|
428
|
-
"command": "npx",
|
|
429
|
-
"args": ["kratos-mcp"]
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
```
|
|
434
|
-
</details>
|
|
435
|
-
|
|
436
|
-
<details>
|
|
437
|
-
<summary><b>Zed</b></summary>
|
|
438
|
-
|
|
439
|
-
Add to `~/.config/zed/settings.json`:
|
|
440
|
-
|
|
441
|
-
```json
|
|
442
|
-
{
|
|
443
|
-
"assistant": {
|
|
444
|
-
"mcpServers": {
|
|
445
|
-
"kratos": {
|
|
446
|
-
"command": "npx",
|
|
447
|
-
"args": ["kratos-mcp"]
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
```
|
|
453
|
-
</details>
|
|
454
|
-
|
|
455
|
-
<details>
|
|
456
|
-
<summary><b>VS Code (Generic MCP Extensions)</b></summary>
|
|
457
|
-
|
|
458
|
-
For any MCP-compatible VS Code extension, add to `.vscode/settings.json`:
|
|
459
|
-
|
|
460
|
-
```json
|
|
461
|
-
{
|
|
462
|
-
"mcpServers": {
|
|
463
|
-
"kratos": {
|
|
464
|
-
"command": "npx",
|
|
465
|
-
"args": ["--yes", "kratos-mcp@latest"]
|
|
466
|
-
}
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
```
|
|
470
|
-
</details>
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
147
|
<details>
|
|
475
148
|
<summary><b>Other MCP Tools</b></summary>
|
|
476
149
|
|
|
@@ -483,6 +156,8 @@ Kratos works with any tool supporting the Model Context Protocol. The general fo
|
|
|
483
156
|
}
|
|
484
157
|
```
|
|
485
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
|
+
|
|
486
161
|
Check your tool's documentation for specific MCP server configuration location.
|
|
487
162
|
|
|
488
163
|
</details>
|
|
@@ -492,120 +167,97 @@ Check your tool's documentation for specific MCP server configuration location.
|
|
|
492
167
|
```typescript
|
|
493
168
|
// Your AI now remembers:
|
|
494
169
|
// โ Your authentication patterns
|
|
495
|
-
// โ Your API structure
|
|
170
|
+
// โ Your API structure
|
|
496
171
|
// โ Your component architecture
|
|
497
172
|
// โ Your coding standards
|
|
498
173
|
// โ Every decision you've made
|
|
499
174
|
```
|
|
500
175
|
|
|
501
|
-
##
|
|
176
|
+
## ๐ ๏ธ Available Tools
|
|
502
177
|
|
|
503
|
-
|
|
178
|
+
Kratos provides **12 ultra-lean tools** optimized for minimal context consumption:
|
|
504
179
|
|
|
505
|
-
###
|
|
506
|
-
> "What Matters"
|
|
507
|
-
|
|
508
|
-
Define not just *what* to build, but *how* AI should build it:
|
|
509
|
-
- Complete page paths and user flows
|
|
510
|
-
- API endpoints and data structures
|
|
511
|
-
- Edge cases and integration points
|
|
512
|
-
- UI/UX references and patterns
|
|
513
|
-
|
|
514
|
-
### ๐ฏ **Pillar 2: Prompt Templates**
|
|
515
|
-
> "What to Do"
|
|
516
|
-
|
|
517
|
-
Reusable task templates that work perfectly with your codebase:
|
|
518
|
-
- Role & stack definition
|
|
519
|
-
- Clear scope constraints
|
|
520
|
-
- File context specifications
|
|
521
|
-
- Verification steps
|
|
522
|
-
|
|
523
|
-
### ๐ง **Pillar 3: Context Retrieval**
|
|
524
|
-
> "What to Inject"
|
|
525
|
-
|
|
526
|
-
Smart injection of relevant memories based on your current task:
|
|
527
|
-
- Automatic pattern matching
|
|
528
|
-
- Path-based relevance scoring
|
|
529
|
-
- Recency weighting
|
|
530
|
-
- Semantic clustering
|
|
531
|
-
|
|
532
|
-
### ๐พ **Pillar 4: Memory Storage**
|
|
533
|
-
> "What to Save"
|
|
534
|
-
|
|
535
|
-
Permanent knowledge base that grows with your project:
|
|
536
|
-
- Architecture decisions
|
|
537
|
-
- Bug fixes and solutions
|
|
538
|
-
- Feature implementations
|
|
539
|
-
- Performance optimizations
|
|
540
|
-
|
|
541
|
-
## ๐ ๏ธ Core Tools
|
|
180
|
+
### ๐พ Memory Management (7 tools)
|
|
542
181
|
|
|
543
182
|
<table>
|
|
544
183
|
<tr>
|
|
545
184
|
<th>Tool</th>
|
|
546
185
|
<th>Description</th>
|
|
547
|
-
<th>Example</th>
|
|
548
186
|
</tr>
|
|
549
187
|
<tr>
|
|
550
188
|
<td><code>memory_save</code></td>
|
|
551
|
-
<td>Store important project knowledge</td>
|
|
552
|
-
<td>
|
|
553
|
-
|
|
554
|
-
```javascript
|
|
555
|
-
// Save authentication pattern
|
|
556
|
-
memory_save({
|
|
557
|
-
title: "JWT Auth Flow",
|
|
558
|
-
content: "Tokens in httpOnly cookies...",
|
|
559
|
-
tags: ["auth", "security"]
|
|
560
|
-
})
|
|
561
|
-
```
|
|
562
|
-
|
|
563
|
-
</td>
|
|
189
|
+
<td>Store important project knowledge with tags, paths, and importance levels</td>
|
|
564
190
|
</tr>
|
|
565
191
|
<tr>
|
|
566
192
|
<td><code>memory_search</code></td>
|
|
567
|
-
<td>
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
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>
|
|
577
216
|
|
|
578
|
-
|
|
217
|
+
### ๐ Security (1 tool)
|
|
218
|
+
|
|
219
|
+
<table>
|
|
220
|
+
<tr>
|
|
221
|
+
<th>Tool</th>
|
|
222
|
+
<th>Description</th>
|
|
579
223
|
</tr>
|
|
580
224
|
<tr>
|
|
581
|
-
<td><code>
|
|
582
|
-
<td>
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
```javascript
|
|
586
|
-
// Update PRD section
|
|
587
|
-
prd_update({
|
|
588
|
-
feature: "api_structure",
|
|
589
|
-
content: "RESTful endpoints..."
|
|
590
|
-
})
|
|
591
|
-
```
|
|
225
|
+
<td><code>security_scan</code></td>
|
|
226
|
+
<td>Scan text for PII and secrets before saving</td>
|
|
227
|
+
</tr>
|
|
228
|
+
</table>
|
|
592
229
|
|
|
593
|
-
|
|
230
|
+
### ๐ Project Management (3 tools)
|
|
231
|
+
|
|
232
|
+
<table>
|
|
233
|
+
<tr>
|
|
234
|
+
<th>Tool</th>
|
|
235
|
+
<th>Description</th>
|
|
594
236
|
</tr>
|
|
595
237
|
<tr>
|
|
596
|
-
<td><code>
|
|
597
|
-
<td>
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
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>
|
|
607
250
|
|
|
608
|
-
|
|
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>
|
|
609
261
|
</tr>
|
|
610
262
|
</table>
|
|
611
263
|
|
|
@@ -615,11 +267,10 @@ prompt_build({
|
|
|
615
267
|
graph LR
|
|
616
268
|
A[Your Code] --> B[Kratos MCP]
|
|
617
269
|
B --> C{Project Detection}
|
|
618
|
-
C --> D[
|
|
270
|
+
C --> D[SQLite Database]
|
|
619
271
|
D --> E[Memory Storage]
|
|
620
|
-
|
|
621
|
-
F --> G[
|
|
622
|
-
G --> H[Perfect Context]
|
|
272
|
+
E --> F[AI Tool]
|
|
273
|
+
F --> G[Perfect Context]
|
|
623
274
|
```
|
|
624
275
|
|
|
625
276
|
## ๐ฌ Under the Hood
|
|
@@ -628,6 +279,7 @@ graph LR
|
|
|
628
279
|
- **Smart Scoring**: Path matching + recency + importance
|
|
629
280
|
- **Auto-detection**: Git, package.json, or directory-based
|
|
630
281
|
- **Secure**: All data stays local, no external calls
|
|
282
|
+
- **Lean**: Only 4 core components, minimal memory footprint
|
|
631
283
|
|
|
632
284
|
## ๐ Performance
|
|
633
285
|
|
|
@@ -637,8 +289,8 @@ graph LR
|
|
|
637
289
|
<th>Value</th>
|
|
638
290
|
</tr>
|
|
639
291
|
<tr>
|
|
640
|
-
<td>Context
|
|
641
|
-
<td>
|
|
292
|
+
<td>Context Overhead</td>
|
|
293
|
+
<td>64% smaller than v3</td>
|
|
642
294
|
</tr>
|
|
643
295
|
<tr>
|
|
644
296
|
<td>Memory Retrieval</td>
|
|
@@ -657,30 +309,63 @@ graph LR
|
|
|
657
309
|
## ๐๏ธ Memory Structure
|
|
658
310
|
|
|
659
311
|
```
|
|
660
|
-
|
|
312
|
+
~/.kratos/ # Default storage location
|
|
661
313
|
โโโ projects/
|
|
662
314
|
โ โโโ project-id-1/
|
|
663
|
-
โ โ
|
|
664
|
-
โ โ โโโ prd.yml # Product requirements
|
|
665
|
-
โ โ โโโ prompts/ # Reusable templates
|
|
315
|
+
โ โ โโโ memories.db # SQLite database with FTS5
|
|
666
316
|
โ โโโ project-id-2/
|
|
667
|
-
โ โโโ
|
|
668
|
-
โโโ
|
|
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
|
+
});
|
|
669
355
|
```
|
|
670
356
|
|
|
671
357
|
## ๐ฎ Live Demo
|
|
672
358
|
|
|
673
359
|
```typescript
|
|
674
360
|
// User: "Explain the auth system"
|
|
675
|
-
//
|
|
361
|
+
//
|
|
676
362
|
// Kratos automatically retrieves:
|
|
677
363
|
// โ JWT implementation from 2 weeks ago
|
|
678
|
-
// โ Middleware configuration from last month
|
|
364
|
+
// โ Middleware configuration from last month
|
|
679
365
|
// โ User model structure from initial setup
|
|
680
|
-
// โ Security decisions from PRD
|
|
681
366
|
//
|
|
682
|
-
// AI Response: "Your auth uses JWT with refresh tokens
|
|
683
|
-
// 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
|
|
684
369
|
// tokens on protected routes at /api/middleware/auth.ts:42..."
|
|
685
370
|
```
|
|
686
371
|
|
|
@@ -695,6 +380,9 @@ git clone https://github.com/ceorkm/kratos-mcp.git
|
|
|
695
380
|
# Install dependencies
|
|
696
381
|
npm install
|
|
697
382
|
|
|
383
|
+
# Build
|
|
384
|
+
npm run build
|
|
385
|
+
|
|
698
386
|
# Run in development
|
|
699
387
|
npm run dev
|
|
700
388
|
```
|
|
@@ -707,7 +395,7 @@ MIT ยฉ 2025 Kratos MCP Contributors
|
|
|
707
395
|
|
|
708
396
|
Built on the [Model Context Protocol](https://modelcontextprotocol.io) by Anthropic.
|
|
709
397
|
|
|
710
|
-
Inspired by
|
|
398
|
+
Inspired by real-world experience building production apps with AI.
|
|
711
399
|
|
|
712
400
|
---
|
|
713
401
|
|