A smart code retrieval tool based on Model Context Protocol that provides efficient and accurate code repository search capabilities for large language models.
基于模型上下文协议(Model Context Protocol)的智能代码检索工具,为AI大语言模型提供高效精确的代码库检索能力。
MCP代码索引器是一个专为AI大语言模型设计的代码检索工具。它通过向量化索引和语义理解,帮助AI更好地理解和分析代码库,显著提升代码相关任务的处理效率和准确性。
项目地址:https://github.com/zxfgds/mcp-code-indexer
智能代码检索
代码分析能力
优化的上下文处理
完整MCP协议支持
pip install -r requirements.txt
python setup.py install
编辑配置文件:%APPDATA%\Claude\claude_desktop_config.json
{ "mcpServers": { "code-indexer": { "command": "python", "args": ["-m", "server.app"], "cwd": "安装目录路径", "env": {}, "disabled": false, "alwaysAllow": [] } } }
编辑配置文件:%APPDATA%\Code\User\globalStorage\rooveterinaryinc.roo-cline\settings\cline_mcp_settings.json
{ "mcpServers": { "code-indexer": { "command": "python", "args": ["-m", "server.app"], "cwd": "安装目录路径", "env": {}, "disabled": false, "alwaysAllow": [] } } }
使用identify_project工具识别项目
使用index_project工具索引项目代码
使用search_code工具搜索相关代码片段
使用get_code_structure工具分析代码结构
使用analyze_code_quality工具评估代码质量
使用extract_documentation工具提取代码文档
使用find_similar_code工具检测相似代码
使用get_code_metrics工具获取代码统计数据
使用analyze_dependencies工具分析项目依赖
提升AI代码理解能力
优化开发体验
增强团队协作
降低资源消耗
欢迎提交Issue和代码贡献。
MIT License
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!