This document describes the integration between Artemis City core and the Artemis Agentic Memory Layer (MCP Server), enabling agents to interact with Obsidian vault as a persistent knowledge base. This document describes the integration between Artemis City core and the Artemis Agentic Memory Layer (MCP Server), enabling agents to interact with Obsidian vault as a persistent knowledge base.Documentation Index
Fetch the complete documentation index at: https://artemiscity.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The memory integration bridge connects the Python-based Artemis City agent system with the Node.js MCP server, allowing:- Persistent Context Storage: Agents can store and retrieve context across sessions
- Trust-Based Access Control: Memory operations filtered by agent trust scores
- Structured Knowledge Base: Obsidian vault acts as versioned source of truth
- Agent-Vault Interaction: Search, tag, and organize knowledge programmatically
Components
1. Memory Client (memory/integration/memory_client.py)
Python REST client for the MCP server with full coverage of 8 MCP operations.
Features:
- Bearer token authentication
- Standardized response format (MCPResponse)
- Automatic error handling
- Built-in HTTP client (no external dependencies)
get_context(path)- Read note contentappend_context(path, content)- Append to noteupdate_note(path, content)- Replace note contentsearch_notes(query)- Search vaultlist_notes(folder)- List notes in folderdelete_note(path)- Delete notemanage_frontmatter(path, action, key, value)- YAML frontmatter opsmanage_tags(path, action, tags)- Tag managementsearch_replace(path, search, replace)- Find and replace
2. Trust Interface (memory/integration/trust_interface.py)
Trust-based access control for memory operations with decay model.
Features:
- Trust scores for agents (0.0-1.0)
- Trust levels (FULL, HIGH, MEDIUM, LOW, UNTRUSTED)
- Operation permission matrix
- Natural trust decay over time
- Reinforcement/penalty system
| Level | Score Range | Allowed Operations |
|---|---|---|
| FULL | 0.9-1.0 | read, write, delete, search, tag, update |
| HIGH | 0.7-0.89 | read, write, search, tag, update |
| MEDIUM | 0.5-0.69 | read, write, search, tag |
| LOW | 0.3-0.49 | read, search |
| UNTRUSTED | 0.0-0.29 | none |
3. Context Loader (memory/integration/context_loader.py)
High-level interface for loading and organizing context from vault.
Features:
- Load notes as ContextEntry objects
- Search vault with relevance scoring
- Load by tags or folders
- Agent history tracking
- Related content discovery
- Date range filtering
With Artemis Persona
Artemis can store and load context for continuity:With Instruction Hierarchy
Memory can provide agent-specific instructions:- Enhanced CLI Integration
- Automatic context loading on startup
- Persistent conversation history
- Cross-session memory
- MCP Configuration Helper
- Auto-discovery of MCP server
- Configuration validation
- Health monitoring
- Agent Communication
- Message protocol with context hashing
- Shared workspace in vault
- Cross-agent knowledge graphs
- Advanced Search
- Semantic search with embeddings
- Relevance ranking algorithms
- Context-aware suggestions
