win4r/codebase-memory-mcp-pro logo

win4r/codebase-memory-mcp-pro

Free

纯 C 实现的代码知识图谱 MCP 服务器,构建并增量重索引代码库的调用关系图,为 AI 提供代码结构记忆。整合 9 个上游 PR,修复增量重索引的 CALLS 边。

FreeFree tier
Type
Open Source

About win4r/codebase-memory-mcp-pro

codebase-memory-mcp-pro is a community fork of DeusData/codebase-memory-mcp (MIT licensed) maintained by @win4r. It is a pure C code knowledge-graph MCP server that builds and incrementally re-indexes codebase call graphs to provide AI with code structure memory. This fork integrates 9 upstream pull requests ahead of their merge, including fixes for incremental-reindex correctness (preserving cross-file CALLS edges), Cypher query improvements, MCP tool enhancements (detect_changes, name resolution, UTF-8 handling), and robustness fixes. Additionally, it introduces agent-native features such as an explore MCP tool that returns blast-radius, nearby neighbors, and verbatim source; idiomatic Swift type kinds (struct, enum, actor) as distinct graph labels; and a Cypher aggregation fix. The server is built from source using pure C with zero external runtime dependencies.

Key Features

Incremental-reindex correctness: preserves inbound cross-file CALLS edges on re-index
Cypher/query_graph fixes: populates node properties, fixes label-filtered truncation
MCP tool enhancements: detect_changes, definition-preferred name resolution, valid UTF-8 snippets
Explore MCP tool: returns blast-radius, nearby neighbors, verbatim source grouped by file
Idiomatic Swift type kinds: distinct graph labels for struct, enum, actor; enum cases extracted as nodes
Cypher aggregation fix: non-aggregate functions group correctly with aggregates
Transitive caller blast radius in detect_changes with hop and transitive tags
Pure C implementation, zero external runtime dependencies

Pros & Cons

Pros
  • Preserves call relationships during incremental re-indexing
  • Integrates multiple upstream bug fixes and improvements ahead of merge
  • Provides agent-native explore tool for comprehensive code context (blast radius, neighbors, source)
  • Accurate Swift support with distinct struct/enum/actor labels and enum case extraction
  • Zero external dependencies; pure C for performance
  • Open source under MIT license
Cons
  • No prebuilt binaries; must build from source
  • Language support primarily for Swift and likely C/C++ based codebases
  • Requires manual setup and compilation

Best For

AI-assisted codebase navigation and understandingImpact analysis for code changes via detect_changesCode structure and dependency mappingEnhancing AI agent's ability to reason about code contextSwift codebase analysis with accurate type classification

FAQ

What is the license?
MIT License, © 2025 DeusData, forked and maintained by win4r. See LICENSE file.
How do I build from source?
Clone the repository and run 'make' with Apple Clang or GCC. Refer to the README for detailed instructions.
What improvements does this fork provide?
It includes 9 upstream PRs (incremental-reindex fix, Cypher fixes, MCP tool enhancements, robustness fixes) plus agent-native features: explore MCP tool, idiomatic Swift type labels, Cypher aggregation fix, and transitive blast radius.
Does this fork provide prebuilt binaries?
No, this fork ships no prebuilt release binaries. The integrated binary must be built from source.
What languages are supported?
The engine supports multiple languages; explicit improvements are present for Swift (struct, enum, actor distinction). The server is built in pure C and relies on the upstream codebase parser.