Expand description
codemem-mcp: MCP server for Codemem (JSON-RPC 2.0 over stdio).
Implements 43 tools: store_memory, recall_memory, update_memory, delete_memory, associate_memories, graph_traverse, summary_tree, codemem_stats, codemem_health, index_codebase, search_symbols, get_symbol_info, get_dependencies, get_impact, get_clusters, get_cross_repo, get_pagerank, search_code, set_scoring_weights, export_memories, import_memories, recall_with_expansion, list_namespaces, namespace_stats, delete_namespace, consolidate_decay, consolidate_creative, consolidate_cluster, consolidate_forget, consolidation_status, recall_with_impact, get_decision_chain, detect_patterns, pattern_insights, refine_memory, split_memory, merge_memories, consolidate_summarize, codemem_metrics, session_checkpoint, enrich_git_history, enrich_security, enrich_performance.
Transport: Newline-delimited JSON-RPC messages over stdio. All logging goes to stderr; stdout is reserved for JSON-RPC only.
Re-exports§
pub use types::JsonRpcError;pub use types::JsonRpcRequest;pub use types::JsonRpcResponse;pub use types::ToolContent;pub use types::ToolResult;pub use bm25::Bm25Index;
Modules§
- bm25
- BM25 scoring module for code-aware text ranking.
- metrics
- In-memory metrics collector for MCP tool calls.
- patterns
- Cross-session pattern detection for Codemem.
- scoring
- Scoring & utility functions for the MCP server.
- tools_
consolidation - Consolidation & lifecycle tools: decay, creative, cluster, forget, consolidation_status, recall_with_impact, get_decision_chain, rebuild_vector_index_internal, detect_patterns, pattern_insights.
- tools_
enrich - Enrichment tools: git history, security, and performance analysis.
- tools_
graph - Graph & analysis tools: traverse, stats, health, index, symbols, deps, impact, clusters, cross-repo, pagerank, search-code, scoring weights, metrics.
- tools_
memory - Memory CRUD tools: store, recall, update, delete, associate.
- tools_
recall - Advanced recall & namespace tools: recall_with_expansion, list_namespaces, namespace_stats, delete_namespace, export_memories, import_memories.
- types
- Protocol types for the MCP JSON-RPC server.
Structs§
- McpServer
- MCP server that reads JSON-RPC from stdin, writes responses to stdout. Holds Storage, HnswIndex, and GraphEngine for real tool dispatch.
- Stdio
Transport - Stdio transport for the MCP server. Reads newline-delimited JSON-RPC from stdin, writes responses to stdout.