Repo Search

•

Provides structural code intelligence to AI agents by understanding project structure and performing AST-based searches on local repositories.

The Repo Search server is a Model Context Protocol (MCP) server designed to give AI agents deep insight into local codebases. Unlike traditional text-based search tools, it leverages Abstract Syntax Trees (AST) via `ast-grep` to understand the structural context of code, allowing for intelligent searches that distinguish between different code elements like classes, functions, and variables. It offers high-performance search capabilities powered by `ripgrep` and can map API routes from popular frameworks like Express and NestJS, making it an essential tool for navigating complex projects and enhancing AI-driven development workflows.

主な機能

01Intelligent AST-based code search using `ast-grep` for structural understanding.
02High-performance text search powered by `ripgrep`.
03Automated mapping of API routes for frameworks like Express, NestJS, and Fastify.
04Secure sandboxed file access with symlink protection.
05Comprehensive repository management, including registration, listing, and unregistration of projects.
060 GitHub stars

ユースケース

01Allowing an AI to index and manage specific local code projects.
02Helping an AI identify and analyze the definition and methods of a specific class or function.
03Enabling an AI to quickly locate and understand API endpoints within a codebase.