Back to Home
rlaksana icon

cortex

by rlaksana

Overview

AI-optimized knowledge management system providing advanced memory storage, multi-strategy semantic search, intelligent deduplication, and comprehensive monitoring for AI agent knowledge operations, including deep Z.AI integration.

Installation

Run Command
node dist/index.js

Environment Variables

  • OPENAI_API_KEY
  • QDRANT_URL
  • QDRANT_API_KEY
  • ZAI_API_KEY
  • NODE_ENV
  • LOG_LEVEL
  • MCP_API_KEY
  • JWT_SECRET
  • ENCRYPTION_KEY
  • QDRANT_COLLECTION_NAME
  • EMBEDDING_MODEL
  • DEDUPE_SIMILARITY_THRESHOLD
  • DEDUPE_MERGE_STRATEGY
  • TTL_DEFAULT_DAYS
  • MAX_MEMORY_MB
  • HEALTH_ENDPOINT_API_KEY

Security Notes

The server implements robust security middleware including JWT authentication, API key validation, IP validation, rate limiting, CORS, Helmet for security headers, and input sanitization (SQL/XSS prevention). It leverages `process.env` for configuration and includes a `KeyVaultService` for sensitive key management. However, a critical vulnerability exists due to the explicit use of `new Function()` in `src/services/monitoring/runbook-integration-service.ts` to execute `scriptContent`. If 'runbook' definitions or `scriptContent` can be influenced by untrusted or even privileged user input without strict sandboxing, this constitutes an arbitrary code execution vulnerability. This severely undermines the claim of 'production readiness' as it provides a direct code injection vector.

Similar Servers

Stats

Interest Score25
Security Score3
Cost ClassHigh
Avg Tokens750
Stars1
Forks0
Last Update2025-11-19

Tags

Knowledge ManagementSemantic SearchAI AgentsVector DatabaseDeduplicationMonitoringMCP ProtocolTypeScriptNode.jsZ.AI