Back to MCP directory
publicPublicdnsLocal runtime

mcp-server-reposearch

这是一个增强版的MCP服务器内容搜索工具,支持正则表达式搜索、过滤控制,并优化了输出格式和token管理。

article

README

🚀 mcp 服务器

mcp 服务器提供了比 Cline 内置的 search_files 工具更强大的内容搜索功能,能满足多样化的搜索需求。

🚀 快速开始

该 mcp 服务器可直接使用,为用户带来更优质的内容搜索体验。

✨ 主要特性

  • 过滤控制:通过 .reposearchignore 文件控制过滤,使用 gitignore 格式。
  • 正则支持:支持正则表达式搜索,满足复杂搜索需求。
  • 输出格式控制
    • 可选择是否在结果中包含内容。
    • 后续将支持包含上下文行。
  • 稳定性保障:防止 tokens 爆炸,确保搜索稳定。

⚠️ 注意事项

目前需要在系统提示中告诉 Cline 停止使用 search_files

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client