
helweg/open-codebase-index
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
helweg/open-codebase-index — это кандидат на MCP-сервер, импортированный из https://github.com/helweg/open-codebase-index.
Обзор
helweg/open-codebase-index — это кандидат на MCP-сервер, импортированный из https://github.com/helweg/open-codebase-index.
Обзор (машинный перевод)
Выполните поиск в кодовой базе по смыслу, затем следуйте за результатом в определениях, вызывающих и путях зависимостей.
open-codebase-index — это локальный индекс семантического кода для клиентов OpenCode, Jcode, Pi, Codex, Claude Code и других MCP-клиентов. Он объединяет вложения, поиск по ключевым словам BM25, фильтрацию по ветвлениям, поиск символов и граф вызовов в основе инструментов, дружественных к агентам.
Новые установки должны использовать open-codebase-index и open-codebase-index-mcp. Устаревшие пакеты opencode-codebase-index и opencode-codebase-index-mcp остаются поддерживаемыми псевдонимами.
Для использования в терминале вне MCP-клиента установите пакет глобально и используйте краткую команду ocbi:
cbi остаётся доступным как псевдоним совместимости. ocbi предоставляет статус, индексацию, поиск, поиск определений и прямую проверку вызывающего или абонента. См. раздел «Установка и настройка хоста» для полной командной ссылки.
Основные моменты
- Семантическое и гибридное извлечение для вопросов, где идентификатор не известен.
- Открытие с низким уровнем токенов через
codebase_contextиcodebase_peek. - Определение и навигация по графам через
implementation_lookup,call_graphиcall_graph_path.
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
open-codebase-index
Search a codebase by meaning, then follow the result into definitions, callers, and dependency paths.
open-codebase-index is a local semantic code index for OpenCode, Jcode, Pi, Codex, Claude Code, and other MCP clients. It combines embeddings, BM25 keyword search, branch-aware filtering, symbol lookup, and a call graph behind agent-friendly tools.
New installs should use open-codebase-index and open-codebase-index-mcp. The legacy package opencode-codebase-index and opencode-codebase-index-mcp remain supported aliases.
For terminal use outside an MCP client, install the package globally and use the concise ocbi command:
npm install -g open-codebase-index
ocbi status --project /path/to/repo --host jcode
ocbi search "retry recovery" --project /path/to/repo
cbi remains available as a compatibility alias. ocbi provides status, indexing, search, definition lookup, direct caller/callee inspection, and current indexed working-tree impact. See Installation and host setup for the full command reference.
Highlights
- Semantic and hybrid retrieval for questions where you do not know the identifier.
- Low-token discovery through
codebase_contextandcodebase_peek. - Definition and graph navigation through
implementation_lookup,call_graph, andcall_graph_path. - Incremental, branch-aware indexing with file watching and content-hash reuse.
- Local storage backed by SQLite, usearch vectors, and a BM25 inverted index.
- Multiple embedding providers: Ollama, OpenAI, Google, or a custom OpenAI-compatible endpoint.
- Native parsing for TypeScript/TSX, JavaScript/JSX, Python, Rust, Swift, Go, Kotlin (
.ktand.kts), Java, C#, Ruby, C/C++, Metal, PHP, Apex, Bash, Zig, GDScript, MATLAB, JSON, TOML, YAML, Markdown, HTML, XML, and SVG, plus text fallback for other formats.
Quick start with OpenCode
Requires Node.js 22.22 or newer. Node.js 24 LTS is recommended.
-
Install the package:
npm install open-codebase-indexLegacy installs continue to work with:
npm install opencode-codebase-index -
Add it to
opencode.json:For OpenCode 2.x:
{ "plugins": ["open-codebase-index"] }For OpenCode 1.x (1.3.4 or newer):
{
Установка
This server does not publish a one-line install command.
Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →