Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cbm

非官方社区工具。 cbm-toolcodebase-memory-mcp 的独立社区封装工具,并非由 DeusData 或上游 codebase-memory-mcp 项目维护、认可或支持。

codebase-memory-mcp 的跨平台便捷命令行封装工具。

支持 LinuxmacOSWindows(PowerShell)。

cbm -h

功能

cbm 是一个非官方社区封装工具,让你可以用更友好的命令行界面,把本地 Git 仓库索引到 codebase-memory-mcp 知识图谱中。

它还包含一个 setup 命令,可以配置本地 AI 编辑器(Claude Code、Cursor、Codex CLI、Cline、Windsurf)接入 codebase-memory-mcp,并在探索代码时优先使用知识图谱。

快速开始

Linux / macOS

# Arch(AUR)
yay -S cbm-tool
# 或: paru -S cbm-tool

# 其他系统
curl -fsSL https://github.com/fxjs/cbm-tool/releases/latest/download/install.sh | bash

cbm -h

Windows

curl -fsSL -o %TEMP%\cbm-install.cmd https://github.com/fxjs/cbm-tool/releases/latest/download/install.cmd && %TEMP%\cbm-install.cmd
irm https://github.com/fxjs/cbm-tool/releases/latest/download/install.ps1 | iex

配置 AI 编辑器

请先备份编辑器配置。可用 cbm setup --dry-run 预览。

cbm setup
cbm setup --editor cursor
cbm setup --uninstall

更新

# 用户目录安装(~/.local/bin)— 从 GitHub self-update
cbm update self

# Arch(AUR)— 请用包管理器更新
# yay -Syu cbm-tool

cbm update codebase-memory-mcp
cbm update codebase-memory-mcp v0.9.0

卸载

# Arch(AUR)
sudo pacman -Rns cbm-tool

# Linux / macOS
curl -fsSL https://github.com/fxjs/cbm-tool/releases/latest/download/uninstall.sh | bash
irm https://github.com/fxjs/cbm-tool/releases/latest/download/uninstall.ps1 | iex

开发

# 运行 Unix 测试
make test

# 检查 shell 脚本(需要 shellcheck)
make lint

Windows 上运行 PowerShell 测试:

.\tests\test_windows.ps1

文档

详见 安装指南使用指南

English: README.en.md | Install | Usage.

社区

本项目积极参与并认可 linux.do 社区

认可 linux.do

许可证

MIT

About

Cross-platform convenience wrapper for codebase-memory-mcp

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages