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 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
  [![npm version](https://img.shields.io/npm/v/kratos-mcp.svg)](https://www.npmjs.com/package/kratos-mcp)
8
8
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](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) โ€ข [Documentation](#-documentation) โ€ข [Contributing](#-contributing)
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 the **Four Pillars Framework**โ€”a battle-tested system that gives AI perfect memory of your project.
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
- ### ๐ŸŽฏ **95.8% Context Accuracy**
39
- Smart retrieval engine that knows exactly what memories matter for your current task.
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
- ### โšก **Zero Configuration**
47
- Auto-detects projects via git, package.json, or directory structure. Just install and code.
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
- ## ๐Ÿ›๏ธ The Four Pillars Framework
176
+ ## ๐Ÿ› ๏ธ Available Tools
502
177
 
503
- Based on real-world experience building 30+ production apps with AI, Kratos implements the Four Pillars of effective AI development:
178
+ Kratos provides **12 ultra-lean tools** optimized for minimal context consumption:
504
179
 
505
- ### ๐Ÿ“‹ **Pillar 1: PRD (Product Requirements)**
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>Retrieve relevant memories</td>
568
- <td>
569
-
570
- ```javascript
571
- // Get auth-related memories
572
- memory_search({
573
- query: "authentication",
574
- k: 5
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
- </td>
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>prd_update</code></td>
582
- <td>Define project requirements</td>
583
- <td>
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
- </td>
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>prompt_build</code></td>
597
- <td>Create reusable prompts</td>
598
- <td>
599
-
600
- ```javascript
601
- // Build structured prompt
602
- prompt_build({
603
- goal: "Create React component",
604
- role: "Senior React Developer"
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
- </td>
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[Project Database]
270
+ C --> D[SQLite Database]
619
271
  D --> E[Memory Storage]
620
- D --> F[Context Broker]
621
- F --> G[AI Tool]
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 Accuracy</td>
641
- <td>95.8%</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
- .kratos/
312
+ ~/.kratos/ # Default storage location
661
313
  โ”œโ”€โ”€ projects/
662
314
  โ”‚ โ”œโ”€โ”€ project-id-1/
663
- โ”‚ โ”‚ โ”œโ”€โ”€ memories.db # SQLite database
664
- โ”‚ โ”‚ โ”œโ”€โ”€ prd.yml # Product requirements
665
- โ”‚ โ”‚ โ””โ”€โ”€ prompts/ # Reusable templates
315
+ โ”‚ โ”‚ โ””โ”€โ”€ memories.db # SQLite database with FTS5
666
316
  โ”‚ โ””โ”€โ”€ project-id-2/
667
- โ”‚ โ””โ”€โ”€ ...
668
- โ””โ”€โ”€ config.yml # Global configuration
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 the Four Pillars Framework and real-world experience building production apps with AI.
398
+ Inspired by real-world experience building production apps with AI.
711
399
 
712
400
  ---
713
401