
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
memory-engineering-mcp
Advanced tools
🧠 AI Memory System powered by MongoDB Atlas & Voyage AI - Autonomous memory management with zero manual work
Persistent memory and semantic code understanding for AI assistants. Built on MongoDB Atlas Vector Search and Voyage AI embeddings.
This is what makes Memory Engineering different from everything else:
// Traditional chunking BREAKS this function in half:
function processPayment(order) { // <- Chunk 1 ends here
validateOrder(order); // <- Chunk 2 starts here, loses context!
// ... 50 more lines
}
// Our chunking keeps it COMPLETE:
function processPayment(order) { // <- Full function preserved
validateOrder(order);
// ... entire function included
} // <- Chunk ends at semantic boundary
# Find similar implementations
search --query "JWT refresh" --codeSearch "similar"
# Find who implements an interface
search --query "AuthProvider" --codeSearch "implements"
# Find usage patterns
search --query "error handling" --codeSearch "pattern"
# Natural language → Code
search --query "how do we validate users"
# Automatically searches: authenticate, verify, check, validate patterns
Inspired by Cline, but enhanced with MongoDB persistence:
// What gets captured in each chunk:
interface CodeChunk {
chunk: {
type: 'function' | 'class' | 'method' | 'module';
signature: string; // Full signature with params
content: string; // Complete code
context: string; // Imports and dependencies
startLine: number;
endLine: number;
};
contentVector: number[]; // 1024-dim embedding
metadata: {
patterns: string[]; // Detected patterns
dependencies: string[]; // What it imports
exports: string[]; // What it exports
};
}
npm install -g memory-engineering-mcp
{
"mcpServers": {
"memory-engineering-mcp": {
"command": "npx",
"args": ["memory-engineering-mcp"],
"env": {
"MONGODB_URI": "your-mongodb-atlas-uri",
"VOYAGE_API_KEY": "your-voyage-api-key"
}
}
}
}
# Initialize (scans entire codebase, generates embeddings)
memory_engineering_init
# Now search your code semantically!
memory_engineering_search --query "authentication flow" --codeSearch "pattern"
# Update memories as you work
memory_engineering_memory --name activeContext --content "Fixed JWT expiry..."
search --query "payment processing"
# Finds: processPayment(), handleStripeWebhook(), validateCard()
# Even if you never used the word "payment" in those functions!
search --query "error" --codeSearch "pattern"
# Returns ALL error handling patterns:
# - try/catch blocks
# - .catch() handlers
# - error middleware
# - validation errors
search --query "why Redis"
# Finds the exact activeContext entry where you decided to use Redis
# "Chose Redis for session storage because: 1) Fast lookups 2) TTL support..."
The system understands natural language variations:
Only changed files are re-embedded:
// Detects changes via:
- File modification time
- Content hash comparison
- Git diff integration
- Automatic after 24h gap
Every code chunk maintains context:
// Original file:
import { User } from './models';
import bcrypt from 'bcrypt';
class AuthService {
async validateUser(email: string, password: string) {
// ... implementation
}
}
// Chunk includes:
- Imports (User, bcrypt)
- Class context (AuthService)
- Full method implementation
- Patterns detected: ["authentication", "async", "validation"]
Tool | Purpose | Key Features |
---|---|---|
memory_engineering_init | Initialize project | Scans code, creates memories, generates embeddings |
memory_engineering_memory | Read/Update memories | Unified interface for all 7 memories |
memory_engineering_search | Semantic search | Memory + code search with patterns |
memory_engineering_sync | Sync code embeddings | Smart chunking, incremental updates |
memory_engineering_system | Health & diagnostics | Status, environment, doctor mode |
MIT - See LICENSE file
Built with Model Context Protocol (MCP) by Anthropic
FAQs
🧠 AI Memory System powered by MongoDB Atlas & Voyage AI - Autonomous memory management with zero manual work
We found that memory-engineering-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.