经 AI Skill Hub 精选评估,代码语义搜索 获评「强烈推荐」。这款MCP工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.0 分,适合有一定技术背景的用户使用。
代码语义搜索 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
代码语义搜索 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/anrgct/autodev-codebase
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"------": {
"command": "npx",
"args": ["-y", "autodev-codebase"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 代码语义搜索 执行以下任务... Claude: [自动调用 代码语义搜索 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"______": {
"command": "npx",
"args": ["-y", "autodev-codebase"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
<p align="center">
</p>
A vector embedding-based code semantic search tool with MCP server and multi-model integration. Can be used as a pure CLI tool. Supports Ollama for fully local embedding and reranking, enabling complete offline operation and privacy protection for your code repository.
```sh
codebase call # Show statistics overview codebase call --json # JSON format codebase call src/commands # Analyze specific directory
#### 🔍 LLM-Powered Search Reranking Enable LLM reranking to dramatically improve search relevance:
```bash
brew install ollama ripgrep
ollama serve
ollama pull nomic-embed-text
codebase stdio --server-url=http://localhost:3001/mcp
**IDE Config:**json { "mcpServers": { "codebase": { "command": "codebase", "args": ["stdio", "--server-url=http://localhost:3001/mcp"] } } } ```
npm install -g @autodev/codebase
codebase config --set embedderProvider=ollama,embedderModelId=nomic-embed-text
```bash
Ollama:
{
"embedderProvider": "ollama",
"embedderModelId": "nomic-embed-text",
"qdrantUrl": "http://localhost:6333"
}
OpenAI:
{
"embedderProvider": "openai",
"embedderModelId": "text-embedding-3-small",
"embedderOpenAiApiKey": "sk-your-key",
"qdrantUrl": "http://localhost:6333"
}
OpenAI-Compatible:
{
"embedderProvider": "openai-compatible",
"embedderModelId": "text-embedding-3-small",
"embedderOpenAiCompatibleApiKey": "sk-your-key",
"embedderOpenAiCompatibleBaseUrl": "https://api.openai.com/v1"
}
```bash
codebase config --get codebase config --get embedderProvider --json
codebase config --set embedderProvider=ollama,embedderModelId=nomic-embed-text codebase config --set --global qdrantUrl=http://localhost:6333 ```
--path, --config, --log-level, --force, etc.)./autodev-config.json (or custom path via --config)~/.autodev-cache/autodev-config.jsonNote: CLI arguments provide runtime override for paths, logging, and operational behavior. For persistent configuration (embedderProvider, API keys, search parameters), use config --set to save to config files.
| Category | Options | Description |
|---|---|---|
| **Embedding** | embedderProvider, embedderModelId, embedderModelDimension | Provider and model settings |
| **API Keys** | embedderOpenAiApiKey, embedderOpenAiCompatibleApiKey | Authentication |
| **Vector Store** | qdrantUrl, qdrantApiKey | Qdrant connection |
| **Search** | vectorSearchMinScore, vectorSearchMaxResults | Search behavior |
| **Reranker** | rerankerEnabled, rerankerProvider | Result reranking |
| **Summarizer** | summarizerProvider, summarizerLanguage, summarizerBatchSize | AI summary generation |
Key CLI Arguments: - index - Index the codebase - search <query> - Search the codebase (required positional argument) - outline <pattern> - Extract code outlines (supports glob patterns) - call - Analyze function call relationships and dependency graphs - stdio - Start stdio adapter for MCP - config - Manage configuration (use with --get or --set) - --serve - Start MCP HTTP server (use with index command) - --summarize - Generate AI summaries for code outlines - --dry-run - Preview operations before execution - --title - Show only file-level summaries - --clear-summarize-cache - Clear all summary caches - --path, --demo, --force - Common options - --limit / -l <number> - Maximum number of search results (default: from config, max 50) - --min-score / -S <number> - Minimum similarity score for search results (0-1, default: from config) - --query <patterns> - Query patterns for call graph analysis (comma-separated) - --viz <file> - Export full dependency data for visualization (cannot use with --query) - --open - Open interactive graph viewer - --depth <number> - Set analysis depth for call graphs - --help - Show all available options
Configuration Commands: ```bash
codebase config --get codebase config --get --json
codebase config --set embedderProvider=ollama,embedderModelId=nomic-embed-text codebase config --set --global embedderProvider=openai,embedderOpenAiApiKey=sk-xxx
codebase --config=/path/to/config.json config --get codebase --config=/path/to/config.json config --set embedderProvider=ollama
该工具未明确声明开源协议,商业使用前请联系原作者确认授权范围,避免侵权风险。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
AI Skill Hub 点评:代码语义搜索 的核心功能完整,质量优秀。对于Claude Desktop / Claude Code 用户来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | autodev-codebase |
| Topics | mcptypescript代码搜索 |
| GitHub | https://github.com/anrgct/autodev-codebase |
| 语言 | TypeScript |
收录时间:2026-06-01 · 更新时间:2026-06-01 · License:未公布 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端