一个MCP(模型上下文协议)服务器,使Claude和其他大型语言模型能够即时、智能地访问您的代码库。可以将其视为“给您的大型语言模型提供了一个代码GPS”——无需逐行阅读每个文件,BigParse让大型语言模型能够高效地导航和搜索您的代码库。
没有BigParse时,当您询问Claude关于您的代码:
有了BigParse,Claude可以:
添加到Claude Desktop配置中:
# macOS
open ~/Library/Application\ Support/Claude/claude_desktop_config.json
# Windows
notepad %APPDATA%\Claude\claude_desktop_config.json
# Linux
nano ~/.config/Claude/claude_desktop_config.json
将BigParse添加到mcpServers部分:
{
"mcpServers": {
"BigParse": {
"command": "npx",
"args": ["bigparse"],
"env": {
"WORKSPACE_ROOT": "/path/to/your/projects"
}
}
}
}
将/path/to/your/projects替换为您想要分析的目录
重启Claude Desktop
优点:
git clone https://github.com/agentbrazley/BigParse.git
cd BigParse
npm install
npm run build
./scripts/install-for-claude.sh
或者手动:
claude mcp add bigparse "node" "$(pwd)/dist/index.js"
为了增强功能,请安装语言服务器:
# TypeScript/JavaScript
npm install -g typescript-language-server typescript
# Python
pip install python-lsp-server
# Rust
rustup component add rust-analyzer
# Go
go install golang.org/x/tools/gopls@latest
# Dart/Flutter
# 包含在Flutter SDK中
BigParse创建一个可搜索的代码库索引,大型语言模型可以高效查询:
没有BigParse:
有了BigParse:
一旦安装完成,BigParse工具将在Claude中自动可用。只需询问:
要更改工作区目录,请编辑您的Claude Desktop配置文件并更新WORKSPACE_ROOT环境变量:
{
"mcpServers": {
"BigParse": {
"command": "node",
"args": ["/path/to/BigParse/dist/index.js"],
"env": {
"WORKSPACE_ROOT": "/new/project/path"
}
}
}
}
然后重启Claude Desktop。
默认情况下,BigParse使用当前目录。要分析特定项目:
# 使用辅助脚本
./scripts/update-workspace.sh /path/to/your/project
# 或使用环境变量
claude mcp remove bigparse -s local
claude mcp add bigparse "node" "/path/to/BigParse/dist/index.js" --env "WORKSPACE_ROOT=/path/to/project"
| 工具 | 描述 | 示例 |
|------|-------------|---------||
| index_codebase | 对项目文件进行索引以便搜索 | "索引这个TypeScript项目" |
| search_code | 使用正则表达式模式搜索 | "查找所有异步函数" |
| get_symbols | 从文件中提取符号 | "显示main.ts中的符号" |
| find_references | 查找符号的所有引用 | "查找WebSocketClient的所有用法" |
| go_to_definition | 跳转到符号定义 | "跳转到handleMessage的定义" |
| check_language_servers | 检查已安装的语言服务器 | "哪些语言服务器已安装?" |
| install_language_server | 安装语言服务器 | "安装TypeScript语言服务器" |
.ts, .tsx, .js, .jsx).py).rs).go).java).cs).c, .cpp, .h).rb).php).swift).dart)BigParse在其项目目录下的.bigparse/中存储缓存。请将其添加到.gitignore中:
.bigparse/
# 安装依赖
npm install
# 构建TypeScript
npm run build
# 运行测试
npm test
BigParse/
├── src/ # TypeScript源文件
│ ├── index.ts # MCP服务器入口点
│ ├── lsp/ # 语言服务器协议集成
│ ├── indexing/ # 代码索引和缓存
│ ├── tools/ # MCP工具定义
│ └── subprocess/ # 安全子进程处理
├── dist/ # 编译后的JavaScript
├── config/ # 语言配置
└── scripts/ # 辅助脚本
我们欢迎贡献!请参阅CONTRIBUTING.md获取指南。
BigParse包含安全特性以安全处理子进程命令:
# 检查是否已安装
claude mcp list
# 如需重新安装
./install-for-claude.sh
# 检查已安装的服务器
claude mcp get bigparse
# 然后请求Claude使用check_language_servers工具
# 清除缓存
rm -rf .bigparse/
MIT许可证 - 请参阅LICENSE文件
由Lancio AI(2025)创建
为Claude社区制作 ❤️