登录 注册

codebase-memory-mcp

去点 Star
AI 应用与 AI Agent
48,496
Stars
0
Forks
0
Watchers
0
Open Issues
未知
许可证
C
语言
创建时间
最近更新

项目能做什么

codebase-memory-mcp 是一款面向开发者与 AI Agent 的本地代码智能工具。它通过持久化知识图谱将代码、文档与基础设施互联,解决 AI 缺乏项目全局上下文的问题。核心提供标准 MCP 工具、多 Agent 集成、图谱可视化及感知代码变更的测试选择功能。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# codebase-memory-mcp: local code intelligence for AI agents via MCP

[![GitHub Release](https://img.shields.io/github/v/release/DeusData/codebase-memory-mcp?style=flat&color=blue)](https://github.com/DeusData/codebase-memory-mcp/releases/latest)
[![License](https://img.shields.io/badge/license-MIT-green)](LICENSE)
[![CI](https://img.shields.io/github/actions/workflow/status/DeusData/codebase-memory-mcp/release.yml?branch=main&label=main%20CI)](https://github.com/DeusData/codebase-memory-mcp/actions/workflows/release.yml)
[![Native and frontend tests](https://img.shields.io/badge/tests-native_%2B_frontend-blue)](#tests)
[![MCP tools](https://img.shields.io/badge/MCP_tools-17-blue)](#mcp-tools)
[![Languages](https://img.shields.io/badge/languages-162-orange)](https://github.com/DeusData/codebase-memory-mcp)
[![Hybrid LSP](https://img.shields.io/badge/Hybrid_LSP-type_resolution-blue)](#hybrid-lsp)
[![Agents](https://img.shields.io/badge/agent_surfaces-46-purple)](https://github.com/DeusData/codebase-memory-mcp)
[![Pure C](https://img.shields.io/badge/pure_C-no_language_runtime-blue)](https://github.com/DeusData/codebase-memory-mcp)
[![Platform](https://img.shields.io/badge/macOS_%7C_Linux_%7C_Windows-supported-lightgrey)](https://github.com/DeusData/codebase-memory-mcp/releases/latest)
[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/DeusData/codebase-memory-mcp/badge)](https://scorecard.dev/viewer/?uri=github.com/DeusData/codebase-memory-mcp)
[![SLSA 3](https://slsa.dev/images/gh-badge-level3.svg)](https://slsa.dev)
[![VirusTotal](https://img.shields.io/badge/VirusTotal-scanned_every_release-brightgreen?logo=virustotal)](https://github.com/DeusData/codebase-memory-mcp/releases/latest)
[![arXiv](https://img.shields.io/badge/arXiv-2603.27277-b31b1b?logo=arxiv)](https://arxiv.org/abs/2603.27277)
[![Join the community on Discord](https://img.shields.io/badge/Discord-Join_the_community-5865F2?logo=discord&logoColor=white)](https://discord.gg/KguGXxg2X)

**Understand your repository, from source code to the systems around it.** codebase-memory-mcp is an MCP server that connects code, documentation, configuration, and infrastructure in a persistent local knowledge graph. Use it to find an unfamiliar feature, follow a call across services, trace a deployment back to its source, or assess which parts of a project a change could affect.

Give your coding agent structural context through [Model Context Protocol](https://modelcontextprotocol.io/) (MCP), or query the graph directly from the CLI. **The MCP server is the core of the project.** Its optional visual companion, **CBM Lens, is in open beta (v0.0.1)**, with a source reader, architecture maps, the Galaxy graph, coverage diagnostics, architecture decisions, and local code chat.

The native C backend exposes **17 MCP tools**, parses [languages and file formats](#language-support) with vendored grammars, and adds [Hybrid LSP](#hybrid-lsp) type resolution for supported languages. The ins
阅读完整原文

商业机会分析 AI 生成

CI/CD 增量与精准测试加速商业插件 (Change-aware CI Runner)

产品构想基于项目内置的 change-aware test selection 能力,提供 GitHub Actions / GitLab CI 的即插即用插件,仅执行受代码变更波及的测试用例,缩短流水线耗时。
核心功能代码变更影响面图谱分析、测试用例智能子集裁决、CI 运行报告与算力节省统计看板、失败用例追溯定位。
目标用户中大型代码库的工程效率团队、Tech Lead、DevOps 工程师。
难度/周期中等 · 1-2 个月 · 成本:极低(主要是 CI 脚本维护与云端统计后台服务器费用)
收费模式按仓库/构建时间分级订阅,或按为客户节约的 CI 算力时长抽成计费。
竞争风险复杂动态调用或反射场景下测试漏测推测存在假阴性风险,需容错保障机制。
依据 已验证事实

团队级远程代码图谱同步与缓存服务 (Team Graph Server)

产品构想解决每个开发者本地重复构建几十万行代码图谱耗时耗电的痛点,提供中心化构建、边缘快速同步的团队版服务端方案。
核心功能中心化分支图谱自动编译与索引分发、团队成员本地 MCP 秒级增量拉取、权限与访问控制、团队通用 Cypher 语义查询库。
目标用户5人以上中大型研发团队、跨地域协同的开源/商业项目组织。
难度/周期中等偏高 · 2-3 个月 · 成本:中等(需维护托管构建与图存储服务器)
收费模式B2B SaaS 订阅模式,按团队席位(Per-seat)或存储库规模收取月费/年费。
竞争风险企业客户对源码索引上传到第三方服务器有较强的数据安全担忧(推测),需主打私有化部署。
依据 尚需验证的假设

CBM Lens Pro:架构治理与可视化桌面套件

产品构想将项目内嵌的 CBM Lens 扩展为独立的架构治理与代码审计桌面端工具,辅助架构师做代码重构、坏味道检测及 AI 上下文微调。
核心功能3D/2D 交互式依赖图谱、循环依赖与坏味道预警、导出标准化架构白皮书、自定义 MCP 上下文剪裁与 Token 预估。
目标用户独立咨询师、软件架构师、老旧系统重构技术负责人。
难度/周期中等 · 1.5-2.5 个月 · 成本:极低(本地客户端为主,分发与认证成本)
收费模式单机买断制授权(含1年升级)或小团队买断许可证。
竞争风险小众专业工具市场天花板有限,部分用户可能更习惯纯 CLI/MCP 交互而非可视化界面(推测)。
依据 AI推测
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
Aider-AI/aider 中文介绍暂未生成
aider is AI pair programming in your terminal
50,053 Python
nexu-io/html-anything 中文介绍暂未生成
✨ The agentic HTML editor — your local AI agent writes the H
9,493 HTML
intellectronica/ruler 中文介绍暂未生成
Ruler — apply the same rules to all coding agents
2,967 TypeScript
rynfar/meridian 中文介绍暂未生成
Use Claude and Antigravity with Pi, OpenCode and other codin
2,195 TypeScript
WecoAI/aideml 中文介绍暂未生成
AIDE: an LLM agent for machine learning engineering - the re
1,619 Python
coder/agentapi 中文介绍暂未生成
HTTP API for Claude Code, Goose, Aider, Gemini, Amp, and Cod
1,496 Go
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 ,最近推送 ,发布过 49 个 Release
社区活跃Star 48,496 / Fork 0 / Issue 0(数据支持,可自行核实)
许可证未检测到(需人工确认)
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/DeusData/codebase-memory-mcp.git
cd codebase-memory-mcp
# 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。