Repository Search

by happyzym

8 stars
199 downloads
Not rated
GitHub

About

Provides efficient file search functionality within repositories, respecting ignore patterns and offering configurable text content matching for development tools and applications.

Details

Author
happyzym
Repository
Astricaelus/mcp-server-reposearch
GitHub stars
8
Downloads
199
Categories
Developer Tools, Design, Workplace, File Management, AI, Search, Frontend, Infrastructure, Project Management, Other

- Filter files via .reposearchignore (gitignore format)
- Search with regular expressions
- Option to include or exclude content in results
- Prevents token explosion in output

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Repository Search
    Command (node, npx, python, etc.) npx
    Arguments
    • Argument 1 -y
    • Argument 2 @highlight/mcp-server

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install and configure the MCP server with your MCP host (e.g., Cline). In your system prompt, tell Cline to stop using its built-in search_files tool so that it uses this server instead.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "repository search": {
            "env": {},
            "args": [
                "-y",
                "@highlight/mcp-server"
            ],
            "command": "npx"
        }
    }
}

Linux

{
    "env": [],
    "args": [
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "npx"
}

Macos

{
    "env": [],
    "args": [
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "npx"
}

Windows

{
    "env": [],
    "args": [
        "/c",
        "npx",
        "-y",
        "@highlight/mcp-server"
    ],
    "command": "cmd"
}

中文 | English

这是一个 mcp 服务器,提供比 Cline 内置的 search_files 工具更好的内容搜索功能。

功能特性:
- [x] 通过 .reposearchignore 文件控制过滤,使用 gitignore 格式
- [x] 支持正则表达式搜索
- 输出格式控制:
- [x] 是否在结果中包含内容
- [ ] 包含上下文行
- [x] 防止 tokens 爆炸

注意事项:
- 目前需要在系统提示中告诉 Cline 停止使用 search_files

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.