Persistent memory engine for AI coding assistants with vector search, knowledge graph, and consolidation capabilities
CodeMem MCP server has 14 tools with mostly complete schemas and reasonable descriptions, but several critical gaps prevent a higher score. All tools have descriptions (10-200+ chars) and input schemas with types. However, naming inconsistencies (enrich_* tools lack clarity on single responsibility), missing output schema documentation, and unclear error handling patterns significantly weaken definition quality. The tools span multiple concerns (codebase analysis, memory management, graph operations) but lack composition clarity. No output schemas are documented, making it hard for agents to plan downstream calls. Tool annotations (readOnlyHint, destructiveHint) are not visible in registration but are mentioned in the Risk metadata provided, suggesting manual classification rather than schema-based declaration.
Create or update a relationship between two memories
Get server health, statistics, and metrics
Run consolidation cycles: decay (reduce importance of old memories), creative (create new connections), forget (delete low-importance memories), or auto (run decay and creative)
Find important nodes in the code graph using PageRank
Find clustered groups of related code symbols using graph analysis
Get cross-repository code intelligence data including cross-namespace edges, unresolved references, and registered packages
Get direct dependencies and dependents of a code symbol
No output schemas documented for any tool. LLMs cannot predict response structure or plan downstream tool chains. Agents must infer fields by trial and error.
Multiple enrich_* tools (enrich_security, enrich_performance, enrich_git_history, enrich_codebase) violate single-responsibility principle. They overlap in function: all analyze graph nodes and store insights. Naming is ambiguous, LLMs cannot distinguish when to call which enrichment without deep reading.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 18 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 43 | - | v1 |
Get detailed information about a code symbol
Recall memories using vector search with optional filters
Search code symbols by text or structural patterns
Store a memory with content, type, tags, and optional namespace
Get a hierarchical summary tree of code structure starting from a node
Tool annotations (readOnlyHint, destructiveHint, idempotentHint) are provided as metadata in the Risk field but are not visible in the MCP tool registration. This prevents MCP clients from knowing which tools are safe to call repeatedly and which are destructive.
Error handling descriptions lack recovery guidance. Test code shows error detection (isError flag) but tool descriptions do not explain what went wrong or what the agent should do next. E.g., enrich_codebase_nonexistent_path_returns_result suggests the tool fails silently rather than guiding the agent.
Parameter descriptions lack constraint details. E.g., 'days' defaults to 90 but min/max bounds are not stated. 'namespace' is marked optional but empty string is rejected, this constraint is not documented. 'importance' and 'confidence' accept 0.0-1.0 but only mentioned in param description, not enforced via enum or pattern.
No pagination parameters visible for list_namespaces, codemem_status, or recall despite accepting 'k' (limit). Missing 'offset' or 'cursor' parameters and no documented result caps. If results exceed context window, agent has no way to fetch additional pages.
Tool composition chain is unclear. E.g., store_memory returns something, but what? ID? Timestamp? Full object? This forces agents to guess whether they can chain store_memory → associate_memories without an extra lookup.