@danielsimonjr/memory-mcp 11.1.1 → 12.2.3
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 +220 -11
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/server/toolDefinitions.d.ts +1 -1
- package/dist/server/toolDefinitions.d.ts.map +1 -1
- package/dist/server/toolDefinitions.js +1581 -6
- package/dist/server/toolHandlers.d.ts +1 -1
- package/dist/server/toolHandlers.d.ts.map +1 -1
- package/dist/server/toolHandlers.js +1244 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Memory MCP Server
|
|
2
2
|
|
|
3
|
-
[](https://github.com/danielsimonjr/memory-mcp)
|
|
4
4
|
[](https://www.npmjs.com/package/@danielsimonjr/memory-mcp)
|
|
5
5
|
[](LICENSE)
|
|
6
6
|
[](https://modelcontextprotocol.io)
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
An **enhanced fork** of the official [Model Context Protocol](https://modelcontextprotocol.io) memory server with advanced features for **hierarchical nesting**, **intelligent compression**, **semantic search**, **graph algorithms**, **archiving**, **advanced search**, and **multi-format import/export**.
|
|
11
11
|
|
|
12
|
-
> **Enterprise-grade knowledge graph** with
|
|
12
|
+
> **Enterprise-grade knowledge graph** with **160 tools** including hierarchical organization, semantic search with embeddings, graph traversal algorithms, duplicate detection, smart archiving, project scoping, temporal knowledge graph, semantic forget, agent diary, **entity bitemporal validity (η.4.4)**, **optimistic concurrency control (η.5.5.c)**, **role-based access control (η.6.1)**, **W3C Linked Data exports** (Turtle / JSON-LD / RDF/XML — η.5.4), **PII redaction on export** (η.6.3), **procedural memory (3B.4)**, **active retrieval (3B.5)**, **causal reasoning (3B.6)**, and **world model (3B.7)** for long-term memory management.
|
|
13
13
|
|
|
14
14
|
## Table of Contents
|
|
15
15
|
|
|
@@ -50,6 +50,27 @@ An **enhanced fork** of the official [Model Context Protocol](https://modelconte
|
|
|
50
50
|
| **Saved Searches** | 5 | Store and execute frequent queries |
|
|
51
51
|
| **Import/Export** | 2 | 7 export formats with brotli compression, 3 import formats |
|
|
52
52
|
| **Graph Analytics** | 2 | Statistics, validation, integrity checks |
|
|
53
|
+
| **Ref Index** | 4 | Cross-session symbolic reference registration and resolution |
|
|
54
|
+
| **Artifacts** | 3 | Named versioned content blobs attached to entities |
|
|
55
|
+
| **Temporal Search** | 1 | Time-window filtered search across the knowledge graph |
|
|
56
|
+
| **Distillation** | 1 | Configure automated observation distillation pipelines |
|
|
57
|
+
| **Freshness** | 5 | Staleness tracking, expiry detection, and freshness reporting |
|
|
58
|
+
| **LLM Query** | 1 | Natural-language question answering over the graph |
|
|
59
|
+
| **Governance** | 4 | Transactional audit trail, history, and rollback |
|
|
60
|
+
| **Role Profiles** | 2 | Per-agent role assignment and profile listing |
|
|
61
|
+
| **Entropy** | 2 | Entropy-based noise filtering and information density scoring |
|
|
62
|
+
| **Consolidation** | 3 | Background memory consolidation scheduling and control |
|
|
63
|
+
| **Formatter** | 1 | Salience-budget-aware context formatting |
|
|
64
|
+
| **Collaborative** | 1 | Multi-agent context synthesis |
|
|
65
|
+
| **Failure Handling** | 2 | Session failure distillation and graceful session end |
|
|
66
|
+
| **Cognitive Load** | 2 | Working-memory load analysis and adaptive reduction |
|
|
67
|
+
| **Project Scoping** | 1 | List and filter entities by project |
|
|
68
|
+
| **Memory Versioning** | 2 | Entity version chains and per-entity version history |
|
|
69
|
+
| **Semantic Forget** | 1 | Two-tier deletion: exact match → semantic similarity fallback |
|
|
70
|
+
| **Profiles** | 2 | User/agent profile get and update |
|
|
71
|
+
| **Temporal KG** | 3 | Temporal relation invalidation, time-travel queries, relation timeline |
|
|
72
|
+
| **Ingestion** | 1 | Format-agnostic conversation/document ingestion pipeline |
|
|
73
|
+
| **Agent Diary** | 2 | Per-agent persistent journal write and read |
|
|
53
74
|
|
|
54
75
|
### Comparison with Official Memory Server
|
|
55
76
|
|
|
@@ -72,7 +93,7 @@ An **enhanced fork** of the official [Model Context Protocol](https://modelconte
|
|
|
72
93
|
| **Backup & Restore** | ❌ | ✅ Compressed snapshots |
|
|
73
94
|
| **Intelligent Search** | ❌ | ✅ Hybrid + Query Analysis + Reflection |
|
|
74
95
|
| **Observation Normalization** | ❌ | ✅ Coreference resolution + temporal anchoring |
|
|
75
|
-
| **Total Tools** | 11 | **
|
|
96
|
+
| **Total Tools** | 11 | **106** |
|
|
76
97
|
| **Code Structure** | Monolithic | **Modular** (77 files) |
|
|
77
98
|
|
|
78
99
|
## Quick Start
|
|
@@ -221,7 +242,9 @@ Discrete facts about entities. Each observation should be atomic and independent
|
|
|
221
242
|
|
|
222
243
|
## API Reference
|
|
223
244
|
|
|
224
|
-
### Complete Tool List (
|
|
245
|
+
### Complete Tool List (160 Tools)
|
|
246
|
+
|
|
247
|
+
> Tool count: 160 tools across 51 categories. The 23 newest tools (Phase 15 / memoryjs v1.14+) are documented at the end under **Phase 15** sections. For full per-tool schemas see [docs/architecture/API.md](docs/architecture/API.md).
|
|
225
248
|
|
|
226
249
|
#### Entity Operations (4 tools)
|
|
227
250
|
| Tool | Description |
|
|
@@ -338,6 +361,190 @@ Discrete facts about entities. Each observation should be atomic and independent
|
|
|
338
361
|
| `export_graph` | Export in 7 formats (JSON, CSV, GraphML, GEXF, DOT, Markdown, Mermaid) with compression |
|
|
339
362
|
| `import_graph` | Import from JSON/CSV/GraphML with merge strategies |
|
|
340
363
|
|
|
364
|
+
#### Ref Index (4 tools)
|
|
365
|
+
| Tool | Description |
|
|
366
|
+
|------|-------------|
|
|
367
|
+
| `register_ref` | Register a symbolic reference pointing to an entity |
|
|
368
|
+
| `resolve_ref` | Resolve a symbolic reference to its target entity |
|
|
369
|
+
| `deregister_ref` | Remove a registered symbolic reference |
|
|
370
|
+
| `list_refs` | List all registered symbolic references |
|
|
371
|
+
|
|
372
|
+
#### Artifacts (3 tools)
|
|
373
|
+
| Tool | Description |
|
|
374
|
+
|------|-------------|
|
|
375
|
+
| `create_artifact` | Create a named versioned content blob attached to an entity |
|
|
376
|
+
| `get_artifact` | Retrieve an artifact by name and optional version |
|
|
377
|
+
| `list_artifacts` | List all artifacts, optionally filtered by entity |
|
|
378
|
+
|
|
379
|
+
#### Temporal Search (1 tool)
|
|
380
|
+
| Tool | Description |
|
|
381
|
+
|------|-------------|
|
|
382
|
+
| `search_by_time` | Search entities and observations within a time window |
|
|
383
|
+
|
|
384
|
+
#### Distillation (1 tool)
|
|
385
|
+
| Tool | Description |
|
|
386
|
+
|------|-------------|
|
|
387
|
+
| `configure_distillation` | Configure automated observation distillation pipelines |
|
|
388
|
+
|
|
389
|
+
#### Freshness (5 tools)
|
|
390
|
+
| Tool | Description |
|
|
391
|
+
|------|-------------|
|
|
392
|
+
| `check_freshness` | Check freshness status of a specific entity |
|
|
393
|
+
| `get_stale_entities` | List entities that have exceeded their staleness threshold |
|
|
394
|
+
| `get_expired_entities` | List entities past their explicit expiry date |
|
|
395
|
+
| `refresh_entity` | Reset the freshness timestamp on an entity |
|
|
396
|
+
| `freshness_report` | Generate a full freshness report across the graph |
|
|
397
|
+
|
|
398
|
+
#### LLM Query (1 tool)
|
|
399
|
+
| Tool | Description |
|
|
400
|
+
|------|-------------|
|
|
401
|
+
| `query_natural_language` | Answer natural-language questions over the knowledge graph |
|
|
402
|
+
|
|
403
|
+
#### Governance (4 tools)
|
|
404
|
+
| Tool | Description |
|
|
405
|
+
|------|-------------|
|
|
406
|
+
| `governance_transaction` | Execute a governed, audited graph transaction |
|
|
407
|
+
| `audit_query` | Query the audit log with filters |
|
|
408
|
+
| `audit_history` | Retrieve full audit history for an entity |
|
|
409
|
+
| `rollback_operation` | Roll back a previously recorded operation |
|
|
410
|
+
|
|
411
|
+
#### Role Profiles (2 tools)
|
|
412
|
+
| Tool | Description |
|
|
413
|
+
|------|-------------|
|
|
414
|
+
| `set_agent_role` | Assign a role profile to the current agent context |
|
|
415
|
+
| `list_role_profiles` | List all available agent role profiles |
|
|
416
|
+
|
|
417
|
+
#### Entropy (2 tools)
|
|
418
|
+
| Tool | Description |
|
|
419
|
+
|------|-------------|
|
|
420
|
+
| `enable_entropy_filter` | Enable entropy-based noise filtering for search results |
|
|
421
|
+
| `compute_entropy` | Compute information-density entropy score for an entity |
|
|
422
|
+
|
|
423
|
+
#### Consolidation (3 tools)
|
|
424
|
+
| Tool | Description |
|
|
425
|
+
|------|-------------|
|
|
426
|
+
| `start_consolidation` | Start the background memory consolidation service |
|
|
427
|
+
| `stop_consolidation` | Stop the background memory consolidation service |
|
|
428
|
+
| `run_consolidation_now` | Trigger an immediate consolidation pass |
|
|
429
|
+
|
|
430
|
+
#### Formatter (1 tool)
|
|
431
|
+
| Tool | Description |
|
|
432
|
+
|------|-------------|
|
|
433
|
+
| `format_with_salience_budget` | Format context output respecting a token salience budget |
|
|
434
|
+
|
|
435
|
+
#### Collaborative (1 tool)
|
|
436
|
+
| Tool | Description |
|
|
437
|
+
|------|-------------|
|
|
438
|
+
| `synthesize_collaborative_context` | Synthesize a unified context view from multiple agent memory spaces |
|
|
439
|
+
|
|
440
|
+
#### Failure Handling (2 tools)
|
|
441
|
+
| Tool | Description |
|
|
442
|
+
|------|-------------|
|
|
443
|
+
| `distill_failure` | Distill and store key observations from a failed session |
|
|
444
|
+
| `end_session` | Gracefully end a session and persist in-flight state |
|
|
445
|
+
|
|
446
|
+
#### Cognitive Load (2 tools)
|
|
447
|
+
| Tool | Description |
|
|
448
|
+
|------|-------------|
|
|
449
|
+
| `analyze_cognitive_load` | Analyze working-memory load in the current context |
|
|
450
|
+
| `adaptive_reduce_memories` | Adaptively reduce memory set to fit cognitive load target |
|
|
451
|
+
|
|
452
|
+
#### Project Scoping (1 tool)
|
|
453
|
+
| Tool | Description |
|
|
454
|
+
|------|-------------|
|
|
455
|
+
| `list_projects` | List all project IDs present in the graph and filter entities by project |
|
|
456
|
+
|
|
457
|
+
#### Memory Versioning (2 tools)
|
|
458
|
+
| Tool | Description |
|
|
459
|
+
|------|-------------|
|
|
460
|
+
| `get_entity_versions` | Retrieve all versions of a versioned entity by name |
|
|
461
|
+
| `get_version_chain` | Get the full version chain from root to latest for an entity |
|
|
462
|
+
|
|
463
|
+
#### Semantic Forget (1 tool)
|
|
464
|
+
| Tool | Description |
|
|
465
|
+
|------|-------------|
|
|
466
|
+
| `forget_memory` | Delete an entity by exact name, falling back to semantic similarity if no exact match found |
|
|
467
|
+
|
|
468
|
+
#### Profiles (2 tools)
|
|
469
|
+
| Tool | Description |
|
|
470
|
+
|------|-------------|
|
|
471
|
+
| `get_profile` | Retrieve a user or agent profile entity |
|
|
472
|
+
| `update_profile` | Update observations and metadata on a profile entity |
|
|
473
|
+
|
|
474
|
+
#### Temporal KG (3 tools)
|
|
475
|
+
| Tool | Description |
|
|
476
|
+
|------|-------------|
|
|
477
|
+
| `invalidate_relation` | Mark a relation as ended by setting its temporal validity end date |
|
|
478
|
+
| `query_as_of` | Retrieve all relations for an entity that were valid at a given point in time |
|
|
479
|
+
| `timeline` | Return a chronological list of relation events for an entity |
|
|
480
|
+
|
|
481
|
+
#### Ingestion (1 tool)
|
|
482
|
+
| Tool | Description |
|
|
483
|
+
|------|-------------|
|
|
484
|
+
| `ingest` | Ingest a conversation, document, or free-form text into the knowledge graph |
|
|
485
|
+
|
|
486
|
+
#### Agent Diary (2 tools)
|
|
487
|
+
| Tool | Description |
|
|
488
|
+
|------|-------------|
|
|
489
|
+
| `diary_write` | Append an entry to the agent's persistent diary |
|
|
490
|
+
| `diary_read` | Read diary entries for an agent, optionally filtered by date range |
|
|
491
|
+
|
|
492
|
+
#### Entity Bitemporal Validity (5 tools) — Phase 15 / memoryjs η.4.4
|
|
493
|
+
| Tool | Description |
|
|
494
|
+
|------|-------------|
|
|
495
|
+
| `invalidate_entity` | Stamp `validUntil` on an entity (idempotent; entity remains queryable for past timestamps via `entity_as_of`) |
|
|
496
|
+
| `entity_as_of` | Time-travel query: returns entity state at a given ISO 8601 timestamp, or `null` if invalidated then |
|
|
497
|
+
| `entity_timeline` | All temporal versions of an entity in chronological order; integrates the v1.8 supersession chain |
|
|
498
|
+
| `invalidate_observation` | Per-observation invalidation via parallel `observationMeta[]` entry on the entity |
|
|
499
|
+
| `observations_as_of` | Filter observations valid at a given timestamp; observations without meta are treated as unbounded |
|
|
500
|
+
|
|
501
|
+
#### Optimistic Concurrency Control (1 tool) — Phase 15 / memoryjs η.5.5.c
|
|
502
|
+
| Tool | Description |
|
|
503
|
+
|------|-------------|
|
|
504
|
+
| `update_entity` | Update an entity with optional `expectedVersion`; throws `VersionConflictError` on stale version. OCC-guarded writes auto-increment `version`. Omit `expectedVersion` for legacy last-write-wins. |
|
|
505
|
+
|
|
506
|
+
#### RBAC (4 tools) — Phase 15 / memoryjs η.6.1
|
|
507
|
+
| Tool | Description |
|
|
508
|
+
|------|-------------|
|
|
509
|
+
| `rbac_assign_role` | Grant `reader` / `writer` / `admin` / `owner` (or custom) role to an agent; optional `resourceType`, `scope` prefix, `validFrom` / `validUntil` window |
|
|
510
|
+
| `rbac_revoke_role` | Remove a specific role assignment matched by `agentId + role + resourceType` |
|
|
511
|
+
| `rbac_check_permission` | Check whether an agent can perform `read` / `write` / `delete` / `manage` on a resource type; falls back to `defaultRole=reader` for unassigned agents |
|
|
512
|
+
| `rbac_list_assignments` | List all role assignments for an agent; optional `activeOnly` filter |
|
|
513
|
+
|
|
514
|
+
#### Procedural Memory (5 tools) — Phase 15 / memoryjs 3B.4
|
|
515
|
+
| Tool | Description |
|
|
516
|
+
|------|-------------|
|
|
517
|
+
| `add_procedure` | Persist an executable how-to sequence: 1-indexed steps with optional fallback chains and free-form trigger phrases |
|
|
518
|
+
| `get_procedure` | Load a procedure by id |
|
|
519
|
+
| `match_procedure` | Token-overlap match a context description against stored procedures; returns ranked Jaccard-like scores |
|
|
520
|
+
| `refine_procedure` | Apply caller feedback after execution; updates `successRate` via EWMA (α=0.2) |
|
|
521
|
+
| `get_procedure_step` | Load step by 1-indexed `order`, or get the next step relative to `currentOrder` |
|
|
522
|
+
|
|
523
|
+
#### Active Retrieval (1 tool) — Phase 15 / memoryjs 3B.5
|
|
524
|
+
| Tool | Description |
|
|
525
|
+
|------|-------------|
|
|
526
|
+
| `adaptive_retrieve` | Iterative query-rewriting retrieval (search → score coverage → rewrite); stops early when `coverage ≥ minCoverage`. Pure symbolic — no LLM provider required. |
|
|
527
|
+
|
|
528
|
+
#### Causal Reasoning (4 tools) — Phase 15 / memoryjs 3B.6
|
|
529
|
+
| Tool | Description |
|
|
530
|
+
|------|-------------|
|
|
531
|
+
| `find_causes` | Causal chains ending at the named effect; sorted by product-of-edge causalStrength |
|
|
532
|
+
| `find_effects` | Symmetric counterpart starting at the named cause |
|
|
533
|
+
| `counterfactual_query` | "If we remove edge (removeFrom → removeTo), is `predict` still reachable from `seed`?" Returns surviving chains. Pure: does not mutate the graph. |
|
|
534
|
+
| `detect_causal_cycles` | Detect cycles in the causal subgraph rooted at `seed` |
|
|
535
|
+
|
|
536
|
+
#### World Model (3 tools) — Phase 15 / memoryjs 3B.7
|
|
537
|
+
| Tool | Description |
|
|
538
|
+
|------|-------------|
|
|
539
|
+
| `get_world_state` | Capture a fresh snapshot of the live graph (capped at 1000 entities; over-cap prefers high-importance) |
|
|
540
|
+
| `validate_fact_against_world` | Validate a candidate observation against a target entity via `MemoryValidator.validateConsistency`. Returns `{result: null, reason: 'embedding_provider_unavailable'}` when the local embedding provider is selected without `@xenova/transformers` installed. |
|
|
541
|
+
| `predict_outcome` | Predict downstream effects of an action by walking the causal subgraph (delegates to `find_effects`) |
|
|
542
|
+
|
|
543
|
+
#### Phase 15 enhancements to existing tools
|
|
544
|
+
- **`export_graph`** — Now accepts `format: 'turtle' | 'rdf-xml' | 'json-ld'` for W3C Linked Data exports (memoryjs η.5.4) and `redactPii: true` to scrub PII (email / SSN / credit-card / phone / IPv4) from observations using the η.6.3 `PiiRedactor`.
|
|
545
|
+
- **`create_entities`** — Now accepts v1.6 freshness fields (`ttl`, `confidence`), v1.8 project scope (`projectId`), and η.4.4 bitemporal fields (`validFrom`, `validUntil`, `observationMeta`) per entity.
|
|
546
|
+
- **`set_memory_visibility`** — Auto-promotes plain entities to `AgentEntity` (stamps `agentId` / `memoryType` / `confidence`) instead of silently returning `null`. Supports η.5.5.b extensions (`allowedRoles`, `visibleFrom`, `visibleUntil`).
|
|
547
|
+
|
|
341
548
|
## Configuration
|
|
342
549
|
|
|
343
550
|
### Environment Variables
|
|
@@ -433,7 +640,7 @@ npm run docs:deps # Generate dependency graph
|
|
|
433
640
|
```
|
|
434
641
|
┌─────────────────────────────────────────────────────┐
|
|
435
642
|
│ Layer 1: MCP Protocol Layer │
|
|
436
|
-
│ server/MCPServer.ts + toolDefinitions (
|
|
643
|
+
│ server/MCPServer.ts + toolDefinitions (160 tools) │
|
|
437
644
|
│ + toolHandlers + responseCompressor │
|
|
438
645
|
└──────────────────────┬──────────────────────────────┘
|
|
439
646
|
│
|
|
@@ -478,7 +685,7 @@ memory-mcp/
|
|
|
478
685
|
│ │ └── index.ts
|
|
479
686
|
│ ├── server/ # MCP protocol (4 files)
|
|
480
687
|
│ │ ├── MCPServer.ts # Server setup
|
|
481
|
-
│ │ ├── toolDefinitions.ts #
|
|
688
|
+
│ │ ├── toolDefinitions.ts # 160 tool schemas
|
|
482
689
|
│ │ ├── toolHandlers.ts # Handler registry
|
|
483
690
|
│ │ └── responseCompressor.ts # Brotli compression
|
|
484
691
|
│ ├── search/ # Search implementations (29 files)
|
|
@@ -543,7 +750,7 @@ memory-mcp/
|
|
|
543
750
|
Comprehensive documentation in `docs/`:
|
|
544
751
|
|
|
545
752
|
**Architecture**
|
|
546
|
-
- [API.md](docs/architecture/API.md) - Complete API documentation for all
|
|
753
|
+
- [API.md](docs/architecture/API.md) - Complete API documentation for all 160 tools
|
|
547
754
|
- [ARCHITECTURE.md](docs/architecture/ARCHITECTURE.md) - Technical architecture and system design
|
|
548
755
|
- [COMPONENTS.md](docs/architecture/COMPONENTS.md) - Component breakdown and responsibilities
|
|
549
756
|
- [OVERVIEW.md](docs/architecture/OVERVIEW.md) - High-level project overview
|
|
@@ -578,12 +785,14 @@ We welcome contributions!
|
|
|
578
785
|
|
|
579
786
|
All notable changes are documented in **[CHANGELOG.md](CHANGELOG.md)**.
|
|
580
787
|
|
|
581
|
-
**Current version**:
|
|
788
|
+
**Current version**: v12.2.0 - [View full changelog](CHANGELOG.md)
|
|
582
789
|
|
|
583
790
|
Recent highlights:
|
|
584
|
-
- **
|
|
585
|
-
- **
|
|
586
|
-
- **
|
|
791
|
+
- **v12.2.0** (160 tools): 23 new tools — entity bitemporal validity (η.4.4), OCC update (η.5.5.c), RBAC (η.6.1), procedural memory (3B.4), active retrieval (3B.5), causal reasoning (3B.6), world model (3B.7), plus W3C Linked Data exports (η.5.4) and PII redaction (η.6.3) wired into existing `export_graph`. Plus four pre-publish fixes from end-to-end MCP smoke testing (memoryjs v1.14+).
|
|
792
|
+
- **v12.1.0** (106 tools): 12 new tools — Project Scoping, Memory Versioning, Semantic Forget, Profiles, Temporal KG, Ingestion, Agent Diary (memoryjs v1.8.0/v1.9.0)
|
|
793
|
+
- **v12.0.0** (94 tools): 32 new tools — Ref Index, Artifacts, Temporal Search, Distillation, Freshness, LLM Query, Governance, Role Profiles, Entropy, Consolidation, Formatter, Collaborative, Failure Handling, Cognitive Load
|
|
794
|
+
- **v11.1.1**: npm tarball cleanup, excluded data files from published package
|
|
795
|
+
- **v11.1.0**: MCP error framing, dynamic server version, handler smoke tests, response compressor tests
|
|
587
796
|
|
|
588
797
|
## License
|
|
589
798
|
|
package/dist/index.d.ts
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @module index
|
|
9
9
|
*/
|
|
10
|
-
import { defaultMemoryPath, ensureMemoryFilePath, ManagerContext, type Entity, type Relation, type KnowledgeGraph, type GraphStats, type ValidationReport, type ValidationIssue, type ValidationWarning, type SavedSearch, type TagAlias, type SearchResult, type BooleanQueryNode, type ImportResult, type CompressionResult } from '@danielsimonjr/memoryjs';
|
|
10
|
+
import { defaultMemoryPath, ensureMemoryFilePath, ManagerContext, type Entity, type Relation, type KnowledgeGraph, type GraphStats, type ValidationReport, type ValidationIssue, type ValidationWarning, type SavedSearch, type TagAlias, type SearchResult, type BooleanQueryNode, type ImportResult, type CompressionResult, type ArtifactEntity, type ArtifactType, type ArtifactFilter, type FreshnessReport, type AuditEntry, type AuditOperation, type RefEntry, type RefIndexStats, type AgentRole, type RoleProfile, type CognitiveLoadMetrics, type AdaptiveReductionResult, type SynthesisResult, type FailureDistillationResult, type DistilledLesson } from '@danielsimonjr/memoryjs';
|
|
11
11
|
export { defaultMemoryPath, ensureMemoryFilePath };
|
|
12
|
-
export type { Entity, Relation, KnowledgeGraph, GraphStats, ValidationReport, ValidationIssue, ValidationWarning, SavedSearch, TagAlias, SearchResult, BooleanQueryNode, ImportResult, CompressionResult, };
|
|
12
|
+
export type { Entity, Relation, KnowledgeGraph, GraphStats, ValidationReport, ValidationIssue, ValidationWarning, SavedSearch, TagAlias, SearchResult, BooleanQueryNode, ImportResult, CompressionResult, ArtifactEntity, ArtifactType, ArtifactFilter, FreshnessReport, AuditEntry, AuditOperation, RefEntry, RefIndexStats, AgentRole, RoleProfile, CognitiveLoadMetrics, AdaptiveReductionResult, SynthesisResult, FailureDistillationResult, DistilledLesson, };
|
|
13
13
|
export { ManagerContext };
|
|
14
14
|
export { ManagerContext as KnowledgeGraphManager };
|
|
15
15
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;;;;;GAOG;AAEH,OAAO,EAEL,iBAAiB,EACjB,oBAAoB,EACpB,cAAc,EAEd,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;;;;;GAOG;AAEH,OAAO,EAEL,iBAAiB,EACjB,oBAAoB,EACpB,cAAc,EAEd,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EAEtB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,yBAAyB,EAC9B,KAAK,eAAe,EACrB,MAAM,yBAAyB,CAAC;AAIjC,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,CAAC;AAGnD,YAAY,EACV,MAAM,EACN,QAAQ,EACR,cAAc,EACd,UAAU,EACV,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,iBAAiB,EAEjB,cAAc,EACd,YAAY,EACZ,cAAc,EACd,eAAe,EACf,UAAU,EACV,cAAc,EACd,QAAQ,EACR,aAAa,EACb,SAAS,EACT,WAAW,EACX,oBAAoB,EACpB,uBAAuB,EACvB,eAAe,EACf,yBAAyB,EACzB,eAAe,GAChB,CAAC;AAGF,OAAO,EAAE,cAAc,EAAE,CAAC;AAG1B,OAAO,EAAE,cAAc,IAAI,qBAAqB,EAAE,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* MCP Tool Definitions
|
|
3
3
|
*
|
|
4
4
|
* Extracted from MCPServer.ts to reduce file size and improve maintainability.
|
|
5
|
-
* Contains all
|
|
5
|
+
* Contains all 106 tool schemas for the Knowledge Graph MCP Server.
|
|
6
6
|
*
|
|
7
7
|
* @module server/toolDefinitions
|
|
8
8
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolDefinitions.d.ts","sourceRoot":"","sources":["../../src/server/toolDefinitions.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ,CAAC;QACf,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACpC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;QACpB,oBAAoB,CAAC,EAAE,OAAO,CAAC;KAChC,CAAC;CACH;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"toolDefinitions.d.ts","sourceRoot":"","sources":["../../src/server/toolDefinitions.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ,CAAC;QACf,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACpC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;QACpB,oBAAoB,CAAC,EAAE,OAAO,CAAC;KAChC,CAAC;CACH;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,cAAc,EAqlF3C,CAAC"}
|