
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
MCP Server for hierarchical intelligent memory system with persistent, indexed and cached context
A sophisticated MCP (Model Context Protocol) server implementation that provides advanced memory management capabilities for AI applications with parallel processing, global installation, and multi-path monitoring support.
# Install dependencies
npm install
# Build the project
npm run build
# Start with cluster mode (default)
npm start
# Install globally
npm link
# Use anywhere as global command
memcp --help
# Initialize memory system for current directory
memcp init --project-path $(pwd)
# Start with automatic heartbeat monitoring (10s interval)
memcp
# Start with custom heartbeat interval
memcp --heartbeat 5
# Monitor multiple directories
memcp --paths "/home/user/project1,/home/user/project2"
# Create a new memory
memcp memory create --context "project" --subcontext "tasks" --title "Feature Implementation" --content "Implement user authentication system"
# Search memories
memcp search --query "authentication"
# Get system statistics
memcp stats
MCP_SERVER_PORT: Server port (default: 3000)MCP_LOG_LEVEL: Logging level (debug, info, warn, error)MCP_PROJECT_PATH: Default project path for memory operationsMCP_MONITORING_PATHS: Comma-separated paths for multi-directory monitoringMCP_HEARTBEAT_INTERVAL: Heartbeat interval in seconds (default: 10)memcp [options]
Options:
--parallel Enable parallel processing (default: true)
--workers <number> Number of worker threads (default: 4)
--heartbeat <seconds> Heartbeat interval in seconds (default: 10)
--paths <paths> Comma-separated paths to monitor
--project-path <path> Project path for memory operations
--help Display help information
src/
├── index.ts # Main server implementation with heartbeat integration
├── types.ts # TypeScript type definitions
├── tools/ # MCP tool implementations
│ ├── parallel-memory.tool.ts # Parallel processing tools
│ └── ... # Other tool implementations
├── utils/ # Utility functions
│ ├── background-tasks.ts # Background task management
│ ├── heartbeat-monitor.ts # Single-path heartbeat monitoring
│ ├── multi-path-heartbeat.ts # Multi-path heartbeat monitoring
│ └── file-system.ts # File system utilities
├── workers/ # Worker thread implementations
│ └── search-worker.ts # Search worker pool
├── cluster/ # Cluster management
│ └── cluster-manager.ts # MCP cluster manager
├── validation/ # Data validation system
├── cache/ # Memory caching layer
└── indexing/ # Search indexing system
bin/
├── memory-mcp.mjs # Original MCP server launcher
├── memory-mcp-parallel.mjs # Parallel MCP server launcher
└── memcp-global.mjs # Global executable entry point
The system creates ia-memory/heartbeat.log files in monitored directories with entries like:
2025-09-01T11:17:08.486Z - STARTED - PID:151868
2025-09-01T11:17:11.491Z - RUNNING - PID:151868
2025-09-01T11:17:14.494Z - RUNNING - PID:151868
2025-09-01T11:17:16.328Z - STOPPED - PID:151868
# Monitor single path heartbeat
tail -f ia-memory/heartbeat.log
# Monitor multiple paths (in separate terminals)
tail -f /path/to/project1/ia-memory/heartbeat.log
tail -f /path/to/project2/ia-memory/heartbeat.log
# Check heartbeat status
memcp heartbeat_status --project-path /path/to/project
memory_create: Create a new memory entrymemory_read: Read memory by pathmemory_main_get: Get main memory or specific sectionmemory_main_update: Update main memory sectionmemory_main_add_context: Add new context to main memorysearch_memories: Full-text search across memoriesget_memory_tree: Get memory tree structureget_filesystem_tree: Get file system treelinks_create: Create new link between memorieslinks_read: Read links for context/subcontextinit: Initialize memory systemstats: Get system statisticsvalidate_system: Validate system integrityheartbeat_status: Get heartbeat monitor statusparallel_memory_tools: Access to parallelized memory operations# Start in current directory with default settings
memcp
# Custom heartbeat interval
memcp --heartbeat 3
# Monitor multiple projects
memcp --paths "/home/user/project1,/home/user/project2,/home/user/project3"
# Via environment variable
export MCP_MONITORING_PATHS="/path1,/path2"
memcp
# Initialize new project
cd /path/to/new/project
memcp init
# Start monitoring with faster heartbeat for development
memcp --heartbeat 2
# Check system health
memcp stats
memcp heartbeat_status
# Run integration tests
npm test
# Test heartbeat functionality
node test-heartbeat.mjs
# Test multi-path monitoring
MCP_MONITORING_PATHS="/path1,/path2" node test-multi-path-heartbeat.mjs
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see the LICENSE file for details.
project/
├── .memory/
│ ├── main.sjson # Configuração principal e contextos
│ ├── context1/
│ │ ├── links.csv # Links para submemórias
│ │ ├── subcontext1/
│ │ │ ├── submemory.json5 # Metadados da submemória
│ │ │ └── memories/ # Arquivos de memória
│ │ │ ├── memory1.md
│ │ │ └── memory2.md
│ │ └── subcontext2/
│ │ └── ...
│ ├── context2/
│ │ └── ...
│ ├── .index/ # Índices SQLite FTS5
│ │ ├── main.db
│ │ └── search.db
│ └── .cache/ # Cache de performance
│ ├── main.json
│ ├── links.json
│ └── memories.json
└── .memoryignore # Arquivos Git a ignorar
# Clone o projeto
git clone <repository-url>
cd memcp
# Instale dependências
pnpm install
# Compile o projeto
pnpm build
# Torne o binário executável
chmod +x bin/memcp.mjs
# Inicializar sistema de memória em um projeto
./bin/memcp.mjs init /path/to/project
// Criar um contexto principal
{
"name": "memory_main_add_context",
"arguments": {
"project_path": "/path/to/project",
"name": "desenvolvimento",
"description": "Contexto para desenvolvimento de software",
"priority": 8
}
}
// Criar uma memória
{
"name": "memory_create",
"arguments": {
"project_path": "/path/to/project",
"context": "desenvolvimento",
"subcontext": "backend",
"title": "Arquitetura API REST",
"content": "# Arquitetura API REST\n\nDescrição da arquitetura...",
"tags": ["api", "rest", "arquitetura"],
"importance": "high"
}
}
// Buscar memórias
{
"name": "search_memories",
"arguments": {
"project_path": "/path/to/project",
"query": "arquitetura api",
"options": {
"contexts": ["desenvolvimento"],
"tags": ["api"],
"limit": 10
}
}
}
init - Inicializar sistema de memóriavalidate_system - Validar integridade do sistemamemory_main_get - Obter memória principal ou seçãomemory_main_update - Atualizar seção da memória principalmemory_main_add_context - Adicionar novo contextolinks_create - Criar novo linklinks_read - Ler links para contexto/subcontextolinks_search - Buscar links com correspondência fuzzylinks_validate - Validar links em contextomemory_create - Criar nova memóriamemory_read - Ler memória por caminhomemory_update - Atualizar conteúdo e/ou frontmattermemory_delete - Deletar memóriamemory_move - Mover memória para diferente contexto/subcontextosearch_memories - Busca full-text de memóriasfind_similar - Encontrar memórias similaresreindex_all - Reindexar todas as memóriasget_memory_tree - Obter estrutura em árvore de memóriasget_related_memories - Obter memórias relacionadasget_memory_graph - Obter representação em grafo de memóriasget_recent_memories - Obter memórias recentesget_important_memories - Obter memórias importantescleanup_broken_links - Limpar links quebradosoptimize_index - Otimizar índice de buscacompact_cache - Compactar cachestats - Obter estatísticas do sistemaexport_to_json - Exportar sistema para JSONimport_from_json - Importar sistema de JSONO servidor disponibiliza recursos via MCP:
memory://main - Configuração da memória principalmemory://tree - Visão hierárquica da estrutura de memóriamemory://stats - Estatísticas do sistema e informações de saúdeMCP Client → Server → Tool Class → Cache → FileSystem
↓
SearchIndex
MEMORY_PROJECT_PATH - Caminho padrão do projeto para recursos MCPNODE_ENV - Ambiente de execução (development/production)O sistema automaticamente cria .memoryignore para excluir arquivos temporários do Git:
.memory/.cache/
.memory/.index/
# Executar testes
pnpm test
# Executar testes com coverage
pnpm test:coverage
# Executar testes em modo watch
pnpm test:watch
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)Este projeto está licenciado sob a MIT License - veja o arquivo LICENSE para detalhes.
Desenvolvido com ❤️ para sistemas de memória inteligente
FAQs
MCP Server for hierarchical intelligent memory system with persistent, indexed and cached context
We found that memcp 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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.