Skip to main content
Glama

DollhouseMCP

by DollhouseMCP
MEMORY_ELEMENT_COMPLETE_JULY_21.md1.18 kB
# Memory Element Implementation Complete - July 21, 2025 ## PR #334 Created Successfully - Branch: `feature/memory-element-implementation` - Status: All 62 tests passing - Issue: #299 ## Key Implementation Details - Used DOMPurify for content sanitization (not aggressive sanitizeInput) - FAILSAFE_SCHEMA for YAML import (not SecureYamlParser which expects frontmatter) - Privacy levels work with <= logic (public < private < sensitive) - Retention policy removes oldest when at capacity ## Critical Fixes Made 1. BaseElement.validate() returns `valid` not `isValid` 2. Memory content needs DOMPurify, not sanitizeInput (too aggressive) 3. MemoryManager import uses yaml.load with FAILSAFE_SCHEMA 4. Tag frequency Map converted to array for YAML serialization ## Security Event Types Added - MEMORY_CREATED, MEMORY_ADDED, MEMORY_SEARCHED - SENSITIVE_MEMORY_DELETED, RETENTION_POLICY_ENFORCED - MEMORY_CLEARED, MEMORY_LOADED, MEMORY_SAVED - MEMORY_DELETED, MEMORY_LOAD_FAILED, etc. ## Next: Agents Element Most complex with goal management, Eisenhower matrix, state persistence ## Commands ```bash git checkout main gh pr view 334 ``` All session docs in docs/development/

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DollhouseMCP/DollhouseMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server