MCP Catalogs
首页shebe screenshot

shebe

by shebe-oss·32·综合分 43

快速 BM25 代码搜索工具,提供 14 个 MCP 工具,帮助 AI 编程代理查找引用和搜索代码库。

developer-toolssearchai-llm
3
Forks
0
活跃 Issue
3 个月前
最近提交
2 天前
收录于

概述

Shebe 是一款高性能的本地代码搜索工具,使用 BM25 算法而非嵌入或 GPU 加速。它提供快速索引(每秒 2k-12k 文件)和 2ms 查询延迟,并完全支持 UTF-8。该项目包含 14 个专门为编程代理设计的 MCP 工具,用于执行查找引用、搜索代码和分析代码库等任务。它被定位为 Serena MCP 等结构化工具的补充,为大型多语言代码库提供排名搜索功能。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:在大型代码库中查找符号的所有引用,用于重构
:在多语言代码库中搜索特定模式或函数
:在对不熟悉的代码库进行更改前进行影响分析
:Shebe 与其他代码搜索工具有何不同?
:Shebe 是否支持远程代码库?

什么时候选它

当处理大型代码库(1000+文件)时需要快速、排名的代码搜索,且不希望依赖云服务或GPU资源时,选择Shebe。

什么时候不要选它

如果您需要语义搜索功能、远程仓库搜索功能,或者只在小型代码库中工作(简单的grep工具已足够),那么不要选择Shebe。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • find_references

    Find all references to a symbol in the codebase

  • search_code

    Search for code patterns across the repository

  • index_repository

    Index a repository for code search

  • find_file

    Find files by pattern in the repository

  • read_file

    Read the complete contents of a file

  • preview_chunk

    Preview a file with context around a specific match

  • reindex_session

    Update an existing index with new files

  • list_sessions

    List all available indexed repositories

  • get_session_info

    Get information about a specific indexed repository

  • upgrade_session

    Upgrade an older session to the latest schema

  • list_dir

    List files in a directory with matching pattern

  • delete_session

    Delete an indexed repository

说明:Tool names extracted from the table and text references, but detailed documentation is in a separate file not provided here.

可对比工具

serena-mcpripgrepgrepturbopuffertrynia

安装

安装

**Homebrew (macOS 和 Linux):**

brew tap shebe-oss/tap
brew install shebe

**手动下载 (Linux x86_64):**

export SHEBE_VERSION=v0.5.8
curl -LO "https://github.com/shebe-oss/shebe-releases/releases/download/${SHEBE_VERSION}/shebe-${SHEBE_VERSION}-linux-x86_64.tar.gz"
curl -LO "https://github.com/shebe-oss/shebe-releases/releases/download/${SHEBE_VERSION}/shebe-${SHEBE_VERSION}-linux-x86_64.tar.gz.sha256"
sha256sum -c shebe-${SHEBE_VERSION}-linux-x86_64.tar.gz.sha256
tar -xzf shebe-${SHEBE_VERSION}-linux-x86_64.tar.gz
sudo mv shebe shebe-mcp /usr/local/bin/

**Claude Desktop 配置:** 添加到你的 claude_desktop_config.json:

{
  "mcpServers": {
    "shebe": {
      "command": "shebe-mcp",
      "args": []
    }
  }
}

FAQ

Shebe 与其他代码搜索工具有何不同?
Shebe 使用 BM25 算法而非嵌入或 GPU 加速,使其速度极快且资源需求低。它提供排名结果,专为大型代码库优化,查询延迟为 2ms。
Shebe 是否支持远程代码库?
不支持,代码库必须在索引前克隆到本地。这是为了速度和隐私所做的权衡,因为在搜索操作期间不需要网络访问。

shebe 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。