code-index
Lets your AI agent search and navigate code through a fast local index, with support for 1C:Enterprise configurations.
160 stars on GitHubby RegsormLicense MITUpdated 27 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add code-index -- npx -y @regsorm/code-index-mcp serve --path "<path>"
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Who calls this procedure, and what does it call?
Find the shortest call chain between these two functions.
What it is
code-index builds a searchable SQLite index of your source code, so your AI agent gets ready answers instead of reading many files. It parses code into syntax trees for 14 languages and offers tools for symbols, callers, call trees and file reading. It also reads 1C:Enterprise (BSL) exports from Configurator and EDT.
What it can do
search_functionandget_function: find functions and get their bodyfind_symbol: find a function, class, variable or importget_callers,get_callees,find_path: call graphread_fileandlist_files: read files from the indexgrep_bodyandgrep_code: search inside codegit_log,git_diff: history of the repositoryget_stats: state of the index
When to use
- βΊWhen you want to know who calls a function in a big codebase without many file reads
- βΊWhen you work with a large 1C:Enterprise configuration
- βΊWhen you want to cut the tokens your agent spends on code search
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
codegraphHelps your agent analyze an indexed codebase through its call graph, dependencies, dead code, hotspots and semantic search.explore-codebaseHelps your agent find its way around an unfamiliar codebase by searching the code knowledge graph for modules and relationships.code-searchHelps your agent search a codebase with regular expressions and Git history to find definitions, usages and past changes.Frequently asked questions
Is it open source?
Yes. The repository has a license file and a public release.
How fast is it?
The readme reports about 10 ms per query over HTTP, and 5 minutes 51 seconds to index an 88,284-file configuration.
Which clients work?
Claude Code, Cursor, VS Code, LibreChat and other MCP clients.
Why does it say daemon_offline?
The server only reads the index. The background indexer (daemon run) must be running.
Which version supports 1C?
The bsl-indexer build. The core build without 1C has 25 tools.
Is the server open to the network?
By default it listens only on 127.0.0.1 and accepts only loopback Host headers.
If it does not work
- βΊStart the daemon with daemon run and set CODE_INDEX_HOME if tools answer daemon_offline.
- βΊIf the server returns 403 Host header is not allowed, list the client names in allowed_hosts.
- βΊRebuild the index if you move to a new data version, as the readme notes.
5 new skills a week. 1 minute to read.