mcp-code-search-server
2.4
The mcp-code-search-server is an MCP-based server that assists large language models in searching for code locations and definitions within files. It supports multiple programming languages and efficient search capabilities, enhancing code understanding for LLMs.
Overview
mcp-code-search-server is a Model Context Protocol (MCP) based server designed for large language models (LLM) to provide code search functionality. It allows LLMs to accurately locate identifiers (such as variables, functions, and classes) in code repositories and return their complete definitions for better understanding of code logic, data flow, and dependencies.
Features
- Code Search: Efficiently searches code repositories using ripgrep.
- Multilingual Support: Supports code parsing for JavaScript/TypeScript, Java, and Python.
- Complete Definition Extraction: Automatically detects and extracts complete definitions of variables, functions, and classes.
- Multi-Encoding Support: Automatically detects and handles files with various encodings (UTF-8, GBK, Big5, etc.).
- Smart Filtering: Provides default configurations to exclude common non-code directories and file types.