autodev-codebase MCP server
2026년 11월 7일 커밋벡터 임베딩을 사용하여 AI 클라이언트가 의미론적 코드 검색, 콜 그래프 분석 및 구조화된 코드 아웃라인 추출을 수행할 수 있도록 합니다.
다른 이름 anrgct/autodev-codebase
- 스타
- 121
- Tools
- —
- 다운로드, 30일
- —
- 최신 버전
- —
- 마지막 커밋
- 2026년 11월 7일
- 라이선스
- —
autodev-codebase MCP란?
autodev-codebase은(는) MCP server입니다. 벡터 임베딩을 사용하여 AI 클라이언트가 의미론적 코드 검색, 콜 그래프 분석 및 구조화된 코드 아웃라인 추출을 수행할 수 있도록 합니다.
프로젝트 README에서 생성된 요약
autodev-codebase MCP server 정보
복잡한 저장소를 탐색하려는 개발자는 autodev-codebase를 사용하여 의미론적 검색을 수행하고, 함수 콜 그래프를 분석하며, 구조화된 코드 아웃라인을 추출할 수 있습니다. 이 도구는 벡터 임베딩을 사용하여 키워드 매칭이 아닌 의미를 기반으로 코드를 찾을 수 있게 해줍니다. Tree-sitter 파싱을 통해 40개 이상의 프로그래밍 언어를 지원하며, 고성능 벡터 저장을 위해 Qdrant와 통합됩니다.
이 도구는 독립형 CLI 및 SSE를 통한 HTTP 또는 stdio 어댑터로 접근 가능한 MCP server로 작동합니다. 사용자는 OpenAI, Gemini, Mistral과 같은 클라우드 프로바이더를 선택하거나, 임베딩 및 리랭킹을 위해 Ollama를 사용하는 완전한 로컬 설정을 선택할 수 있습니다. 이러한 로컬 기능은 개인정보를 보장하며 완전한 오프라인 작동을 가능하게 합니다. 또한 시스템에는 지능형 의존성 분석 캐시가 포함되어 있어 재분석 속도를 10배에서 50배까지 높여줍니다.
활용 사례
- 1의미론적 코드 탐색일상적인 영어로 기능을 설명하여 대규모 저장소에서 특정 로직을 찾습니다.
- 2실행 경로 추적서로 다른 함수가 어떻게 상호작용하는지 분석하고 특정 코드 노드 간의 관계를 매핑합니다.
- 3구조적 요약 생성AI가 생성한 설명을 포함하여 클래스 및 메서드 등 파일 내용에 대한 상위 수준의 개요를 생성합니다.
- 4데이터 개인정보 보호 유지코드를 외부 API로 전송하지 않고 로컬 하드웨어에서 전체 인덱싱 및 검색 프로세스를 실행합니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
자동 검사
2026년 11월 14일에 실행됨전체 보고서 →아직 인증되지 않았습니다. 서버는 80점 이상의 점수, 심각한 결함 없음, 그리고 검사에 충분한 데이터를 갖추어야 합니다. 검사 방식
- 소스 저장소 연결 및 접근 가능anrgct/autodev-codebase is public and reachablegithub.com/anrgct/autodev-codebase ↗통과
- 패키지가 이 저장소를 소스로 지정검사되지 않음
- 빌드 출처(Sigstore 증명)검사되지 않음
- 오픈 소스 라이선스 (OSI)No license결함 발견
- 최근 1년 내 커밋 또는 릴리스Last commit or release 2026-11-07github.com/anrgct/autodev-codebase ↗통과
- OpenSSF Scorecard검사되지 않음
- 패키지 이름이 인기 패키지와 유사하지 않음검사되지 않음
- 패키지와 의존성에 심각한 보안 권고 없음검사되지 않음
- 모델에 대한 숨겨진 지침 없음0 tool descriptions and the README read; no override phrases, credential paths or hidden characters통과
- 파괴적인 도구에 라벨 표시됨검사되지 않음
- 원격 endpoint가 MCP 핸드셰이크에 응답검사되지 않음
README
GitHub에서 보기@autodev/codebase
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.
# Semantic code search - Find code by meaning, not just keywords
╭─ ~/workspace/autodev-codebase
╰─❯ codebase search "user manage" --demo
Found 20 results in 5 files for: "user manage"
==================================================
File: "hello.js"
==================================================
< class UserManager > (L7-20)
class UserManager {
constructor() {
this.users = [];
}
addUser(user) {
this.users.push(user);
console.log('User added:', user.name);
}
getUsers() {
return this.users;
}
}
……
# Call graph analysis - Trace function call relationships and execution paths
╭─ ~/workspace/autodev-codebase
╰─❯ codebase call --demo --query="app,addUser"
Connections between app, addUser:
Found 2 matching node(s):
- demo/app:L1-29
- demo/hello.UserManager.addUser:L12-15
Direct connections:
- demo/app:L1-29 → demo/hello.UserManager.addUser:L12-15
Chains found:
- demo/app:L1-29 → demo/hello.UserManager.addUser:L12-15
# Code outline with AI summaries - Understand code structure at a glance
╭─ ~/workspace/autodev-codebase
╰─❯ codebase outline 'hello.js' --demo --summarize
# hello.js (23 lines)
└─ Defines a greeting function that logs a personalized hello message and returns a welcome string. Implements a UserManager class managing an array of users with methods to add users and retrieve the current user list. Exports both components for external use.
2--5 | function greetUser
└─ Implements user greeting logic by logging a personalized hello message and returning a welcome message
7--20 | class UserManager
└─ Manages user data with methods to add users to a list and retrieve all stored users
12--15 | method addUser
└─ Adds a user to the users array and logs a confirmation message with the user's name.
🚀 Features
- 🔍 Semantic Code Search: Vector-based search using advanced embedding models
- 🔗 Call Graph Analysis: Trace function call relationships and execution paths
- 🌐 MCP Server: HTTP-based MCP server with SSE and stdio adapters
- 💻 Pure CLI Tool: Standalone command-line interface without GUI dependencies
- ⚙️ Layered Configuration: CLI, project, and global config management
- 🎯 Advanced Path Filtering: Glob patterns with brace expansion and exclusions
- 🌲 Tree-sitter Parsing: Support for 40+ programming languages
- 💾 Qdrant Integration: High-performance vector database
- 🔄 Multiple Providers: OpenAI, Ollama, Jina, Gemini, Mistral, OpenRouter, Vercel
- 📊 Real-time Watching: Automatic index updates
- ⚡ Batch Processing: Efficient parallel processing
- 📝 Code Outline Extraction: Generate structured code outlines with AI summaries
- 💨 Dependency Analysis Cache: Intelligent caching for 10-50x faster re-analysis
📦 Installation
1. Dependencies
brew install ollama ripgrep
ollama serve
ollama pull nomic-embed-text
2. Qdrant
docker run -d -p 6333:6333 -p 6334:6334 --name qdrant qdrant/qdrant
3. Install
npm install -g @autodev/codebase
codebase config --set embedderProvider=ollama,embedderModelId=nomic-embed-text
🛠️ Quick Start
# Demo mode (recommended for first-time)
# Creates a demo directory in current working directory for testing
# Index & search
codebase index --demo
codebase search "user greet" --demo
# Call graph analysis
codebase call --demo --query="app,addUser"
# MCP server
codebase index --serve --demo
📋 Commands
📝 Code Outlines
# Extract code structure (functions, classes, methods)
codebase outline "src/**/*.ts"
# Generate code structure with AI summaries
codebase outline "src/**/*.ts" --summarize
# View only file-level summaries
codebase outline "src/**/*.ts" --summarize --title
# Clear summary cache
codebase outline --clear-summarize-cache
🔗 Call Graph Analysis
# 📊 Statistics Overview (no --query)
codebase call # Show statistics overview
codebase call --json # JSON format
codebase call src/commands # Analyze specific directory
# 🔍 Function Query (with --query)
codebase call --query="getUser" # Single function call tree (default depth: 3)
codebase call --query="main" --depth=5 # Custom depth
codebase call --query="getUser,validateUser" # Multi-function connections (default depth: 10)
# 🎨 Visualization
codebase call --viz graph.json # Export Cytoscape.js format
codebase call --open # Open interactive viewer
codebase call --viz graph.json --open # Export and open
# Specify workspace (works for both modes)
codebase call --path=/my/project --query="main"
Query Patterns:
- Exact match:
--query="functionName"or--query="*ClassName.methodName" - Wildcards:
*(any characters),?(single character)- Examples:
--query="get*",--query="*User*",--query="*.*.get*"
- Examples:
- Single function:
--query="main"- Shows call tree (upward + downward)- Default depth: 3 (avoids excessive output)
- Multiple functions:
--query="main,helper"- Analyzes connection paths between functions- Default depth: 10 (deeper search needed for path finding)
Supported Languages:
- TypeScript/JavaScript (.ts, .tsx, .js, .jsx)
- Python (.py)
- Java (.java)
- C/C++ (.c, .h, .cpp, .cc, .cxx, .hpp, .hxx, .c++)
- C# (.cs)
- Rust (.rs)
- Go (.go)
🔍 Indexing & Search
# Index the codebase
codebase index --path=/my/project --force
# Search with filters
codebase search "error handling" --path-filters="src/**/*.ts"
# Search with custom limit and minimum score
codebase search "authentication" --limit=20 --min-score=0.7
codebase search "API" -l 30 -S 0.5
# Search in JSON format
codebase search "authentication" --json
# Clear index data
codebase index --clear-cache --path=/my/project
🌐 MCP Server
# HTTP mode (recommended)
codebase index --serve --port=3001 --path=/my/project
# Stdio adapter
codebase stdio --server-url=http://localhost:3001/mcp
⚙️ Configuration
# View config
codebase config --get
codebase config --get embedderProvider --json
# Set config
codebase config --set embedderProvider=ollama,embedderModelId=nomic-embed-text
codebase config --set --global qdrantUrl=http://localhost:6333
🚀 Advanced Features
🔍 LLM-Powered Search Reranking
Enable LLM reranking to dramatically improve search relevance:
# Enable reranking with Ollama (recommended)
codebase config --set rerankerEnabled=true,rerankerProvider=ollama,rerankerOllamaModelId=qwen3-vl:4b-instruct
# Or use OpenAI-compatible providers
codebase config --set rerankerEnabled=true,rerankerProvider=openai-compatible,rerankerOpenAiCompatibleModelId=deepseek-chat
# Search with automatic reranking
codebase search "user authentication" # Results are automatically reranked by LLM
Benefits:
- 🎯 Higher precision: LLM understands semantic relevance beyond vector similarity
- 📊 Smart scoring: Results are reranked on a 0-10 scale based on query relevance
- ⚡ Batch processing: Efficiently handles large result sets with configurable batch sizes
- 🎛️ Threshold control: Filter results with
rerankerMinScoreto keep only high-quality matches
Path Filtering & Export
# Path filtering with brace expansion and exclusions
codebase search "API" --path-filters="src/**/*.ts,lib/**/*.js"
codebase search "utils" --path-filters="{src,test}/**/*.ts"
# Export results in JSON format for scripts
codebase search "auth" --json
Path Filtering & Export
# Path filtering with brace expansion and exclusions
codebase search "API" --path-filters="src/**/*.ts,lib/**/*.js"
codebase search "utils" --path-filters="{src,test}/**/*.ts"
# Export results in JSON format for scripts
codebase search "auth" --json
⚙️ Configuration
Config Layers (Priority Order)
- CLI Arguments - Runtime parameters (
--path,--config,--log-level,--force, etc.) - Project Config -
./autodev-config.json(or custom path via--config) - Global Config -
~/.autodev-cache/autodev-config.json - Built-in Defaults - Fallback values
Note: 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.
Common Config Examples
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"
}
Key Configuration Options
| 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 codebasesearch <query>- Search the codebase (required positional argument)outline <pattern>- Extract code outlines (supports glob patterns)call- Analyze function call relationships and dependency graphsstdio- Start stdio adapter for MCPconfig- Manage configuration (use with --get or --set)--serve- Start MCP HTTP server (use withindexcommand)--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:
# View config
codebase config --get
codebase config --get --json
# Set config (saves to file)
codebase config --set embedderProvider=ollama,embedderModelId=nomic-embed-text
codebase config --set --global embedderProvider=openai,embedderOpenAiApiKey=sk-xxx
# Use custom config file
codebase --config=/path/to/config.json config --get
codebase --config=/path/to/config.json config --set embedderProvider=ollama
# Runtime override (paths, logging, etc.)
codebase index --path=/my/project --log-level=info --force
For complete configuration reference, see CONFIG.md.
🔌 MCP Integration
HTTP Streamable Mode (Recommended)
codebase index --serve --port=3001
IDE Config:
{
"mcpServers": {
"codebase": {
"url": "http://localhost:3001/mcp"
}
}
}
Stdio Adapter
# First start the MCP server in one terminal
codebase index --serve --port=3001
# Then connect via stdio adapter in another terminal (for IDEs that require stdio)
codebase stdio --server-url=http://localhost:3001/mcp
IDE Config:
{
"mcpServers": {
"codebase": {
"command": "codebase",
"args": ["stdio", "--server-url=http://localhost:3001/mcp"]
}
}
}
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request or open an Issue on GitHub.
📄 License
This project is licensed under the MIT License.
🙏 Acknowledgments
This project is a fork and derivative work based on Roo Code. We've built upon their excellent foundation to create this specialized codebase analysis tool with enhanced features and MCP server capabilities.
🌟 If you find this tool helpful, please give us a star on GitHub!
Made with ❤️ for the developer community
autodev-codebase MCP 질문
개인정보 보호를 위해 오프라인으로 사용할 수 있나요?
네, Ollama를 지원하여 임베딩과 리랭킹을 완전히 로컬에서 수행할 수 있으므로, 코드 저장소에 대한 완전한 오프라인 작업과 개인정보 보호가 가능합니다.
MCP server로 어떻게 사용하나요?
index 명령에 --serve 플래그를 사용하여 HTTP 기반 MCP server를 시작하거나, stdio 어댑터를 사용할 수 있습니다.
더 나은 검색 결과를 위해 AI 기반 리랭킹을 지원하나요?
네, Ollama 또는 OpenAI 호환 프로바이더를 사용하여 LLM 리랭킹을 활성화할 수 있으며, 이를 통해 단순 벡터 유사성을 넘어 검색 관련성을 높일 수 있습니다.