Back to Home
consigcody94 icon

code-memory

by consigcody94

Overview

A persistent context vault for AI-assisted development, solving the 'missing context' problem by remembering decisions, indexing code, preserving conversations, and tracking evolution.

Installation

Run Command
npx code-memory

Environment Variables

  • CODE_MEMORY_DIR

Security Notes

The server's core functionality involves indexing and searching local file systems (`index_codebase`, `search_code`) based on user-provided paths. While `path.resolve` normalizes paths, there are no explicit sandboxing mechanisms to restrict the 'path' argument to a specific, safe directory (beyond the `.code-memory` data storage itself). This means an attacker who can manipulate the AI's prompts could potentially coerce the MCP server to read arbitrary files from the local file system (e.g., sensitive configurations, private keys, etc.) that the Node.js process has access to. This is a significant arbitrary file read vulnerability if the AI client is compromised or jailbroken. No `eval` or intentional obfuscation was found, and error handling is present, but the powerful file access is a critical risk.

Similar Servers

Stats

Interest Score0
Security Score4
Cost ClassMedium
Avg Tokens750
Stars0
Forks0
Last Update2025-11-22

Tags

mcpai-developmentcodebase-contextsemantic-searchdeveloper-tooling