jiayan-xu/dsh-codebase-memory
codebase-memory-mcp 的代码知识图谱桥:语义符号搜索(BM25)、源码片段、Leiden 社区架构总览、调用/数据流/跨服务追踪、图增强 grep。
已收录
0
Tools
Bundle 已验证
功能介绍
codebase-memory-mcp 的代码知识图谱桥:语义符号搜索(BM25)、源码片段、Leiden 社区架构总览、调用/数据流/跨服务追踪、图增强 grep。
适合
- 探索已由 codebase-memory-mcp 建立索引的大型代码库的开发者。
- 需要查看包、服务、依赖、路由或 Leiden 社区的架构分析。
- 需要把符号搜索和源码片段与调用、数据流或跨服务追踪结合的调查。
- 除文本或正则匹配外还需要图上下文的代码搜索。
不适合
- 尚未由 codebase-memory-mcp 建立索引的仓库。
- 无法访问 codebase-memory-mcp 可执行文件的环境;默认路径指向 Windows `.exe`。
- 普通源码导航和 grep 已足以解决问题的小型或熟悉仓库。
- 无法通过 `project`、Windows `repo` 路径或 `CBM_DEFAULT_PROJECT` 确定项目的调用。
README
dsh-codebase-memory
dsh-codebase-memory is a dsh bridge to codebase-memory-mcp. It exposes tools for exploring indexed repositories through a code knowledge graph and communicates with a persistent MCP child process over newline-delimited JSON-RPC.
Tools
-
cbm_projects: List indexed projects, including their Git status and graph size information. -
cbm_search: Search functions, classes, routes, variables, and other symbols using BM25-ranked semantic graph search. -
cbm_snippet: Retrieve source for a qualified symbol, optionally including neighboring symbols. -
cbm_arch: Inspect packages, services, dependencies, routes, languages, and Leiden community groupings. Results can be limited by a path prefix or requested architecture aspects. -
cbm_trace: Trace inbound or outbound calls, data flow, or cross-service HTTP paths at a configurable depth. -
cbm_search_code: Run graph-augmented text or regular-expression search, with optional file globs and path filtering.
Most repository-specific tools require a project name. A project can be supplied directly with project, derived from a Windows repository path passed as repo, or read from CBM_DEFAULT_PROJECT.
A typical symbol lookup uses cbm_search first and passes its returned qualified_name to cbm_snippet.
Runtime Configuration
The plugin starts codebase-memory-mcp.exe lazily and keeps the process available for concurrent requests. It reconnects on a later call after the child process exits.
Set CBM_EXE to override the executable path. Without that variable, the plugin uses:
%USERPROFILE%\AppData\Local\Programs\codebase-memory-mcp\codebase-memory-mcp.exe
Set CBM_DEFAULT_PROJECT to provide a default indexed project when neither project nor repo is supplied.
The dsh bundle registers @jhp830901/dsh-codebase-memory with the ID dsh-codebase-memory.
常见问题常见问题
在启用了 DSH 的终端中执行已验证命令 dsh plugin --profile default add github:jiayan-xu/dsh-codebase-memory。命令会解析公开 package 元数据,并保持插件与本页展示的目录身份一致。
兼容性以页面上展示的 bundle 与 profile 状态为准。如果某个 profile 尚未检测到,请先保持禁用,并在生产启用前阅读仓库文档。
GitHub 链接和 activity 元数据是 release 与维护状态的来源。新版本发布后重新查看本页,确认目录已经观察到最新版本。